Skip to content

add Google Tag Manager script #277

@jlengstorf

Description

@jlengstorf

I don't know how Next does this, but we need to inject this at the top of every page:

<script async src="https://www.googletagmanager.com/gtag/js?id=G-GW8B862DBD"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-GW8B862DBD');
</script>

or we could use snippet injection?

@scottmathson

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions