Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Tag Manager - Google Analytics - pageview tracking example #198

Open
daniel-de-wit opened this issue Apr 16, 2018 · 1 comment
Open

Comments

@daniel-de-wit
Copy link

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 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

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

image

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

Hope this helps others in the future.

@Subtletree
Copy link

Worked for me, ty!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants