How to Set up GTM (Google Tag Manager) for Magento 2

Set up GTM (Google Tag Manager) for Magento 2

Are you tired of managing tags on your website?

What if I tell you, you can manage all the tags of your website by setting up Google Tag Manager in your Magento 2 website?

What is Google Tag Manager?

Google Tag Manager (GTM) is a free tool developed by Google that allows Magento 2 store owners to manage and deploy marketing tags and there is no need to make changes in the code.

Managing tags without a tag management system is very time-consuming, complex and difficult as well.

Just like Magento 2 extensions, setting up Google Tag Manager and Google Analytics both are important for Magento 2 websites.

According to Google, the GTM helps to make tag management simple, easy and reliable by allowing marketers to deploy website tags all in one place.

Why do Magento 2 Store Owners Need to Use GTM?

If you have a large Magento 2 store, it is essential for you to add GTM for your Magento 2 site because your website needs to update tags on a weekly or monthly basis. Many times, if the tags are not properly, it can slow down your website.

GTM solves all such problems and that is why it is good to leverage.

How does Google Tag Manager Work?

Google Tag Manager works on three phases.

The first phase is that the event occurs on a website. In the second phase triggers an acknowledgement then the set event happens. And in the third phase, the tag will take certain actions on a website.

What are the Advantages of Adding Google Tag Manager for Magento 2?

  • Easy to use and update
  • Event tracking
  • Debug features
  • Permission management
  • Works with Google Analytics

Let’s understand the process of adding Google Tag Manager for Magento 2 Websites.

How to Add GTM (Google Tag Manager) For Magento 2 Websites [Step-by-Step]:

  1. Create a Google Tag Manager Account
    Getting Started with Google Tag Manager. Click on “Start for free”. After login with your Gmail account, you will need to create a Google Tag Manager Account. Write down your account name, country and select target platform. Then, click on create.GTM Account setup
  2. Get the GTM Code
    There are two sections in code. The first one, you need to paste in the header section and the second one, you need to paste in the body section of your Magento 2 website.GTM Installation Code
  3. Open your Magento Admin Panel and move to Content > Design > Configuration > Edit the Store View > Other Settings> HTML Head. Paste the code you got from GTM for the <head> tag here.Paste GTM code under Magento 2 HTML head section
  4. Now move to Footer and paste the GTM code for <body> under theMiscellaneous HTML”. and Click Save Configuration.Paste GTM code in Magento Footer section
  5.  Go to frontend to check if GTM is installed in Magento 2. Open home page, click CTRL + U to open view source. Find GTM and you can see the code.GTM Proper Installation checkAlso, you can use Google Tag assistant chrome extension to check for the proper Google Tag Manager for Magento 2

Google Tag Manager is essential for e-commerce websites because the website gets updated on a daily basis and GTM does automatic tag updates. Leverage these simple steps to add GTM on your Magento 2 website.

If you have questions, feel free to ask in the comment section below.

I would love to answer your question.

Thanks

Get Weekly Updates

Never miss Magento tips, tricks, tutorials, and news.

Thank you for subscribing.

Something went wrong.

5
(based on 7 Reviews)

Marketing Manager at Meetanshi, she is an expert in the field with 6 years of experience. Apart from work, she is a foodie, watch lover and a proud wife.

Leave a reply:

Your email address will not be published.