-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
📚 What are you trying to do?
https://scripts.nuxt.com/scripts/google-tag-manager
Hi there,
i use nuxt ui and latest nuxt. i just use some configuration that mention in docs. however my marketing team says that why not event all event was send.
$production: { scripts: { registry: { googleTagManager: { id: 'GTM-xxx, trigger: 'onStart' } } } }, here is my nuxt config. i dont know exactly how google tags manager work. but the team show what they tracking in the website that build wix. all send metric like navigation page , click menu navation and more.
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-xxxxxx);</script>
<!-- End Google Tag Manager --><!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-xxxx"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->based on docs i just found that everything should manual trigger. is there way i can automatic to send data like button click, navigation click, etc . Thank you for any feeback
🔍 What have you tried?
No response
ℹ️ Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed