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

Implement GA4 tag #440

Open
1 task
stephan1echung opened this issue Mar 28, 2023 · 0 comments
Open
1 task

Implement GA4 tag #440

stephan1echung opened this issue Mar 28, 2023 · 0 comments

Comments

@stephan1echung
Copy link

stephan1echung commented Mar 28, 2023

  • paste the following code immediately after the <head> element of every page of https://open-api.netlify.com/ Don’t add more than one Google tag to each page.
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X2FMMZSSS9"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-X2FMMZSSS9');
</script>

Helpful Resources

Google Analytics (GA) 4 Migration
Set up data collection for websites instructions

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

1 participant