Go Dark Go Light
Stand with Ukraine!  How can you help?

Magento 2 Google Tag Manager Extension

Magento 2 Google Tag Manager Extension is an advanced eCommerce solution that allows you easily include measurement codes and tracking pixels into your Magento 2 store with no code editing. It enables you to get in-depth reports on customers' behavior, conversions, impressions, checkout, and other events through Google Analytics 4.

Make data-driven decisions and adjust your marketing strategy with insightful data reports with the better Google Tag Manager for Magento 2.

  • 13+ eCommerce events
  • Web container and server container
  • Client-side tracking and server-side tracking
  • Ready-made JSON files
  • Google Ads Remarketing / Conversion Tracking / Enhanced E-commerce
  • Speed optimization for the GTM script
  • No code editing or technical knowledge needed
Special Price FREE Regular Price $79
one-time payment
Download Now Free Trial
Purchase with Magento 2 Facebook Pixel and get 10% OFF.
FREE version available
Magento
Enable eCommerce Tracking in Magento
Get in-depth store reports with Google Tag Manager
Checkout performance reports in Google Analytics
Live Demo
Compatibility:Magento 2.3.0 - 2.4.7-p1 (CE, EE, ECE, B2B)
Version:2.6.3
Magento 2 Google Tag Manager Extension
Magento Google Tag Manager

Forget About Code Editing

To implement GTM code snippets you usually need to edit and modify the source code of your store. Not anymore.

With this Magento 2 Google Tag Manager Extension all you need is to tweak a few settings in the admin panel.

Now anyone can add, edit and disable GTM tags without relying on webmasters or technical support.

Don't Create GTM Tags - We Did It For You

Once you insert the Google Tag Manager tracking IDs in the admin, all eCommerce events are created automatically.

All you need is to export the JSON file with them to your Google Tag Manager account.

Then data about impressions, add-to-carts, purchases, refunds and other customer activities will be passed to Google Tag Manager and Google Analytics 4.

Getting insights about your store's performance is as simple as that.

Magento Google Tag Manager Tags
ecommerce purchase magento

Measure How Your Products Perform

Google Analytics E-commerce support enables you to get a concise picture of the performance of your products. Use Magento 2 Google Tag Manager Extension to track and analyse:

  • - product impressions and clicks by position (in search results and category pages)
  • - product impressions and clicks in custom product blocks (related, cross-sell, up-sell)
  • - user engagement (vising, adding and removing products from a cart)
  • - conversions (purchased products)
  • - revenue (per each product)
  • - quantity (products purchased per a specific time)
  • - CTR and more.


Increase the average order value and incorporate a new marketing strategy with proper data at hand.

Leverage Your Google Ads Campaigns

Magento Google Tag Manager Extension is all about making data tracking easier for you. So, if you want to improve the accuracy of your ads, use the Google Ads options of the extension.

  • Set up Dynamic Remarketing: display personalized ads with products and services people viewed on your website.
  • Enable Conversion Tracking: track orders made through the ads and assess the effectiveness of each campaign.

  • Benefit from Enhanced Conversions: capture the customer’s email address through the conversion tracking tags for better conversion measurement.
enable google ads for magento

Get data tracking to the next level

Optimize your online impact by gaining valuable insights into your store performance

Checkout Performance in Google Analytics

Track Checkout Behaviour

Checkout is one of the most important and decision-driving steps in customers' journey.

Although you’ve already optimized checkout on your store, Magento Google Tag Manager will make it better.

  • Discover how successfully customers moved through each checkout step.

  • Determine what might cause the cart abandonment.

  • Create checkout funnel visualisation to track all actions customers take on checkout.

Track All Conversions and Refunds in Your Store

To determine which sales and marketing strategies work the best you need to track conversions and refunds.

This Google Tag Manager allows you to monitor all orders in your store 一 made on the frontend or through the admin panel 一 along with the refunds.

You can also monitor coupon performance by source and medium. Learn how much revenue each coupon is generating and the total revenue per coupon with the Magento 2 GTM extension.

track orders and refunds in magento
customer shopping behaviour magento

Monitor Customers' Shopping Behaviour

The customer shopping experience is key to better conversions. To create that experience you need advanced in-store behaviour tracking with Magento 2 Google Tag Manager.

Track every step in the customers’ journey and discover the bottlenecks that need to be eliminated.

  • - products viewed, added or removed from their shopping cart
  • - checkout steps completed successfully
  • - abandoned shopping carts and checkout process
  • - registered and signed-in customers (pages)
  • - customers that use search (pages and medium)

Enable Server-side Tracking

Although Magento Google Tag Manager is the ultimate tool for data tracking, some data might still be missing.

Your visitors don’t accept cookies, or simply use AdBlockers that prevent data from being collected. But not any more.

Enable the server side-tracking using GA4 Measurement Protocol or use Server Container to avoid this.

All eCommerce events will be sent from your Magento server directly to GTM or Google Analytics servers in HTTP requests. No customer data will be collected from the browser.

magento server side tracking
include shipping and tax in purchase event magento

Track All Valuable Purchase Data

Tracking purchases is vital for your marketing and sales campaigns. However, it’s the details that matter most.

Use Magefan GTM Extension to track what products get purchased the most and how much revenue each generates. But there’s more.

The order details you get in the GA4 reports with this extension include:

  • - Order ID
  • - Currency
  • - Revenue
  • - Coupon code
  • - Items purchased
  • - Tax amount
  • - Shipping amount

Make sure it's a good match!

Uncertain whether the Magento 2 Google Tag Manager Extension has all the features you're looking for, or if it aligns with your goals?

Never Miss a Conversion

If customers use AdBlockers or don’t accept cookies their purchases are simply missed. This results in inaccurate data reports and ineffective campaigns. Is there a solution?

Magento 2 Google Tag Manager enables you to use server-side tracking only for missing orders.

You’ll capture every single purchase to leverage your marketing strategies while still using web container tracking.

Note: if you use a headless PWA storefront, you’ll benefit from the REST API endpoints our Magento 2 GTM Extension offers for server-side tracking.

server side tracking in magento 2
google consent mode in magento

Comply with Google Content Mode

Google is very responsible when it comes to protecting customers’ data and privacy. That’s why it introduces the Consent Mode which Magefan GTM Extension is compatible with.

If you use the default Magento Cookies Restriction Mode you can set consent paramenets to denied by default.

Then once a user specifies their consent choices, these parameters will be set to granted.

Comply with Google policies and collect only the data users allow you to.

Optimize GTM JavaScript Loading

Whenever you add any custom scripts to your store, you add extra time for these scripts to load.

Since website speed is one of the most important factors in the purchasing decision we made sure it is not altered.

Our Magento 2 GTM Extension comes with a speed optimization feature.

You can simply enable it from the backend and the GTM script will only be loaded after the first scroll, click or mouse touch.

Optimize GTM JS loading
Stape.io compatibility

Compatibility with Stape.io and Custom GTM Loaders

Do you use Stape.io service or any other custom GTM loader to improve data tracking through GTM?

You’d benefit from the ability to use the Web GTM code we offer.

You can choose to track data through Stape.io or other GTM loaders with BODY and HEAD scripts and gather valuable insights about store performance better.

FAQ

Does Magento support GA4?

Yes, Magento supports the GA4. To configure it go to Stores > Configuration > Sales > Google API and enable it. However, note that in this case, you'll need to create all eCommerce events, triggers and tags in your Google Tag Manager account manually. Our extension will do this for you automatically.

 

How to add Google Tag Manager to Magento 2?

Usually you have to go to your Google Tag Manager account, get the GTM code there and paste this code in the HTML head field in Magento admin.
However, with this Magento 2 Google Tag Manager extension, all you need is to paste your tracking IDs in the extension configuration. Then import preset GTM tags into your Google Tag Manager account.

 

Does your Google Tag Manager Extension for Magento support Dynamic Remarketing?

Yes, this module supports dynamic remarketing. You just need to paste your Conversion ID and Label in the extension settings to enable it.

 

Why do I need to enable server-side tracking in Magento?

Unlike browser-based tracking, server-side tracking doesn't miss any conversions if customers use adblockers or don't access cookies. In thsi case, data is passed from your Magento server to GTM or GA4 server via HTTP requests.

 

What is the difference between GA4 Measurement Protocol and server container?

Both are used to enable server side tracking in Magento. However, if you use GA4 Measurement Protocol data will be sent from your Magento server to GA4 only. With the server container data is sent from your Magento server to GTM and then to GA4, Google Ads and somewhere else.

 

How do you know if Google Tag Manager is working?

Once you import the JSON file to your GTM account, open the debug view and trigger different events in your store. Besides, there are also other ways to test if GTM is working.

 

Can I install the Magento 2 Google Tag Manager module via the composer?

Yes, you can. All our modules can be installed via the composer. Once you purchase the extension, you receive keys to the private Magefan composer repository and find the composer installation commands available in the "My Downloads" section.

People Also Searched For
  • magento google tag manager
  • magento 2 google tag manager
  • google tag manager extension magento
  • google tag manager extension magento 2
  • google tag manager extension
  • google tag manager magento extension
  • google tag manager magento 2 extension
  • google tag manager magento 2
  • google tag manager for magento 2
  • magento 2 google tag manager
  • gtm magento
  • magento 2 gtm extension
  • gtm magento 2
Quick Overview Video

Tracking vital in-store data is easier if you use the right tools. Set up Google Tag Manager for your Magento 2 store and learn more about your customer's behaviour.

Watch this short video to learn how to add GTM to Magento in a few clicks.
Related Products
Magento 2 Google Shopping Feed Extension
Google Shopping Feed
$99
one-time payment
(11)
Magento 2 SEO Extension
SEO
$99
one-time payment
(48)
Magento 2 Rich Snippets Extension
Rich Snippets
$99
one-time payment
(8)
Better Magento 2 Checkout Extension
Better Checkout
$149
one-time payment
(4)
Magento 2 Auto Related Products Icon
Auto Related Products
Special Price FREE Regular Price $149
one-time payment
(15)
Magento 2 Hreflang
Hreflang Tags
$99
one-time payment
(11)
 
What our
clients say

The extension fully met our needs and was easy and fast to configure. Thank you Ihor for your fast support!

By
Katharina Katharina
Brands Who Trust Us
Magento 2 Google Tag Manager Extension
Live Demo
^Top