Easy return - no questions asked
Install, set up and take profit
Priority Help & Satisfaction Over Sales
Google Tag Manager
Deploy Marketing Tags and Tracking Scripts Without Editing Store Code
Add Google Tag Manager (GTM) to your PrestaShop store and manage all your marketing tags, analytics pixels, and conversion tracking from a single web interface — without touching your store's code. This module injects the GTM container and pushes a rich dataLayer on purchase events, giving your tags the ecommerce data they need to function correctly.
Google Tag Manager is the industry standard for tag management. Instead of installing separate JavaScript snippets for Google Analytics, Meta Pixel, Google Ads, and dozens of other marketing tools, GTM lets you deploy and update them all from one central dashboard with version control and built-in debugging.
- GTM container injection — both <head> and <body> snippets installed automatically following Google's specifications
- Purchase dataLayer — pushes ecommerce purchase event with transaction ID, revenue, tax, shipping, and product items
- Centralized tag management — deploy GA4, Meta Pixel, Google Ads, and any other tags from GTM's web interface
- Version control — GTM tracks every change with the ability to roll back instantly
- No code changes needed — add, modify, or remove marketing tags without deploying module updates
- PrestaShop 1.7 – 9.x compatible — works across all modern PrestaShop versions
What Is Google Tag Manager and Why Use It?
Google Tag Manager is a free tag management system that lets you deploy and manage marketing/analytics JavaScript tags on your website through a web-based interface. Instead of installing individual tracking scripts (Google Analytics, Meta Pixel, Google Ads conversion tracking, Hotjar, LinkedIn, TikTok, etc.) as separate modules or code modifications, you install GTM once and then manage all other tags from within GTM's dashboard.
For PrestaShop store owners, GTM provides several critical advantages:
- Speed — adding a new marketing tag takes minutes in GTM's interface instead of days waiting for a module update or developer availability.
- Safety — GTM has built-in preview mode and version control. Test any tag change before it goes live, and roll back instantly if something breaks.
- Flexibility — fire tags based on specific conditions (URL path, click events, scroll depth, custom dataLayer variables) without any coding.
- Reduced code bloat — one container script replaces multiple individual tracking scripts, and GTM handles asynchronous loading of everything.
What This Module Provides
GTM Container Installation
The module injects both required GTM snippets in the correct locations:
- Head snippet — JavaScript code in the
<head>section for primary tag loading - Body snippet —
<noscript>iframe immediately after the opening<body>tag for environments with JavaScript disabled
This follows Google's exact implementation specifications, ensuring your GTM container loads correctly and passes all validation checks.
Ecommerce DataLayer
The real value of this module is the dataLayer push on purchase. When a customer completes an order, the module pushes a structured ecommerce event to the dataLayer that includes:
- Event name —
purchase(GA4 format) - transaction_id — PrestaShop order reference
- value — total order amount
- tax — tax amount
- shipping — shipping cost
- currency — order currency code
- items[] — array of purchased products with
item_id,item_name,price,quantity, anditem_category
This dataLayer structure is the universal data source that all your GTM tags can read from. Set up a GA4 tag, a Meta Pixel tag, a Google Ads conversion tag, and a TikTok Pixel tag — they all read the same dataLayer data. You define the data once (in this module), and consume it many times (in GTM).
The Power of Centralized Tag Management
For Marketing Teams
Need to add a new advertising platform's pixel? Log into GTM, create the tag using a built-in template (GTM has templates for 100+ marketing platforms), set it to fire on all pages, and publish. No developer needed, no module installation, no deployment process. The tag is live within minutes.
For Developers and Agencies
GTM provides a professional workflow for managing client tracking:
- Workspaces — multiple people can work on different tag changes simultaneously
- Preview mode — test any change in a debug overlay before publishing to production
- Version history — every publish creates a version snapshot with notes, making audit trails and rollbacks trivial
- User permissions — grant different access levels (view, edit, publish) to different team members
- Custom templates — create reusable tag templates for platforms that don't have built-in GTM support
For Store Owners
GTM reduces your dependency on module installations for marketing tags. Instead of installing 5-10 separate pixel/analytics modules (each adding their own JavaScript to your pages), you install one GTM module and manage everything centrally. This means:
- Fewer module compatibility issues during PrestaShop upgrades
- Better page performance (GTM optimizes script loading)
- Easier tag auditing (everything is visible in one GTM dashboard)
- Faster response to marketing changes
Technical Implementation
- Async loading — GTM container loads asynchronously, never blocking page rendering.
- DataLayer initialization — the
dataLayerarray is initialized before the GTM container loads, ensuring no data is lost during page load. - No conflicts — the module only provides the container and dataLayer. It does not inject any marketing tags directly — that's GTM's job.
- Theme independent — works with any PrestaShop theme that supports standard hooks.
Setup
- Create a GTM account and container at tagmanager.google.com.
- Copy your Container ID (format:
GTM-XXXXXXX). - Install this module in PrestaShop, paste the Container ID, and save.
- Use GTM's Preview mode to verify the container loads and the purchase dataLayer fires correctly.
- Start adding tags in GTM for your marketing platforms.
Why is this module unique?
- Provides both GTM container injection AND a rich ecommerce dataLayer — not just the container snippet
- Purchase dataLayer follows GA4 ecommerce format, compatible with all modern GTM tag templates
- Replace multiple pixel modules with one GTM module — manage all tags from Google's free web interface
- Built-in version control and preview mode from GTM means safer, faster marketing changes
- Single Container ID configuration — install once, manage everything in GTM
- Compatible with PrestaShop 1.7 through 9.x
Use Cases
- Multi-platform tracking — deploy GA4, Meta Pixel, Google Ads, TikTok, Pinterest, and more — all from GTM with shared dataLayer data.
- Rapid tag deployment — marketing team wants to test a new ad platform? Add the tag in GTM in minutes, no developer needed.
- Tag auditing — see every tag, trigger, and variable in one dashboard. Know exactly what scripts run on your store.
- A/B testing — use GTM to deploy testing scripts (Google Optimize, VWO, etc.) without code changes.
- Custom conversion tracking — fire tags on specific button clicks, form submissions, or scroll milestones using GTM's built-in triggers.
- Agency management — give your marketing agency GTM access to manage tags without giving them access to your PrestaShop back office.
-
Referencemprgoogletagmanager
-
In stock999 Items
-
PrestaShop CompatibilityPS 1.6 – 9.x
-
Pricing ModelOne-time Purchase
-
Module TypeFront-office
-
GDPR RelevantYes
-
Business GoalMarketing & Retargeting
-
External Account NeededYes
-
Module ComplexityLightweight Widget
-
Customer Journey StageAttract Visitors
-
Works With PlatformGoogle Services
Google Tag Manager
GTM container integration with dataLayer purchase events for PrestaShop.
Features
- Google Tag Manager container integration
- DataLayer push with full ecommerce purchase data (product IDs, names, prices, quantities)
- Noscript iframe fallback for users with JavaScript disabled (PS 1.7.1+)
- Enable/disable toggle without uninstalling
Compatibility
- PrestaShop 1.6 / 1.7 / 8.x / 9.x
Installation
- Upload the module ZIP via Back Office > Modules
- Enter your GTM Container ID (format: GTM-XXXXXX)
- Enable the module
Development
yarn install
yarn release # Build release ZIP
License
Proprietary - mypresta.rocks
v1.3.0 — 2026-01-18
- ▸PrestaShop 9 Hummingbird theme support for data layer injection points
- ▸Server-side GTM container validation and tag health monitoring
- ▸Performance: lazy-loaded GTM container with intersection observer triggers
- ▸Debug mode with GTM Preview and Tag Assistant integration
- ▸Added support for GTM server-side tagging endpoints
v1.2.0 — 2025-06-08
- ▸Full PrestaShop 8.x compatibility for Symfony back office
- ▸Google Consent Mode v2 with default consent state configuration
- ▸Customer group exclusion via data layer variables
- ▸Deferred container loading option with configurable trigger events
- ▸Custom data layer variable mapping for PrestaShop-specific fields
v1.1.0 — 2024-11-15
- ▸Enhanced ecommerce data layer: product impressions, detail views, checkout steps
- ▸Dynamic remarketing data layer with Google Ads compatible parameters
- ▸Custom trigger support for PrestaShop AJAX cart operations
- ▸Configurable data layer variable names for conflict avoidance
- ▸Added multiple container ID support for agency setups
v1.0.0 — 2024-05-28
- ▸Initial release with Google Tag Manager container integration
- ▸Automatic data layer initialization with page type detection
- ▸Add-to-cart data layer push with product details
- ▸Purchase data layer event with full transaction data
- ▸Back office configuration for GTM Container ID (GTM-XXXXXX)
Easy return - no questions asked
Install, set up and take profit
Priority Help & Satisfaction Over Sales
No reviews yet. Be the first to leave a review!
Write a Review