How to Install Google Tag Manager on a Magento Website – The Guide

With the use of Plugins, installation of A Google Tag Manager Magento is easier to accomplish. There are several Plugins available in the Magento Connex Store. Watch this video to know more.

Helpful Links:
-http://www.optimizesmart.com/implementing-e-commerce-tracking-google-tag-manager/
-https://support.google.com/tagmanager/answer/2574370?hl=en
-https://github.com/CVM/Magento_GoogleTagManager

Hi there, and welcome to another video of GTM training.com with me Julian. And today we want to discover how to install Google Tag Manager onto a Magento shop system. As always, these videos are brought to you by my Udemy course on Google Tag Manager, where I explain the essentials of Google Tag Manager and make you ready to use this tool effectively.

So if you want to check that out, head over to GTM training.com slash YouTube. Now the day we’re going to talk about how to integrate Google Tag Manager, the free tag mentioned solution from Google onto the very popular shop system Magento.

And obviously, this makes a lot of sense for e commerce companies who have Magento running or any other e commerce companies to use Google Tag Manager because it makes the organization of tracking codes much easier.

Two Ways to Install GTM on Magento

And those can be a lot on shop systems such as retargeting different Web Analytics tracking or other JavaScript codes that you might have on your page and are basically two ways to install Google Tag Manager.

Manual

One is the manual way. And one. The other is plugins. And I won’t go into the manual approach too much, but it’s safe to say that you can insert the GTM snippet directly into the template without installing any outside plugin onto your store. And really, any Magento developer should be able to do this just a friendly reminder here, you need to place the GTM snippet beneath the opening body tag. So now in the head, it won’t do you any good. If you insert that into the head directly in the back end of your Magento store, you need to place it beneath the opening body tag and there is no field for it in the admin section of your Magento store. So you need to get a developer to build that in To the template, if you don’t want to use a plugin, plugins are much easier to use, obviously. And we’ll take a look at how to install this right now.

Plugins

So here we are in the Magento Connect store, you can just access this by going to Magento commerce and on to the Magento Connect section. And here obviously, you can search for different plugins. And there are different plugins already out there for Google Tag Manager. And I played around with a few of those. And they all do the basic thing of installing the Google Tag Manager code beneath the opening body tag. So that is something that is working with any plugin out there, I will just pay attention to the data layer integration. That’s the real difference between all these plugins. So there are highly rated plugins out there but all they do is basically build in the Google Tag Manager code without providing a pre built data layer functionality. And this prebuilt data layer might be important.

If you Want to do something like the ecommerce tracking in your store or dynamic remarketing, then it would be useful if the plugin already provides the data in the data layer. So you can port it over to Google Tag Manager. So there are different plugins out here. This one is by slugs, and it features the remarketing and transaction capability with the data layer. So you can set that up within Google Tag Manager. This one is also very popular by shopko. Here you can only put in the container ID. And we have one by zero here, which is also just the container ID. So it just adds Google Tag Manager to your site but doesn’t pre build any data layer functionality for you, which I would expect from a good Google Tag Manager plugin.

Installing GTM with a Plugin

So let’s go ahead and install this slugs plugin. on install now and agree to the extension terms, then we can select this key and copy it.

Paste Extension Key in Magento Connection Manager

Now all we have to do is go over to our admin section of our Magento store and then under systems, we can go into the Magento Connect manager. And there we can paste our code in and install the plugin.

Once that is done, then we will return to our admin section and we will be able to access the new panel under the system configurations.

GTM Configuration

We have here a new Google Tag Manager panel that we can configure Just a word of warning, if you see a 404 error page here, you need to log out and log in to your admin again, because the admin section needs to be rebuilt or reboot, in order for this to work. Now once you’re on this panel, you can easily install your Google Tag Manager code by enabling this functionality and inserting your container ID, which of course you can find in your Google Tag Manager account. And up here we can see our GTM container ID, which we can simply copy and paste into the admin section.

Testing

And when we save this configuration and also flush our cache. And then go to our page, of course, our front end and reload the page. We now see that Google Tag Manager is installed and our tagging system by Google we can also call us. Make sure by going into the page source and looking for the Tag Manager script. Here we go. And it is installed beneath the opening body tag, which is the right position.

Other Data Layer Configuration

Now with the plugin that we have installed right here. We can also configure the data layer which will give us the ability to enable Dynamic remarketing and the e commerce tracking within Google Analytics. But be aware that once you enable those features, you still need to do configurations within your Google Tag Manager account. But that’s for another tutorial video that I will release soon here at GTM training.com.

Summary

So that’s it for this week’s video. If you liked it, please give us a thumbs up or subscribe to this channel. And if you have any questions or concerns or suggestions for new videos, then please post them into the comment section of this video. I’m Julian till next time. Now let’s dive into our today’s topic, which is custom HTML tags. And once we log into our Google Tag Manager account, we can see the tag option of custom HTML tags once we’ve opened up a new tag down here in the section under choose your tags now important to know is that these here are all so we will use Use the all pages trigger to trigger our Google AdWords remarketing tag. Let’s take a look at a live example. So here we are on our demo store. And all we need to do to deploy it, we need to have Google Tag Manager installed. Then we can head over to our Google Tag Manager account. Click on a new tag. We want to deploy a Google AdWords

JOIN US!

Master Data & Analytics with Measuremasters

Exclusive Courses & Workshops | Ongoing Troubleshooting | Support Resources, Tools & much more
guest
0 Comments
Inline Feedbacks
View all comments

Blog Categories

Join 30,000+ marketers getting exclusive resources and our latest content!

now it's time to

Start measuring like a master

Itching to jump into the world of MeasureMasters? This is what you have to look forward to.