Skip to product information
Magento 2 Google Analytics 4 (GA4) Extension with GTM & Server-Side Tracking
Trusted by 85,000+ merchants using WeltPixel products

Magento 2 Google Analytics 4 (GA4) Extension with GTM & Server-Side Tracking

79 reviews

€249,00
Plan
Magento Edition
Version 1.16.1
Updated March 6, 2026
Support 12 Months Included Support, with options to extend
Platform All Magento Editions
Compatibility Hyvä Ready
Documentation User Guide
weltpixel.com

The most complete Google Analytics 4 integration for Magento 2.

Google Analytics 4 is the new standard for measuring customer journeys across websites and apps — but out of the box, it doesn’t connect smoothly with Magento 2. That’s where our Magento 2 Google Analytics 4 (GA4) Extension comes in. With built-in Google Tag Manager (GTM) integration and advanced server-side tracking, you can capture every key event — from product views and add-to-carts to checkouts and transactions — with accuracy that Universal Analytics could never deliver. This ensures your marketing and analytics data remain reliable, privacy-compliant, and future-proof.

Server-Side Tracking
Bypass ad blockers with Measurement Protocol
Composer Installation
One command, zero file uploads
GTM + GA4 + Ads
Full stack in a single extension

Complete Feature List

Every feature included in the Magento 2 Google Analytics 4 (GA4) Extension. Standard features are available in both plans; PRO features require the PRO plan.

Core Tracking & E-commerce
  • Track product impressions by position in the Category Page
  • Track product clicks by position in the Category Page
  • Track product impressions by position in the Search Result Page
  • Track product clicks by position in the Search Result Page
  • Track product impressions by position in the Related, Up-sell and Cross-sell section
  • Track product clicks by position in the Related, Up-sell and Cross-sell section
  • Track the number of times a product was added to the shopping cart
  • Track the number of times a product was removed from the shopping cart
  • Track the number of times a product was included into the checkout process
  • Track each Checkout Step (billing address, shipping address, shipping options, payment options)
  • Track purchases with or without shipping and tax fees
  • Exclude Orders with 0 Value from being tracked
  • Track Transactions Success Pages with Custom Success Page URLs
  • Track coupon usage
  • Track product Brand
  • Track internal Promotion Impressions
  • Track internal Promotion Clicks
  • Track Sign-Ups
  • Track Logins
  • Track Site Searches
  • Internal Promotion Widget
Configuration & Compatibility
  • Child Vs Parent (Send Parent Id or Child id cart, checkout and thank you page)
  • Multi Currency Ready
  • GDPR-compliant with native magento accept cookie functionality
  • Multi Store Ready
  • Varnish Cache Ready
  • Full Page Cache Ready
  • 8KB payload support
Advanced Analytics
  • Order Success Page Total Calculation (Subtotal / Grand total)
  • Track Magento User ID
  • Track user type (customer group)
  • Google Ads Remarketing Tracking
  • Google Ads Conversion Tracking
  • Persistent Data Management
  • Track product review count
  • Track product review score
  • Track stock status
  • Track Sale products
  • Track transactions by product variants (configurable product)
  • Variant options - choose between product SKU or Configuration combination
  • Track transactions by product custom options
  • Track custom dimension Page Type
  • Track custom dimension Page Name
  • Product level Custom Dimension / Metric sending (Send up to 5 product attributes to GTM)
  • Compatibility with Google Analytics 360 (GA360)
  • dataLayer Preview Window for easy debugging with possibility of adding custom IP ranges
  • Send all Simple Product configurations via the View Item event on Configurable Product Pages
  • Custom trigger for Google Ads Conversion Tracking Tag.
  • Ability to add custom attributes to script tags for enhanced compatibility with optimization modules
PRO — Data Accuracy & Order Tracking
  • Complete sales data, including refunds and repeat purchases
  • Increased order accuracy between Magento and Google Analytics
  • Avoids missing orders
  • Avoids duplicate orders
  • GS2 Cookie support
  • Ability to choose between sending the Base or Display currency to Google Analytics
  • Exclude orders from being sent to Google Analytics by Order Status
  • Purchase and Add Payment Info event compatibility with the Magento 2 Multi Shipping Checkout flow
  • Full JSON container generation for Google Tag Manager Server-Side Containers, complete with all eCommerce tracking tags
PRO — Server-Side Measurement Protocol
  • Measurement Protocol Tracking for Purchase
  • Measurement Protocol Tracking for Refunds
  • Measurement Protocol Tracking for Sign Up and Login
  • Measurement Protocol Tracking for Item View
  • Measurement Protocol Tracking for Search
  • Measurement Protocol Tracking for View, Add and Remove from Cart
  • Measurement Protocol Tracking for Begin Checkout, Add Payment and Shipping
  • User Properties for Measurement Protocol - Used to create Custom Dimensions
  • Track only specific customer groups via Measurement Protocol
  • Easy Measurement Protocol event debugging via Google Analytics Debug View
  • Send data to multiple Google Analytics 4 properties via Measurement Protocol
  • Dedicated Magento Admin Order Grid column for Measurement Protocol order validation
  • Redis Cache Ready for Measurement Protocol
PRO — Theme Compatibility
  • Hyvä Theme Ready
  • Hyvä Theme CSP Theme Ready
  • Hyvä Checkout Ready
PRO — Social Media Pixel Integration
  • Meta Pixel (formerly Facebook Pixel) Integration
  • Reddit Pixel Integration
  • TikTok Pixel Integration
  • Microsoft Ads (Bing UET) Integration
  • X (Twitter) Pixel Integration
  • Klaviyo Pixel Integration
  • Pinterest Pixel Integration
  • Snapchat Pixel Integration
  • Full integration with Meta Pixel Conversions API (CAPI) via addon
  • Full integration with Reddit Pixel Conversions API (CAPI) via addon
  • Full integration with TikTok Pixel Events API via addon
  • Full integration with Microsoft Ads (Bing UET) API via addon
  • Full integration with X (Twitter) Ads API via addon
  • Full integration with Klaviyo API via addon
  • Grand Total calculation settings for taxes (including/excluding) for Social Platform integrations (including API Addons)
PRO — Enhanced Conversions
  • Enhanced Conversions for Google Ads
  • Ability to pre-hash Enhanced Conversion data for Google Ads
  • Enhanced Conversions for Google Analytics 4
  • Enhanced Conversions for Leads (Google Ads)
  • New Customer Data for Google Ads
  • Cart Data for Google Ads

GA4 Standard vs PRO — Feature Comparison

Both plans include complete GA4 e-commerce tracking. The PRO plan adds server-side Measurement Protocol, Hyvä theme support, social media pixel integrations, and enhanced conversions for Google Ads.

Core Tracking Features
Feature Standard PRO
Track product impressions by position in the Category Page
Track product clicks by position in the Category Page
Track product impressions by position in the Search Result Page
Track product clicks by position in the Search Result Page
Track product impressions by position in the Related, Up-sell and Cross-sell section
Track product clicks by position in the Related, Up-sell and Cross-sell section
Shopping Cart & Checkout Tracking
Feature Standard PRO
Track the number of times a product was added to the shopping cart
Track the number of times a product was removed from the shopping cart
Track the number of times a product was included into the checkout process
Track each Checkout Step (billing address, shipping address, shipping options, payment options)
Track purchases with or without shipping and tax fees
Exclude Orders with 0 Value from being tracked
Track Transactions Success Pages with Custom Success Page URLs
Promotions, Sign-Up & Search
Feature Standard PRO
Track coupon usage
Track product Brand
Track internal Promotion Impressions
Track internal Promotion Clicks
Track Sign-Ups
Track Logins
Track Site Searches
Internal Promotion Widget
Configuration & Compatibility
Feature Standard PRO
Child Vs Parent (Send Parent Id or Child id cart, checkout and thank you page)
Multi Currency Ready
GDPR-compliant with native magento accept cookie functionality
Multi Store Ready
Varnish Cache Ready
Full Page Cache Ready
8KB payload support
Advanced Tracking & Analytics
Feature Standard PRO
Order Success Page Total Calculation (Subtotal / Grand total)
Track Magento User ID
Track user type (customer group)
Google Ads Remarketing Tracking
Google Ads Conversion Tracking
Persistent Data Management
Track product review count
Track product review score
Track stock status
Track Sale products
Track transactions by product variants (configurable product)
Variant options - choose between product SKU or Configuration combination
Track transactions by product custom options
Track custom dimension Page Type
Track custom dimension Page Name
Product level Custom Dimension / Metric sending (Send up to 5 product attributes to GTM)
Compatibility with Google Analytics 360 (GA360)
dataLayer Preview Window for easy debugging with possibility of adding custom IP ranges
Send all Simple Product configurations via the View Item event on Configurable Product Pages
Custom trigger for Google Ads Conversion Tracking Tag.
Ability to add custom attributes to script tags for enhanced compatibility with optimization modules
PRO Exclusive — Data Accuracy & Order Tracking
Feature Standard PRO
Complete sales data, including refunds and repeat purchases
Increased order accuracy between Magento and Google Analytics
Avoids missing orders
Avoids duplicate orders
GS2 Cookie support
Ability to choose between sending the Base or Display currency to Google Analytics
Exclude orders from being sent to Google Analytics by Order Status
PRO Exclusive — Server-Side Measurement Protocol
Feature Standard PRO
Measurement Protocol Tracking for Purchase
Measurement Protocol Tracking for Refunds
Measurement Protocol Tracking for Sign Up and Login
Measurement Protocol Tracking for Item View
Measurement Protocol Tracking for Search
Measurement Protocol Tracking for View, Add and Remove from Cart
Measurement Protocol Tracking for Begin Checkout, Add Payment and Shipping
User Properties for Measurement Protocol - Used to create Custom Dimensions
Track only specific customer groups via Measurement Protocol
Easy Measurement Protocol event debugging via Google Analytics Debug View
Send data to multiple Google Analytics 4 properties via Measurement Protocol
Dedicated Magento Admin Order Grid column for Measurement Protocol order validation
Redis Cache Ready for Measurement Protocol
PRO Exclusive — Hyvä Theme Compatibility
Feature Standard PRO
Hyvä Theme Ready
Hyvä Theme CSP Theme Ready
Hyvä Checkout Ready
PRO Exclusive — Social Media Pixel Integration
Feature Standard PRO
Meta Pixel (formerly Facebook Pixel) Integration
Reddit Pixel Integration
TikTok Pixel Integration
Microsoft Ads (Bing UET) Integration
X (Twitter) Pixel Integration
Klaviyo Pixel Integration
Pinterest Pixel Integration
Snapchat Pixel Integration
Full integration with Meta Pixel Conversions API (CAPI) via addon
Full integration with Reddit Pixel Conversions API (CAPI) via addon
Full integration with TikTok Pixel Events API via addon
Full integration with Microsoft Ads (Bing UET) API via addon
Full integration with X (Twitter) Ads API via addon
Full integration with Klaviyo API via addon
Grand Total calculation settings for taxes (including/excluding) for Social Platform integrations (including API Addons)
PRO Exclusive — Enhanced Conversions
Feature Standard PRO
Enhanced Conversions for Google Ads
Ability to pre-hash Enhanced Conversion data for Google Ads
Enhanced Conversions for Google Analytics 4
Enhanced Conversions for Leads (Google Ads)
New Customer Data for Google Ads
Cart Data for Google Ads
Purchase and Add Payment Info event compatibility with the Magento 2 Multi Shipping Checkout flow
Full JSON container generation for Google Tag Manager Server-Side Containers, complete with all eCommerce tracking tags

GA4 Events Tracked in Magento 2

Every standard GA4 e-commerce event is captured automatically. PRO adds server-side Measurement Protocol tracking for events marked below.

GA4 Event Description Tracking
view_item_list This event is triggered when a user views a list of items, such as your Category Page, or a Product Carousel. Client Server
view_item This event is triggered when users open up and view one of your Product Pages. Client Server
select_item This event is triggered when a user clicks on a product contained within a list, such as on your Category Page or a Product Carousel. Client Server
add_to_cart This event is triggered whenever a user adds a product to their cart, or when they add to the quantity of a product that's already within their cart. Client Server
remove_from_cart This event is triggered whenever a user removes a product from their cart, or when they subtract from the quantity of a product that's already within their cart. Client Server
add_to_wishlist This event is triggered whenever a user adds a product into their wishlist. Client Server
begin_checkout This event is triggered whenever a user proceeds to the Checkout Page. Client Server
add_shipping_info This event is triggered whenever a user adds their address information on the Checkout Page. Client Server
add_payment_info This event is triggered whenever a user adds their payment information. Note: When using the default Magento 2 Checkout, this event is triggered upon the user pressing the Place Order button, so it may not show up in the Preview Mode, if you're troubleshooting the event tracking. Client Server
purchase This event is triggered when a user has placed an order and is redirected to the Success Page. Client Server
sign_up This event is triggered when a user creates an account on your store. Client Server
login This event is triggered when a user logs in to their account, either via the Create Account/Login Page or via the Checkout Page. Client Server
search This event is triggered when a user initiates a search on your store. Client Server
view_promotion This event is triggered when a user views a block, banner or piece of content tagged as a Promotion. Client
select_promotion This event is triggered when a user clicks on a link contained within a block, banner or piece of content tagged as a Promotion. Client
refund This event is triggered when a Credit Memo is created for an order via the Magento Admin. Server

Compatibility with Google Analytics 360 (GA360)

Enterprise Ready
Google Analytics 360 Compatible

Google Analytics 360 is an enterprise-level rendition of Google Analytics, which provides the tools and support required for merchants to get actionable insights from the data that flows into their dashboards. Google Analytics 360 boasts a number of advanced tools, in addition to all the standard Analytics features.

Apart from this, merchants using Google Analytics 360 also benefit from a higher-level service agreement which covers data freshness, collection and reporting, a higher processing limit and access to dedicated support services. Our Google Analytics 4 and Google Analytics 4 PRO extensions are compatible with Google Analytics 360 and are ready to send the data you need to build and maintain a true enterprise-level eCommerce business.

  • Unsampled Reports
  • BigQuery Export
  • Data Driven Attribution

Google Analytics Measurement Protocol (PRO Version Only)

With Google Analytics 4 PRO, you can keep track of every customer's journey from beginning to end. Combine server-side and client-side monitoring to follow the complete consumer journey. Sales, marketing, customer, and product performance data as well as recurring orders and refunds are all available.

Works with GA4

Full compatibility with the latest Google Analytics 4 platform and all its features.

Increased Accuracy

Increased accuracy for sales data, including refunds and repeat purchases.

Multi-Store Ready

Compatible multi-store setups with separate tracking per store view.

How it works

1
Client-Side Tracking Script

All of your store pages will have the tracking script added by Client Side Tracking. The client ID from Google ensures that the user source and journey are tracked.

2
Combined Client + Server Tracking

We then combine client-side (browser) tracking with measurement protocol server-side tracking to link marketing channels, web surfing behavior, and purchase behavior.

3
Server-Side Events to GA4

All server-side Measurement protocol tracking events are then sent to GA4. This means that every time a user activates one of your website's functions, an event is sent to Google Analytics, ensuring complete accuracy.

Major advantages

Complete Checkout Capture

Event capture for the checkout process, including sales and refunds/returns, is completed.

No Lost Orders

When the user does not wait for the thank you page to load, we will still track their orders.

No Duplicate Tracking

When a user reloads, the site avoids double-tracking of the order status page.

Complete E-commerce Tracking for Magento 2

Capture every customer touchpoint across your entire Magento 2 store — from the first category page view to the final order confirmation. Our GA4 extension tracks the full e-commerce journey automatically.

Product Impressions & Clicks

Track which products customers see and click, by exact position, on Category, Search, Related, and Cross-sell pages.

Cart & Wishlist Events

Capture add-to-cart, remove-from-cart, product compare, and wishlist interactions in real time.

Checkout Step Tracking

Monitor each checkout step — billing, shipping method, shipping options, and payment selection — to find drop-off points.

Purchase & Coupon Tracking

Track completed purchases with full transaction data including shipping, tax, coupon codes, and product brand.

Google Tag Manager DataLayer Integration

Deploy your entire tracking stack through Google Tag Manager with our complete dataLayer implementation. Follow Google's recommended Enhanced E-commerce schema — no custom JavaScript required.

Complete DataLayer

Pre-built dataLayer following Google's recommended e-commerce event schema. Every event, every parameter, ready to go.

Google Ads Tracking

Built-in Remarketing and Conversion tracking. Send purchase data directly to Google Ads for ROAS optimization.

Consent Mode v2

Full Google Consent Mode v2 integration with native Magento cookie acceptance. GDPR-compliant out of the box.

Promotion Tracking

Track internal banner impressions and clicks with the built-in Promotion Widget. Measure which promotions drive conversions.

Server-Side Tracking for Magento 2

Stop losing conversion data to ad blockers and browser privacy restrictions. Server-Side Tracking sends events directly from your Magento 2 server to GA4, bypassing client-side limitations for more accurate analytics.

Server-Side Events

Events fire from your server, not the browser. Ad blockers and iOS tracking prevention can't block what they can't see.

Faster Page Loads

Reduce client-side JavaScript by moving tracking server-side. Your customers get faster pages, you get better data.

Full 8KB Payload Support

Large product catalogs with extensive custom attributes? No problem. Server-side tracking handles payloads up to 8KB — well beyond the browser limit.

Advanced GA4 Analytics & Custom Dimensions

Go beyond standard e-commerce tracking. Segment your analytics by customer type, track custom product attributes, and get granular insights that help you understand not just what customers buy — but why.

User ID & Customer Groups

Track logged-in Magento User IDs and customer group types for user-level analysis and audience segmentation in GA4.

5 Custom Product Dimensions

Send up to 5 product attributes (color, size, material, etc.) as custom dimensions to GTM for granular product analytics.

Review & Stock Tracking

Track product review count, review score, stock status, and sale indicators as event parameters for richer reporting.

Configurable Variant Tracking

Choose how to track configurable products — by child SKU or parent/child configuration combination. Full custom option support.

Built for Every Magento 2 Store

Whether you run a single-store Open Source installation or a multi-store, multi-currency Commerce Cloud enterprise — our GA4 extension works out of the box with zero conflicts and full cache compatibility.

Multi-Store & Multi-Currency

Run separate GA4 properties per store view, track in any currency. Perfect for international Magento 2 installations.

Full Cache Compatibility

Works with Varnish Cache, Full Page Cache, and all major Magento 2 caching layers without any configuration conflicts.

EU Privacy Compliance

IP anonymization, GDPR cookie consent integration, and Consent Mode v2 support keep you compliant across EU markets.

1 Year Free Support

Every license includes 12 months of free technical support. Our team knows Magento 2 inside and out — we built the extension.

What Our Customers Say

We have been using this product for over a year now and it works really well for your store. The tracking data is reliable and accurate. Highly recommend GA4 plugin.

— Rodrigo

Weltpixel GA4 excels in providing a seamless integration of Google Analytics with Magento, significantly simplifying the process for businesses. The extension’s extensive and well-structured documentation makes setup straightforward.

— Aura J

We are very satisfied with the GA4 extension for our shop. It has significantly improved our analytics capabilities and provided valuable insights into our customers’ behavior. Highly recommended!

— microdream.co.uk

FAQ

Frequently Asked Questions

The extension provides full Google Analytics 4 ecommerce tracking including page views, product impressions, add to cart, checkout steps, purchases, and refunds. It also tracks enhanced ecommerce events like product detail views, promotion clicks, and internal search. All events are sent through the Google Tag Manager dataLayer for maximum flexibility.

Server-side tracking sends ecommerce data directly from your Magento server to Google's Measurement Protocol API, bypassing the browser entirely. This means ad blockers and cookie restrictions don't affect your data accuracy. The extension supports both client-side (browser) and server-side tracking simultaneously, giving you the most complete picture of customer behavior.

Yes. The extension is built around Google Tag Manager (GTM) and pushes all ecommerce events to the GTM dataLayer. This gives you full control over your tracking setup — you can add custom tags, triggers, and variables in GTM without modifying any code. Both GTM web containers and server-side containers are supported.

The free version includes basic GA4 pageview and ecommerce event tracking via GTM. The PRO version adds server-side tracking, Google Consent Mode V2 support, enhanced conversion tracking, cross-domain tracking, user-ID tracking, and customizable dataLayer variables. PRO also includes priority support and access to all GA4 addon extensions (Meta Pixel, TikTok, Pinterest, and more).

Yes. The PRO version includes full Google Consent Mode V2 integration, which is required for advertising in the EEA since March 2024. It works with major cookie consent platforms and ensures your tags fire correctly based on user consent status, maintaining compliance while preserving as much data as possible through Google's behavioral modeling.

The extension supports Magento 2.3.x through 2.4.x (including the latest 2.4.7), covering both Magento Open Source (Community) and Adobe Commerce (Enterprise) editions. It is also compatible with Hyvä themes.

Yes. The GA4 PRO extension supports addon modules for Meta Pixel Conversions API, TikTok Events API, Pinterest Conversions API, Microsoft Ads (Bing UET), Snapchat, Reddit, X (Twitter), and Klaviyo. Each addon sends events server-side through the respective platform's API, ensuring accurate attribution even with ad blockers enabled.

Installation via Composer takes about 5 minutes. Basic configuration (connecting your GA4 property and GTM container) takes another 10–15 minutes using our step-by-step user guide. Server-side tracking setup requires an additional 15–30 minutes for GTM server container configuration. Most stores are fully tracking within an hour.

Specifications

Technical Details

Latest Version
1.16.1
Last Updated
March 6, 2026
Release Date
Mar 6, 2026
Support
12 Months Included Support, with options to extend
Refund Policy
30 days, for any reason
Platform
All Magento Editions
Hyvä Theme
Compatible — All versions up to 1.4.5

Get Started

Ready to elevate your store?

12 Months Included Support, with options to extend