Logo of TAGGRS, written in blue and with a small favicon
HomeServer-side Tracking
Start for free
Introduction
Get started
Get started with TAGGRSSet up Google Tag ManagerAdd the GTM Data LayerConfigure GTM transformationsTest the setupDebuggingAnalytics dashboard
Migrate from Google CloudMigrate from hosting
Shortcuts
GTM Copy PasteReady-made templates
GA4 Server-side Tracking
Setup in GTMCreate GA4 Event TagsGA4 tag setup in server containerE-commerce events in GTM
Google Ads Server-side Tracking
Install Conversion LinkerSet up Conversion TrackingConfigure Enhanced ConversionsDeploy Remarketing Tags
Facebook Server-side Tracking
Set Meta PixelImprove your EMQ ScoreInstall Meta CAPIMeta Events DeduplicationMeta CAPI Gateway
LinkedIn Server-side Tracking
Install LinkedIn Insight TagSet up LinkedIn CAPILinkedIn Events Deduplication
TikTok Server-side Tracking
Set up TikTok PixelInstall TikTok Events APITikTok Events Deduplication
Pinterest Server-side Tracking
Set up Pinterest TagConfigure Pinterest Conversions APIPinterest Events Deduplication
Snapchat Server-side Tracking
Set up Snap PixelSnapchat Conversions APISnapchat Events Deduplication
TAGGRS Tracking Tags and Tools
Tracking TagsGoogle Service Account integrationsGTM LogsProfit TrackingData Enricher ToolWebhooks TesterEnhanced Tracking ScriptMulti Domain ToolClick ID RecoveryConsent Tool
Configurations
Billy Grace Server-side TrackingLeadPages Server-side TrackingPiwik PRO Server-side TrackingCDN Server-side TrackingShopify Server-side TrackingActiveCampaign Server-side TrackingKlaviyo Server-side Tracking
Server-side Tracking for e-commerce
Shopify Data LayerShopware Data LayerMagento Data LayerWooCommerce Data LayerPrestashop Data LayerLightspeed Data Layer
Consent Management server-side
Activate Consent ModeConfigure TAGGRS with Axeptio

Magento Data Layer Extension

This guide explains how to install and configure the TAGGRS Magento Data Layer Extension for server-side tracking. It aims to enhance your Magento ecommerce data accuracy and control, minimizing data loss due to browser restrictions and ad blockers, while supporting privacy compliance.

Extension features

  • Integrates easily with Google Tag Manager
  • Based on the GA4 Data Layer Protocol
  • Compatible with Server-side Tracking (sGTM/TAGGRS)
  • Supports enhanced conversions
  • Distinguishes between first-time and returning customers
Download the extension

Configuration

Download the extension

Download the Magento Data Layer Extension in the Adobe's Commerce Marketplace.

Install on your website

  1. Enable your Magento store's maintenance mode

    bin/magento maintenance:enable

  2. Add the extension using Composer.
  3. Activate the module and update the database.

    bin/magento setup:upgrage

  4. Compile the dependency injection.

    bin/magento setup:di:compile

  5. Distribute static content.

    bin/magento setup:di:compile

  6. Turn off the store's maintenance mode.

    bin/magento maintenance:disable

Open the extension

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

Update the settings in Google Tag Manager

Next, select the TAGGRS Data Layer extension. Then you can fill in the following points. 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: Do you 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. This makes GA4 100% accurate in terms of ecommerce. This then only involves 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 allows you to easily see what you are passing to GTM.

Then click Save Config to save the changes.

Configure events

  1. Choose which events you would like to measure by selecting Yes and No.
    Logo of TAGGRS Server-side Tracking: a light blue circle with two blue angle brackets
    Here is a preview of the events you can measure:

    view_item_list
    view_item
    add_to_cart
    remove_from_cart
    view_cart
    select_promotion
    start_checkout
    purchase
  2. Click Save Config to save the changes.

Testing

  1. Go to the Google Tag Manager preview mode.
  2. Create an event, then click on data layer and here you will see your Magento data coming in nicely structured.
  3. Make sure all tags and triggers in Google Tag Manager are set up correctly to forward data to your analytics platforms.

Technical benefits

Magento 2.4+ Optimized
The TAGGRS Extension is compatible with PWA Studio and Hyvä themesenson
Data enrichment
Automatically appends user_id, store_view_code
Performance
<0.2ms event processing overhead

Useful resources

Learn more about the GA4 Data Layer Protocol
Find expert support
Previous
Shopware Data Layer
Next
WooCommerce Data Layer
Copyright © 2025 TAGGRS. All right reserved.
TABLE OF CONTENTS
Extension featuresConfigurationTechnical benefitsUseful resources