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

Code voor GA4 ipv Universal Analytics #25

Open
deraedta opened this issue Feb 7, 2023 · 0 comments
Open

Code voor GA4 ipv Universal Analytics #25

deraedta opened this issue Feb 7, 2023 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@deraedta
Copy link
Contributor

deraedta commented Feb 7, 2023

Ik heb de instructies van deze pagina gevolgd: essential migration steps
In GA4 krijg ik dan de melding dat ik op iedere pagina een nieuwe tag moet installeren.
In Visual Studio heb ik gezocht naar de "oude UA" code.
Die vind ik terug in de pagina nuxt.config.js
[
'@nuxtjs/google-analytics',
{
id: 'UA-119311133-2',
},
],

Mijn vraag is: mag ik gewoon hierboven de id vervangen door de nieuwe GA4 of voeg ik een nieuwe instructie toe zodat beiden beschikbaar blijven?

<script async src="https://www.googletagmanager.com/gtag/js?id=G-0YK35XJ4H1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-0YK35XJ4H1'); </script>
@deraedta deraedta added the documentation Improvements or additions to documentation label Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants