I’ve seen this asked a lot recently. I’ve also seen far too many people adding Google Tag Manager and Google Analytics separately or incorrectly adding either tool.
So I’m going to guide you through the set-up step by step. That’s right people, strap yourselves in ‘cause you’re about to get Spoonfed!
What Is Google Tag Manager?
First up, let’s take a look at what Google Tag Manager actually is..
Google Tag Manager or GTM, is free tool from the big G for managing on-site tags, such as Analytics, AdWords, Remarketing, Pixels, right down to event tracking and button clicks!
GTM is the bee’s knees and very user friendly, meaning once you get it installed, you can add tags to your heart’s content even without the help of a developer.
You don’t even need a developer to help you get set up on GTM. Know why? Well, because we made the ultimate guide on how to install Google Tag Manager on WordPress websites!
That’s right, it’s already been Spoonfed!
So let’s get stuck in, shall we?
Step 1: Sign up for Google Analytics
Obviously, if you want to install Google Analytics, then the first step is to actually sign up and create your account for the platform.
It’s a simple process. Start by heading over to Analytics and sign in with your Google ID.
You’ll then be asked for some straightforward information, like your account name (the name of the website / company you want to start tracking), the website name (you know like the amazing beginners SEO guide that is SpoonfedSEO.com).
Finally, fill in the website URL, select a category for your website and an appropriate time zone.
You’ll then be given your tracking ID. Welcome to the Google Analytics family!
To find your tracking ID in future, just head to the little gear-cog down the bottom left corner of your Analytics screen and under the middle column you’ll see “< > Tracking Info”. Click that, and right under it click “Tracking ID”.
Step 2: Create a New Tag
Now this next step presumes you have already followed our guide for adding GTM to wordpress, so if you’re missing anything or not sure, just follow the steps outlined in our guide.
Now we’re going to create a new tag for our analytics account.
So to start off, from your GTM account homepage, select your website container, click tags and “New”.
So first up, name your tag something easily identifiable, you know, like “Google Analytics”?
Next, click on the Tag Configuration box and you’ll be given a menu of different tags to select. Click on the very first one – Google Analytics – Universal Analytics.
You can leave the “Track Type” as Page View. In the Google Analytics Settings box, click it and select “New Variable”. This is where you will paste in your Google Analytics tracking ID.
Go ahead and name the variable (again, something identifiable) and leave the Cookie Domain on auto. Save the new variable and head down to the next box; “Triggering”.
Now you’ve created your tag, you just need to create a “Trigger” to make the tag fire on your site.
Step 3: Creating a Trigger
Pretty simple step here. As before, just click on the “Triggering” box, you’ll be shown the below screen: simply select “All Pages”.
This means your Tag will Trigger whenever someone views a page, and it’s set on All Pages.
Hit save, and congratulations, you’ve just created your Google Analytics tag!
Step 4: Test it!
Now, we’re making changes to a live site. We’re not just going to add something and leave it are we?
No, no we’re not. Seriously, don’t ever do that!
In the final step, we’re going to make sure your tag is firing correctly and Google Analytics can collect all that juicy data from your site!
So, up in the top right hand corner of GTM, press the “Preview” button. This will bring you into preview mode and you should see the following box:
Now head on over to your website. If you already had it open, just hit refresh and you should see GTM pop up with a little preview window at the bottom.
Now because you have the trigger set to a Page View, all that needs to happen for the tag to fire is simply load the page. So straight away you should see this on your screen:
And, that’s a wrap folks! If you’re getting that message then you just successfully installed Google Analytics with Google Tag Manager! I’m so proud of you!
Be sure to leave preview mode, sit back and watch all of that tasty data fly in from your website!
So that’s all for today folks. I hope you found this little Spoonfed guide helpful! If so, give us a little tweet, or a share, or even get in touch through our contact form and tell me what you think!
As always, if there’s something I’ve missed or a specific topic that’s troubling you, let me know and I’ll be sure to cover it!
‘Till next time Spoonfeeders!