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

Loading in <head>, instead the page's body #7

Open
mitchellvanw opened this issue Jan 13, 2021 · 1 comment
Open

Loading in <head>, instead the page's body #7

mitchellvanw opened this issue Jan 13, 2021 · 1 comment

Comments

@mitchellvanw
Copy link

Hi, I'm considering to use svelte-google-analytics (and subsequently async-script-loader). The one thing that's holding me back is that github#beyonk-adventures/async-script-loader will load scripts into document.body. Google recommends loading GTM inside <head>.

What're your thoughts on this?

@antony
Copy link
Member

antony commented Mar 11, 2021

It's a reasonable point.

I don't see a reason why this couldn't be an option passed to the loader, so you could tell it where to inject the scripts?

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

2 participants