taggrs-logo

Magento Data Layer Extension from TAGGRS

taggrs-magento-data-layer-Extension

Do you have a Magento 2 webshop? Then it is essential to collect and analyze detailed data to improve your webshop using a Data Layer. The TAGGRS Magento Data Layer Extension makes this easier than ever. Discover how to gain valuable insights without being a coding expert.

Download the free Magento Data Layer Extension from TAGGRS.

About the TAGGRS Magento Data Layer Extension

The TAGGRS Magento 2 Data Layer Extension helps you set up a working data layer in just a few clicks, allowing you to measure user interactions of your Magento website. General information:

  • Google Tag Manager Data Layer: Integrate easily with Google Tag Manager.
  • GA4 Data Layer Protocol: The Magento data layer extension is based on the GA4 Protocol.
  • Server Side Tracking Compatibility: Supports Server Side tracking.
  • Enhanced Conversions: Includes enhanced conversions.
  • New vs. Existing Customers: Keep a distinction between new and returning customers.
taggrs-Magento-Data-Layer-extension (2)

What events can you measure?

These are the key events you can now measure with the TAGGRS Magento Data Layer Extension.

  • view_item_list
  • view_item
  • add_to_cart
  • remove_from_cart
  • view_cart
  • select_promotion
  • begin_checkout
  • purchase

More information can be found on our GitHub.

What is a Data Layer?

A data layer acts as an interpreter between your website and analytics or marketing tools such as Google Tag Manager (GTM). It collects data about user interactions, such as page views, products added and purchases completed, and saves it in a structured way. With this data, you can then create tags and triggers in turn that will forward this data to your desired platforms such as Google Analytics and Facebook. Don’t have a data layer on your website? Then you can’t measure certain (E-commerce) Events that help perform accurate analysis and optimize marketing strategies.

ga4-data-layer-gtm-preview-mode

How Google Tag Manager Uses the Data Layer

Use Google Tag Manager uses the information in the data layer to trigger triggers and fire tags. This allows you to collect and analyze data without direct changes to website code.

Tag manager-Data-Layer-demoshop

TAGGRS Set up Magento Data Layer Extension

Below we show you step by step how to install the TAGGRS Extension in Magento 2 and test it in Google Tag Manager.

1. Download the Magento Extension

Download the TAGGRS Magento Data Layer Extension from GitHub and install it on your Magento website.

TAGGRS-Magento-2-Github

2. Install the Magento extension on your website.

Follow the following steps to install the TAGGRS Magento Extension on your website.

Enable your Magento store’s maintenance mode.

bin/magento maintenance:enable

Add the extension using Composer.

composer require taggrs/magento2-data-layer

Activate the module and update the database.

bin/magento setup:upgrage

Compile the dependency injection.

bin/magento setup:di:compile

Distribute static content.

bin/magento setup:di:compile

Turn off the store’s maintenance mode.

bin/magento maintenance:disable

3. Open the Magento Extension

After installation within the Magento Admin, go to Store and choose Configuration here.

open-taggrs-magento-2-data-layer-extension

4. Google Tag Manager settings.

Next, select the TAGGRS Data Layer extension. Then you can fill in the following points. Please note that not all points are mandatory.

  • Google Tag Manager Code: Enter your web container ID here.
  • Google Tag Manager URL: Enter your subdomain here including https://
  • Measurement API secret: Want to use Webhooks? With the measurement API, you can close the gap of datalayer event on thank you page by sending a webhook to GA4. As a result, GA4 is 100% accurate in terms of ecommerce. This then involves only the purchase event. Check out a tutorial on Measurement API Secret here
  • Measurement API – Measurement ID: GA4 measurement stream code; Example: G-1234567890
  • Debug mode: Once you turn this on, the datalayer is displayed within your element inspect console. This makes it easy to see what you are forwarding to GTM.

Then click Save Config to save the changes.

google tag manager-settings-taggrs-magento-data-layer-extension

5. Add Events in data layer extension.

Then, within the extension, you can choose which events you would like to measure by selecting Yes and No. Then click Save Config to save the changes.

magento-data-layer-taggrs-configuration-events

6. Data layer testing in Google Tag Manager.

We will now test whether the data layer actually works. Go to the Google Tag Manager preview mode , create an event, then click on data layer and here you will see your Magento data coming in nicely structured.

magento-Data-Layer-TAGGRS-Preview-mode

Submit Data to Analysis Platforms.

  • Make sure all tags and triggers in Google Tag Manager are set up correctly to forward data to your analytics platforms.
  • Don’t know how to do this? Refer to the implementation guides and videos within the TAGGRS software for more information. You can register for free (no credit card required).
taggrs-implentation-guides-dashboard

Conclusion

The TAGGRS Magento Data Layer Extension provides a solution for collecting and analyzing valuable customer data. With this tool, you can obtain detailed and accurate data that is crucial for making informed decisions and optimizing your web shop. Increase your success and exploit the full potential of your Magento store with the TAGGRS extension. Also check out the rest of our TAGGRS Tools.


About the author

Ate Keurentjes

Ate Keurentjes

Server Side Tracking Specialist at TAGGRS

Ate Keurentjes is a Server Side Tracking specialist at TAGGRS. He has experience with various Google Tag Manager concepts. Keurentjes has been editing and writing about the latest developments and trends in data collection / Server side tracking since 2023.

Ready for the next level?

Start with Server Side Tracking and generate more revenue and conversions in a world without third-party cookies.