adopted-ember-addons / adopted-ember-addons/ember-metrics

Google Tag Manager - Google Analytics - pageview tracking example

Ouverte
#198 1 commentaire 3 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
367
Forks
158
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

When using the default `GoogleTagManager` metrics adapter and Universal Analytics for tracking page views I noticed it only tracked initial page loads. After this, all user navigation was ignored giving the wrong impression of a high bounce rate.

I switched to the `GoogleAnalytics` metrics adapter, which worked like a charm, all user navigation was recorded. However the SEO managers needed Google Tag Manager..

After following the information from the article "https://www.analyticsmania.com/post/single-page-web-app-with-google-tag-manager/" I finally found the solution.

This is how:

Open [Google Tag Manager](https://tagmanager.google.com) and go to your workspace. Then follow these steps

**1) Create a variable**
Navigate to Variables in the left sidebar menu. Add a new variable with the following settings.

![image](https://user-images.githubusercontent.com/3015394/38806169-a4361e9a-4178-11e8-80f9-652936558496.png)

**2) Create a trigger**
Navigate to Triggers in the left sidebar menu. Add a new trigger with the following settings:

![image](https://user-images.githubusercontent.com/3015394/38805928-f26bf7e8-4177-11e8-8dbf-996981fce23f.png)

**3) Create / Update Universal Analytics tag**
Navigate to Tags in the left sidebar menu. Create or update a trigger "Universal Analytics" with the following settings:

![image](https://user-images.githubusercontent.com/3015394/38806330-2fa5bbc0-4179-11e8-8704-76afc3d0997f.png)

Hope this helps others in the future.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.