Lux Marketing

Analytics & Tracking

Mautic Contact Datalayer Plugin

A Mautic plugin that pushes each known contact’s points, stage and ID into the dataLayer, where Google Tag Manager and GA4 can use them.

Mautic knows how engaged each contact is and where they are in your funnel. Your website tags usually don’t. The Mautic Contact Datalayer Plugin closes that gap for ecommerce and SaaS teams that run Mautic.

The plugin puts Mautic contact data where Google Tag Manager can read it

The plugin (DatalayerPushBundle) pushes a known contact’s Mautic points, stage and contact ID into the dataLayer on your site. From there, Google Tag Manager can read them as variables and pass them to GA4 or your ad tags.

  • Engagement and funnel stage on every visit: see where each returning contact stands, using the scoring you already set up in Mautic.
  • Reporting in GA4: send points and stage to GA4 as user properties or event parameters, and compare behavior by stage.
  • Audiences for ads and personalization: build segments from engagement level instead of page views alone.
Google Tag Manager preview showing Mautic contact points, stage and ID as data layer variables

Ecommerce stores can segment and retarget by engagement

  1. Segmentation: group customers by their contact points to tailor messages to how engaged they are.
  2. Retargeting by stage: show ads that match the contact’s stage, so a repeat buyer and a first-time browser don’t see the same offer.
  3. Loyalty programs: use points to decide who gets loyalty rewards or early access.

SaaS teams can follow onboarding and lifecycle stages

  1. Onboarding: compare engagement by stage to see where new users drop off.
  2. Product feedback: invite your most engaged users to give feedback on features.
  3. Lifecycle email: trigger lifecycle-based email campaigns that respond to each user’s stage, from welcome messages to win-back emails.

Send scores and stages to GA4, not personal details

GA4 can store points and stage as user properties, so you can analyze behavior by funnel stage. Keep names, email addresses and other personal information out of the dataLayer: Google Analytics doesn’t allow personal information to be sent to it. Fire the tags only for visitors who have accepted analytics cookies.

The plugin is included with a Mautic build

The DatalayerPushBundle isn’t a public download. It’s installed and configured as part of a Mautic setup for clients. If you run Mautic, or are planning to, see how email automation builds work.

Julio Lopez
About the author

Julio Lopez · Founder & Head of Growth, Lux Marketing

Julio has spent 12+ years in paid media and analytics, and founded Lux in 2018. He has worked with 30+ clients across six industries, from DTC brands and premium wineries to a history museum. As Head of Growth at Glossi, he built the tracking and AI lead scoring behind twice the sign-ups the sales team produced, and he still writes the tracking code himself.

Julio on LinkedIn

Your tracking can show which ads produce customers, starting with a 30-day Sprint.

The 30-Day Measurement Sprint audits the path from the ad to the sale, fixes the tracking, and ends with a baseline report and a 90-day plan. It’s $1,250, paid only if you decide to start; applying and the first call are free, and Julio reviews every application.