We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi! I've made the following setup:
a) in the "routes" component i put:
import TagManager from "react-gtm-module"; const tagManagerArgs = { gtmId: "GTM-xxxxxxx", dataLayerName: "PageDataLayer" } TagManager.initialize(tagManagerArgs); ReactDOM.render( <BrowserRouter> <Provider store={Store}> <ResolutionRoute /> </Provider> </BrowserRouter>, document.getElementById("root") );
b) and in a view component:
const tagManagerArgs = { dataLayer: { userId: "001", userProject: "project", page: "home2 }, dataLayerName: "PageDataLayer" } class Login extends React.Component {... componentDidMount() { ... TagManager.dataLayer(tagManagerArgs); ...
But i have the error "Uncaught ReferenceError: dataLayer is not defined" in my console, can you help me?
Regards
The text was updated successfully, but these errors were encountered:
Fixed on #22
Sorry, something went wrong.
No branches or pull requests
Hi!
I've made the following setup:
a) in the "routes" component i put:
b) and in a view component:
But i have the error "Uncaught ReferenceError: dataLayer is not defined" in my console, can you help me?
Regards
The text was updated successfully, but these errors were encountered: