Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Replace Google Analytics Code with Google Tag Manager Code #257

Open
QuirkyRobots opened this issue Nov 9, 2017 · 3 comments
Open

Replace Google Analytics Code with Google Tag Manager Code #257

QuirkyRobots opened this issue Nov 9, 2017 · 3 comments
Labels
level: 1 No knowledge of the existing code required priority: low Work should be done but can stay in the backlog for now type: refactor Minimal user-visible changes, but significant internal work

Comments

@QuirkyRobots
Copy link
Contributor

Re: handlebarsHelpers.js - Google Analytics

The Google Analytics (GA) code is best being removed and replaced with Google Tag Manager (GTM).

Google Tag Manager

Google Tag Manager acts as a container you can put your Google Analytics code in, and any other code you want.

This means you can update, add or remove code without touching the site as well as having many more options in the GTM interface.

There are many other benefits for GTM over GA.

Here's some further information about GTM.

10 Reasons to Start Using Google Tag Manager Right Now

Tag Manager Quickstart

How to use Facebook Pixel with GTM...

Facebook Pixel with GTM

@finer9
Copy link
Member

finer9 commented Nov 9, 2017 via email

@bones7242 bones7242 added type: improvement Existing (or partially existing) functionality needs to be changed help wanted labels Nov 13, 2017
@bones7242
Copy link
Contributor

I'll have to read up on GTM but I am interested in making this change. Off the top of my head, I am wondering if it will work with content that gets served directly. I have an npm package that allows me to send analytics directly to GA if needed, and I use that to log 'events' for assets that are served directly.

@QuirkyRobots
Copy link
Contributor Author

QuirkyRobots commented Nov 14, 2017

I would think so. It's just a container. Therefor; the GA code remains on the site, but is brought in dynamically. If you need to send analytics directly to GA, this can still be done regardless. :)

@bones7242 bones7242 added type: refactor Minimal user-visible changes, but significant internal work level: 1 No knowledge of the existing code required and removed help wanted type: improvement Existing (or partially existing) functionality needs to be changed labels Jan 26, 2018
@alyssaoc alyssaoc added the priority: low Work should be done but can stay in the backlog for now label Dec 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
level: 1 No knowledge of the existing code required priority: low Work should be done but can stay in the backlog for now type: refactor Minimal user-visible changes, but significant internal work
Projects
None yet
Development

No branches or pull requests

4 participants