-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
[with-google-analytics] Should Use next/script component #26507
Comments
I was wondering how to go about implementing global scripts for use with GTM. I think the example given in the next.js docs doesn't specifically deal with global cases, I'm assuming the way to go about it is to apply |
Doing the same thing and seems to be working fine, although there really wasn't any up to date docs. |
It's almost like we need to create this example, and possibly add a section in the docs with how to do it. @igormartimiano out of curiosity could you share an example of what you did? |
#27674 👀 |
https://github.com/vercel/next.js/tree/canary/examples/with-google-tag-manager The same is true of |
There was some recent activity around using |
…` component (#29061) Updates the `with-google-tag-manager` to use Next.js' Script component with strategy set to `afterInteractive` CC @janicklas-ralph Closes: #26507
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What example does this report relate to?
with-google-analytics
What version of Next.js are you using?
11
What version of Node.js are you using?
14
What browser are you using?
chrome
What operating system are you using?
mac
How are you deploying your application?
Vercel
Describe the Bug
The Script Component is not used in this example. Google Analytics is used very often and is mentioned in the Script Component documentation. This example should be updated.
Expected Behavior
Use Script Component.
To Reproduce
None.
The text was updated successfully, but these errors were encountered: