Last active
February 15, 2021 06:09
-
-
Save saegeullee/b2038c04f610e0a66d3b6233fcfd5d83 to your computer and use it in GitHub Desktop.
tagmanager1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import TagManager from 'react-gtm-module'; | |
| function signInFunc() { | |
| //...singIn logic... | |
| const signinTag = { | |
| dataLayer: { | |
| event: 'login', | |
| method: method, | |
| }, | |
| }; | |
| TagManager.dataLayer(signinTag); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment