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

Google Tag Manager - Google Analytics - pageview tracking example

Đang mở
#198 1 bình luận 3 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
367
Fork
158
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.