Open abbeyseto opened 5 years ago
In the docs, it says that's one way of using: "To use it in your project run npm i react-google-tag-manager. It could be used like the following example".
So, the way I did it was just installed via npm and added the GTM tag in the area where i wanted it to render like: <GoogleTagManger gtmId='GTM-XXXX />'
What is the proper way of using this library. i followed the documentation on the read me, its not working. page view wasn't firing.
gtm.noScriptAsReact() and gtm.scriptAsReact() appears in the body of the document and no event was firing.
Please has anyone successfully implemented this library using react?
CONFIGURATION "react-google-tag-manager": "^2.2.1", "react": "^16.2.0", "@babel/runtime": "^7.0.0-beta.56", "react-scripts": "^2.1.3"