Installing GA & GTM
Setting Up Google Analytics
In this guide we are going to add the site to our analytics account, and get the analytics code that we are going to use for google tag manager.
Sign into the SEO Chrome Profile.
Go To Google Analytics. There should be a link on the menu bar, if there is not you can just do a search for Google Analytics.
Once in the Google Analytics Profile you are going to want to figure out what folder you are going to be adding the new clients to.
In the Search Bar on the Analytics portal type ‘Dealer Spike Part’
Also Collapse all the folders
Now that the list is easier to read, look for the Dealer Spike Folder that is the newest, you will know what one that is by the one with the highest number. In the example below that is going to be ‘Dealer Spike Part 15’
Now that you know what folder you are going to add the client to, you will now add our client to that folder.
You will want to get into the admin section. To do this you will click on the gear icon in the lower left hand of the page.
Once in the admin section you will want to find the folder that you are going to be working in. You will do this by clicking below where it says account, and finding the folder (account) that you found in the previous step.
Now you will move to the next column to create a new property
If the folder is full you will have to create a new folder, this will be gone over in detail in {this guide} guide to be written later
At the bottom of the drop down click on where it says ‘Create New Property’
When creating a new property the first thing you are going to do is make sure you are tracking for a website.
Next you are going to want to fill out the Website name, The Website URL, and the Industry Category.
The Website name is what you would normally call that site, or the dealerships name. Such as Dealer Spike Powersports or Portland Tractor Company.
The Website URL is going to be the address that you put into the nav bar on your browser to get to the web site.
The industry category will most likely be Automotive, if you feel that it fits somewhere else in the option please approach the team/pod lead
Once that is all filled out click Get Tracking ID.
Now that you have the tracking ID Make sure to copy it down, you will need that code later.
You are now going to want to set up the initial view.
You are going to first click on the button that will lead you one level up in the folder that you are currently in.
Next we are going to change the section that says ‘All Web Site Data’ to something more meaningful for us.
Below where it says ‘All Web Site Data’ click on View Settings
Now that you are in the view settings you are going to want to change the View Name to the name of the dealership you are working on
Then Scroll to the bottom and click save to save your changes.
Now you are going to move onto setting up Google Tag Manager.
Setting Up Google Tag Manager
We are going to setup Google Tag Manager. You are going to need access to the google account we are currently using to track with GTM, as well as the UA code that you got when you set up Google Analytics (GA). If you have not set up GA please do that before proceeding.
Google Analytics Setup
The first step is going to be to make sure that you still have the UA code that we got from analytics.
You will want to know what profile to use to add a client to GTM.
Google only allows each profile to set up a limited amount of sites on Google Tag Manager so we are going to have to make profiles for each.
If you do not know what profile to use reach out in the SEO/SEM chat. Currently we are going to be using the SEM Profile to set up GTM.
Once you know what profile you are going to use to set up GTM log into that account on your chrome browser.
Now Go To Google Tag manager by clicking the link on the toolbar, if for some reason that link is not present you may get there by following this link.
Now that you are in GTM you are going to want to Create an Account
Click where it says Create Account.
Now that you are in the Add a New Account section you will start by giving the account a name, this name will be the name of your dealership.
Then Click Continue
The container name will be the URL of the site you are working on
You are creating a Web Container so click on ‘Web’
Click Create
This will bring up the GTM TOS (Terms of Service), you can read it if you’d like, or just press the big blue ‘Yes’ on the right hand side of the page.
Now that your account is created you we are going to install GTM on our page
After clicking ‘Yes’ on the TOS you are going to have a screen that has two blocks of code on it.
Now with that code open you are going to open notepad++ or whatever text editor you wish to use.
Within the folder for the site you are working on you are going to open a subfolder named ‘includes’ and then two files. stdHeaderEnd.inc and stdHeaderStart.inc
The first code is going to go into the stdHeaderStart.inc file.
You will want to copy and paste the code into the stdHeaderStart.inc file as high up in the <head> section of the page as possible.
You will then want to adjust the commented out section to include SEO/SEM Your Name and the Date.
So the code will look very similar to this when it is all done
Now save your changes.
The second code we are going to want to place in stdHeaderEnd.inc
You will want to copy and paste the code into the stdHeaderEnd.inc file as close to the <body> tag as possible
You will want to adjust the connected out section to include SEO/SEM Your name and the Date
So the code will look very similar to this when it is done
Now save your changes.
Adding Tags
Analytics Tag
We will now want to add our Analytics code to Google Tag Manager
After you have copied the code from GTM you should be able to hit esc on your keyboard to drop down to the Workspace Panel.
You will then want to add a New Tag
At the top of the page it is going to say ‘Untitled Tag’ you will want to change that to ‘DS - GA Tracking Code’
Then click where it says ‘Tag Configuration’
Next you will choose a tag type. For this, choose ‘Universal Analytics’
Track Type will be Page View
For Select Settings Variable… choose new variable.
Within New Variable paste in you GTA Tag
You will also want to name this SEO SEM Analytics Tag
Click Save
Then when you are back in the DS - GA Tracking Code move down the screen and click on where it says ‘Triggering’
When choosing a trigger choose “All Pages”
Next, Save your progress
Now you are going to want to make sure that your changes are live.
Back in the workspace in the upper right hand corner click where it says submit.
You can create a description of what you did on the next part if you would like or just click publish and then click continue.
Now go to the clients page you are working on and click on Google Tag Assistant
Then click enable and refresh your page.
Now open Google Tag Assistant again and it should look similar to this.
If you see anything other than green and blue tags you may have done something wrong and will need to roll back and double check your work