azavea / azavea/fellowship-program-website

Replace GA with GTM

Open
#75 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
SCSS
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Remove all Google Analytics Code:

Paste this code as high in the of the page as possible:

```

(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MP56VBJ');

```

Paste this code immediately after the opening tag:

```

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect the site layout or template that produces the page head and opening body tag; the issue does not name a file. Find and remove the existing Google Analytics code, then add the supplied Google Tag Manager snippets in their specified locations. Verify the generated page contains the GTM script in the head and the noscript iframe immediately after body opens.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.