netlify / netlify/open-api

Implement GA4 tag

Open
#440 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
323
Forks
133
Avg merge
2d 8h
Merged PRs (30d)
2

Description

  • 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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the source or template serving every page of https://open-api.netlify.com/ and inspect the HTML immediately after each element. Add the provided GA4 tag without duplicating an existing Google tag, then verify that each page includes exactly one tag.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
analytics, web-dev
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.