Automatic e-commerce event tracking
The module supports the complete set of events required by Google Dynamic Remarketing in the retail model. Each event sends a product identifier (items[].id) consistent with the Google Merchant Center feed and the parameter google_business_vertical: 'retail', allowing Google to precisely match ads to products from your catalog.
| Google event | When it fires | Event data |
|---|---|---|
| view_item | Product page + variant change (AJAX) | Product ID, price, business vertical |
| view_item_list | Category, new products, bestsellers, promotions, manufacturer, supplier | List of product IDs, total value |
| view_search_results | Search results | List of product IDs, total value |
| add_to_cart | Adding a product to the cart (AJAX, without page reload) | Product ID with the selected variant, price |
| purchase | Order confirmation | List of product IDs, order value, currency |
Configurable product identifier
A key Google requirement is that the product identifier in the remarketing tag matches the identifier in the Google Merchant Center feed. The module lets you choose the identifier format from 5 options:
- Product ID — default
id_productfrom the PrestaShop database - Product ID - Attribute ID — format
id_product-id_product_attribute(hyphen) - Product ID _ Attribute ID — format
id_product_id_product_attribute(underscore) - Reference — product SKU / catalog number
- EAN-13 — European barcode
For products with combinations (variants), the module automatically retrieves identifiers specific to the selected combination — if the variant has its own EAN or reference, that identifier will be sent to Google instead of the main product identifier.
Supported listing pages
The module tracks the view_item_list event on all product listing pages in PrestaShop:
- Category pages
- Manufacturer pages
- Supplier pages
- New products
- Bestsellers
- Promotions (price reductions)
On each of these pages, the module first tries to retrieve the product list from data already loaded by PrestaShop (Smarty variables), which eliminates additional SQL queries. If the data is not available (e.g. a custom theme), the module automatically switches to a direct database query as a fallback.
Smart variant and cart tracking
On the product page, when the customer changes a variant (color, size), the module sends an asynchronous AJAX request to the server, retrieves the identifier and price of the specific combination, and then immediately sends an updated view_item event to Google — without reloading the page. Similarly, adding a product to the cart generates an add_to_cart event with the correct variant identifier.
Global Google tag (gtag.js)
The module can automatically load the gtag.js script with the Google Ads conversion ID, while also setting the store currency and country. If you already have Google Tag Manager or another module that loads gtag.js, you can disable this option to avoid tag duplication — remarketing events will still be sent correctly.
Full compatibility
- PrestaShop 1.7.x – 9.x — one module for all versions
- PHP 7.0 – 8.5 — no Composer, no external dependencies
- Multistore — each store can have its own Google Ads conversion ID
- All themes — Classic, Starter Theme, Hummingbird, and custom themes
- Multilingual support — configuration panel in Polish and English
Why it is worth it
- One click — full integration — enter the Google Conversion ID, save, and you're done; all events work automatically on every store page
- Google Merchant Center compliance — the product identifier in the tag matches the identifier in the feed, enabling dynamic product ads with correct images and prices
- Real-time variant tracking — changing the color, size, or another attribute immediately updates the data in the remarketing tag, without reloading the page
- Performance — on listing pages, the module uses data already loaded by PrestaShop; zero additional SQL queries in the standard flow
- Security — AJAX token validation, origin/referer verification, escaping all variables in templates, protection against CSRF and XSS
- Order owner verification — the purchase event fires only for the customer who placed the order; there is no risk of order data leakage
- No conflicts — the option to disable the global tag allows coexistence with Google Tag Manager without script duplication
- Full page coverage — categories, manufacturers, suppliers, new products, bestsellers, promotions, search, products, cart, and order
Requirements
- PrestaShop 1.7.0 or newer (including 8.x and 9.x)
- PHP 7.0 or newer
- Google Ads account with active dynamic remarketing
- Product feed in Google Merchant Center (for dynamic product ads)
Installation and configuration
- Install the module through the PrestaShop admin panel (Modules → Upload a module)
- Go to the module configuration
- Paste the Google Ads Conversion ID (format:
AW-123456789) - Choose whether the module should load the global
gtag.jstag (disable if you have GTM) - Select the product identifier format matching your Google Merchant Center feed
- Save — dynamic remarketing starts working immediately on all store pages