Closed alex-kowalczyk closed 3 years ago
Underlying gtag.js
does not support custom tags, only a fixed set of GA and few others.
https://www.obilityb2b.com/blog/how-to-choose-between-google-tag-manager-and-global-site-tag/
For custom tags to work, gtm.js
based plugin must be used instead (like vue-gtm
).
Description
GTM does not send custom html tags. Reproduce by
Expected behavior
Google Tag should should send both Analytics tag and custom HTML tags
Actual behavior
Console and Network logs indicate that Google Analytics tag (like page view) is sent, but custom html tag is not fired - no loglines on console nor Ajax requests.
Tried that on Page View (All Pages) trigger, same as Analytics, and few others (DOM ready, Window loaded). Tag assistant also confirms the GTM tag is present, analytics sent, while does not discover any custom html tag.
If you view tag script obtained by the site from google, html tags are there, so I'm pretty sure that's not google-side workspace or publishing problem.
Environment
└── vue-gtag@1.10.0
Then, specify:
Tried with all ad-blockers and other relevant plugins (like dev tools, tag debuggers, etc) removed or disabled.
Reproducible Demo