INCLUDED IN AGENTICSUITE

Analytics & Tag Manager for Magento

Connect your headless commerce journey with a deliberate measurement setup. Prepare selected GA4 ecommerce events in Magento and integrate consent and conversion handling.

Part of the complete platform.

This capability is included in AgenticSuite. Get the Astro storefront and all headless and Luma-compatible modules listed on this website.

Explore AgenticSuite Discuss your Magento project
Your platform. Your control.Full source code and your business data.
Built to work togetherAstro storefront and comprehensive Magento modules.
Check your requirements with us
  • Selected GA4 event payloads over GraphQL
  • GTM and server-side tagging tools
  • Google Ads and purchase de-duplication support

Tracking accuracy depends on the complete storefront, consent and tagging setup. External analytics and hosting services may have separate charges.

User Guide
MODULE DEMO · 0:39

Analytics & Tag Manager for Magento 2 — GA4 Data Layer & Server-Side Tagging

BUILT AROUND THE WAY YOU WORK

Measurement belongs in the storefront plan.

Included in AgenticSuite. This is part of a headless Magento implementation; the storefront and deployment must be configured to use it.

01

Prepare commerce event data in Magento

Build selected ecommerce payloads server-side and expose them through GraphQL for the frontend integration.

Analytics dashboard
Analytics dashboard
02

Connect consent, tags and conversions

Configure the supported GTM and server-side tools, Google Ads conversions and purchase de-duplication. Verify real storefront events and consent behaviour in your analytics property.

Analytics configuration
Analytics configuration
A CLEAR WORKFLOW

From setup to everyday use.

  1. 01

    Explore AgenticSuite and the live storefronts to see how the parts fit together.

  2. 02

    Discuss your current Magento setup, integrations and requirements with our team.

  3. 03

    Configure and test this capability as part of the agreed storefront project.

BEFORE YOU DECIDE

A few straight answers.

Need to check your own store?
Talk to our team

Do I need to buy this capability separately?+

AgenticSuite includes the Astro storefront and all headless and Luma-compatible modules listed on this website. Discuss the complete platform and your implementation scope with us.

Can you migrate my current store while it remains live?+

We can prepare and test a new storefront while the existing store keeps trading. Product, CMS and compatible module-data migration, final data synchronisation and cutover are planned for your specific project.

Does the licence include hosting and a bespoke build?+

Hosting, migration, training and custom development are agreed separately. We can discuss Cloudways for Magento and Cloudflare for the frontend; you can pay the providers directly or request a managed quotation.

Latest release: Version 1.0.4

Analytics & Tag Manager is a Magento 2 module that delivers Google Analytics 4 ecommerce event payloads, Google Tag Manager and Google Ads conversion tracking — over GraphQL for headless storefronts, with server-side events and Consent Mode.

Accurate GA4 ecommerce tracking — even when your storefront is headless

GA4 ecommerce reporting is only as good as the data layer behind it, and on a headless Magento the storefront can't lean on Luma's templates to emit one. Analytics & Tag Manager fixes that at the source: Magento builds GA4 event payloads for selected product, cart and order actions, and exposes them over GraphQL. Your Astro or PWA front end injects the tags; Magento supplies the structured events. Add server-side tagging, Google Ads conversions, consent mode and purchase de-duplication and you get analytics you can actually trust.

Composer install · Per-domain licence · Updates via Composer · Ticket support · Headless GraphQL · No third-party dependencies · Check release-specific Magento and PHP compatibility

GA4 event payloadsBuilders for selected product, cart, checkout and order events; verify each storefront trigger.
Headless-readyServed over GraphQL, so an Astro or PWA storefront tracks as reliably as a Luma one.
Server-side taggingA GTM server container and Measurement Protocol path keep data flowing past ad blockers and cookie loss.
Ads, consent & dedupGoogle Ads conversions, consent-mode defaults and purchase de-duplication, so revenue isn't double-counted.

Events supported by the package

The package includes builders for these event payloads. Wire and verify the storefront triggers you use:

view_item_list · view_item · add_to_cart · remove_from_cart · view_cart · begin_checkout · add_shipping_info · add_payment_info · purchase · search · login · sign_up

What you'll use it for

  • Make headless analytics actually work — get a reliable GA4 data layer on an Astro or PWA storefront, where the front end can't emit Magento's own.
  • Track Google Ads conversions — fire conversions with order value so your campaigns optimise on real revenue.
  • Survive ad blockers — route events server-side so cookie loss and blockers don't quietly erode your numbers.
  • Stop inflated revenue — purchase de-duplication keeps a refreshed confirmation page from counting an order twice.
  • Stay compliant — ship a consent-mode default so tags respect a shopper's choice.

How it works

One source of truth, two delivery paths1MAGENTOBuilds the GA4 data layerper page type — accurateproduct, cart & order data2GraphQL → STOREFRONTAstro / PWA injects GA4 & GTM3SERVER-SIDEGTM container · Measurement ProtocolGA4 — reports & audiencesconsent-aware · de-duplicated purchasesGoogle Ads — conversionsorder value for smarter biddingAn admin dashboard reports the key metrics; the GTM server container can be exported for your own server-side GTM.

Configurable & transparent

Point it at your GA4 and Google Ads IDs, choose whether products are keyed by SKU or ID, pick the brand attribute, and set a consent-mode default. The GTM server container configuration can be exported for your own server-side GTM, and an admin dashboard surfaces the headline metrics and reports so you can see what's being tracked without leaving Magento. Purchase de-duplication prevents a re-loaded order-confirmation page from sending a second purchase event.

Specifications

MagentoCheck release-specific compatibility
PHPCheck release-specific compatibility
Data layerSelected GA4 ecommerce event payloads built in Magento
DeliveryGraphQL (headless) for client tagging; server-side via Measurement Protocol
Tag managersGA4, Google Tag Manager, exportable GTM server container
AdvertisingGoogle Ads conversion tracking with order value
PrivacyConsent-mode default; purchase de-duplication
ConfigProduct identifier (SKU/ID), brand attribute, IDs; admin dashboard & reports
DependenciesNone — no third-party libraries
Delivery & licenceComposer install, per-domain licence key, updates via Composer

Works with

Part of the AgenticEcom suite for SEO & Content:

Included in the AgenticEcom Suite.

Frequently asked questions

How do I add GA4 ecommerce tracking to a headless Magento 2 store?

Magento builds GA4 event payloads in Magento and exposes it over GraphQL, so your Astro or PWA storefront reads the events and fires GA4/GTM — without trying to reconstruct Magento's data layer itself.

Which GA4 events does it produce?

The package contains event builders for: view_item_list, view_item, add_to_cart, remove_from_cart, view_cart, begin_checkout, add_shipping_info, add_payment_info and purchase, plus search, login and sign_up.

Does it support server-side tagging?

Yes. It can route events server-side via the Measurement Protocol and export a Google Tag Manager server container, so tracking holds up against ad blockers and cookie restrictions.

Can it track Google Ads conversions?

Yes. It fires Google Ads conversions with order value, so campaigns can optimise on real revenue.

Will it double-count purchases or ignore consent?

Purchases are de-duplicated so a re-loaded confirmation page can't count an order twice, and a consent-mode default is included so tags respect the shopper's choice.

Which Magento and PHP versions are supported?

Check release-specific Magento and PHP compatibility and required dependencies before installation.

SEE THE WHOLE PLATFORM

The capability is one part. AgenticSuite brings it together.

Keep Magento as your commerce engine. Shape the customer experience in Astro Admin, with an integrated module collection behind it.

INSIDE AGENTICSUITE 00:57
LIVE PROOF

A complete B2B catalogue.

Explore SyncComms: approximately 1,000 products, guided finders, category filters and a quotation journey.

Explore SyncComms
90+

Mobile scores achieved.

See the dated mobile lab reports linked from our homepage, or test the live sites yourself. Results depend on the page and test conditions.

View the performance evidence
BUILT AROUND YOUR STORE

Make the move while you trade.

We can scope migrations, frontend rebuilds and new stores. Hosting, migration, training and custom development are agreed separately.

Discuss your project
YOUR NEXT STOREFRONT STARTS HERE

See what AgenticSuite could do for your business.

Explore the working sites, watch the overview, then talk to us about your catalogue and the store you want to build.