Friday, November 30, 2018

Tracking all page views with Google Analytics

This will track all the page views.

Create a new tag
Click on the Tags menu and hit the ‘NEW’ button. Give your tag the name as ‘GA Base Tag’.











Choose tag type
Click on the ‘Choose a tag type to begin setup’ text and select ‘Universal Analytics’ from the tag library.














Configure tag options
Enter your Google Analytics property ID in the ‘Tracking ID’ field (this can be found in your Google Analytics account).















Set the trigger
Select the 'All Pages' trigger, so GTM knows to deploy this tag on all pages.





Your tag looks like the below, then click the save button. Your tag is now created!


Configure a Google Tag Manager Account and Container

To create a GTM account and container :


Navigate to Google Tag Manager:
Go to https://tagmanager.google.com and log in with your Google account.

Enter an account name: Give your account name.


Enter a container name: Give your container name.











Create the container:
Click on the create button. Your Google Tag Manager container will be created, and you’ll be given with some HTML script code. This code must be placed on every page of your website.
















Click OK to close the pop-up window and then you’ll be taken to the GTM admin screen.