Skip to content
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

Load script tag within <head> tag #33

Open
motion-work opened this issue Apr 25, 2024 · 2 comments
Open

Load script tag within <head> tag #33

motion-work opened this issue Apr 25, 2024 · 2 comments

Comments

@motion-work
Copy link

motion-work commented Apr 25, 2024

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?

@bjarnef
Copy link

bjarnef commented Jun 10, 2024

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

@michaelrachlitz
Copy link

Yes, need this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants