nuxt-gtm icon indicating copy to clipboard operation
nuxt-gtm copied to clipboard

Load script tag within <head> tag

Open motion-work opened this issue 1 year ago • 2 comments

Is there an ability to load the script tag:

<script async="" src="https://www.googletagmanager.com/gtag/js?id=GTM-XXXXXX&amp;l=dataLayer"></script>

within the head tag instead of within the body tag?

motion-work avatar Apr 25 '24 10:04 motion-work

It would be great if this was a module option as it is recommended to insert into <head> of document. https://nuxt.com/modules/nuxt-gtm#modules-options

Some other plugins/modules in other frameworks has something like this appendTo: head | body

bjarnef avatar Jun 10 '24 10:06 bjarnef

Yes, need this :)

michaelrachlitz avatar Jul 02 '24 12:07 michaelrachlitz