-
-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
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
@analytics/google-tag-manager
adds gtag
to gtm.js
as well
#359
Comments
To make it clearer, I have a couple of questions:
Because, it looks like
|
gtag.js
as well@analytics/google-tag-manager
adds gtag.js
to gtm.js
as well
@analytics/google-tag-manager
adds gtag.js
to gtm.js
as well@analytics/google-tag-manager
adds gtag
to gtm.js
as well
GTM only adds one script tag here https://github.com/DavidWells/analytics/blob/master/packages/analytics-plugin-google-tag-manager/src/browser.js#L66 It sounds like your google tag script is added the additional script. Check your container ID and verify what it's loading |
While
@analytics/google-tag-manager
should add onlygtm.js
script, I see in my HTML alsogtag
.I'm not sure it's a part of the package, since I wasn't able to find any evidence in the source code of the library, but I am curious, why
gtm
addsgtag
as well. Due to this fact, the performance of the page is affected.The text was updated successfully, but these errors were encountered: