Skip to content

Implement GA4 tag #440

@stephan1echung

Description

@stephan1echung
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions