Implement GA4 tag
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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