See All Videos

How to get started with Google Tag Manager

By Brett
September 01, 2020

If you have not used Google Tag Manager before, we created a crash course for you. You will find tips for setting up your container, resources for adding it to the most common CMS platforms, and we will show you how to set up your first tag and trigger.

View Transcript

This is a crash course on how to get started in Google Tag Manager, I wore my helmet to be safe. So basically if you want to use Google Tag Manager it allows you to add tags, bits of code snippets like JavaScript to a site so you can track different events, so you can not only track Google Analytics pageviews and pageviews in Google Ads or Facebook you can also track particular events like if somebody filled out this form or even more granular things like if they wanted to fill out just a particular aspect of this form like they just wanted to this form, just want to do this name or email we could actually capture that create a trigger against that rule and then fire a bit of script whenever somebody does that. To do that you’ll really want to get started in going to Google Tag Manager actually signing up for the platform, so it’s pretty easy you just start for free you’re just gonna use your Google Account once you’re in there you’re if you have accounts already you’ll see your accounts listed here so we have our Anvil account right there, what you can do is go ahead and create a new account if you don’t have any and create an account, an account is just a group of different websites or apps and then the actual container is actually the code that will go on your app or website so in this particular case you’d probably just put your website name just going on one website or even you can say a group of websites you just put that name there once you get in there and you could also if you already have a container you’d go in and create, or you already had an account you create a new container but let’s go ahead and use our existing one here for Anvil website you’ll see these workspaces generally you’ll start off with just a default workspace these are just different places you can work in all at the same time so I could be editing code or my friend Elise here could also be editing different code we could be working at the same time, here we already have a trigger that’s already in place that I was working on earlier another thing you can do here this is really cool is I can press preview and you’ll be using this a lot to test out your tags and once we have preview selected we can go back to your website refresh it and then you’ll actually see this preview of what tags are actually firing when and then you can actually see what tags have not fired but you can actually look at different activities over time that have happened with their clicks when the page loaded and see what tags have happened when, what is the state of the actual Google Tag Manager to the team of the the time of the different events you can see how the variables might change over time for instance that event is changing and then you click, you would have click class or click elements depending on what you clicked. Actually getting into Google Tag Manager is fairly easy, so once you get in there you just create new tags we want to create something new so if you just want to do is like a basic HTML tag you come in here you could do Google Analytics, Google Ads, Facebook there’s all kinds of ones you could do if you just do a custom HTML you could literally write HTML in here, close that out and then you could press a trigger with this is the rules so you just have it fire on all pages and then we’d have just my test tag here, could just fire at any time on all the pages save refresh and then we go back to our page, refresh this and we see in the test our HTML tag fired and we’re good to go, now obviously this is just on my test and I haven’t actually submitted it it’s just on my particular computer and not everybody else’s out on the webs, but if you say I’m going to leave this preview mode and then we like this little tag that we created so we’ll go ahead and submit it and this gets it actually out on the web first literally anyone who comes to your website will then have that tag fire whenever they view a pageview and then it’s called HTML test, and it’s always good to name things you could also put details on it, and then you just press publish, it just takes a few seconds and then it is now a tag published, the cool thing too is we can go back to the default workspace is you could always go back to these different versions and actually delete anything you create out here so if we want here we can see what was recently pushed and then we could go into a new version and actually delete that out or even roll back to a previous version if we want to right here we could go and set as latest version or you could even come into this new one just delete that version as needed. In terms of getting Google Tag Manager on your site if you have WordPress there are plug-ins like this Google Tag Manager for WordPress, that was created so you can just add in the plug-in and you just put in your Google Tag Manager ID that you’ll get if you go back to Google Tag Manager, you go to your admin and you do right here next to it you have your ID or if you need to actually add in the code yourself you could go in press this install Google Tag Manager and it gives you the actual code and then it tells you where to place that code on your particular website and once again as I said you can add it to WordPress there’s this analytics mania has how to tag it attach it to a Wix website, another really common one as well is Squarespace so this particular blog is Paul Castillo has a how to add it to your Squarespace but it’s relatively simple and so there’s a lot of good resources out there to add Google Tag Manager to wherever you want, so once again you can add Google Tag Manager to be able to get their codes for Google Analytics, Google Ads, Facebook whatever type of script you want to get in there you can then you can put it in there and you can create very specific rules and that way can have rules when someone does an event like fills out a form that’s an Ajax form or goes through their page or whatever you’re looking for and you have a lot of control over at Google Tag Manager, so thanks for much, please subscribe to our channel or go to any of our webinars if you want to learn more. Thank you very much.

Still need help?

GET IN TOUCH
About the Author
Brett uses analytics to help clients put all the pieces together—from identifying KPIs to finding the right data to measure those KPIs and then collecting that data. He’s been in digital marketing for 8+ years and brings analytics leadership to the Anvil team. If he’s not drilling into data, he’s probably hanging with his kids or maybe playing some D&D.
More from this author
Ready to start a project?
let's work together