Product parameters in dataLayer for Google Tag Manager
A module that will help add data layer code 'dataLayer' for Google Tag Manager or 'gtag' for Google Analytics 4 to the OpenCart product page in the head or body block. In this code, you can use shortcodes, instead of which the product parameters will be substituted.
Use the following shortcodes to automatically replace the product parameters: {product_id}, {product_name}, {price}, {currency_code}, {model}, {sku}, {upc}, {ean}, {jan}, {mpn} , {isbn}, {location}, {weight}, {length}, {width}, {height}.
With the help of this extension, you can register events in the product page, as well as transfer product data to the dataLayer before or after the initialization of the GTM code.
Also try our free GA4 Events modification, which adds GA4 events to OpenCart for conversion tracking.
The module is free, so it is distributed as is without any guarantees or support. But you can order a paid service if you need any improvements or extensions to the functionality of the module for working with Google Tag Manager, such as transferring conversions: adding to the cart, placing orders, registering buyers or achieving other goals.
Module installation instructions:
Upload the module in the admin panel in the "Extensions" : "Install".
Go to the "Modifications" section and update the cache.
Go to the "Dashboard" section and update the template cache.
Go to the "Extensions" : "Extensions" : "Modules" and enable the module.
Edit module. Enable the status of the module and adjust all its options to your needs and save the settings.
Check module operation.
Bingo!
You must be logged in to view the files!
Тетяна
24 September 2025
Виникло питання ,його швидко вирішили, хоча цій модуль безкоштовний,техпідтримка допомогла.Дуже дякую .Всім рекомендую.
A developer cheat sheet on using ternary operators in Twig. It will be useful for new developers of OpenCart and other CMSs that use this templating engine.
The OpenCart team has officially presented release 3.0.5.0, which contains a significant package of fixes, code cleanup, and compatibility improvements with modern PHP versions.
On November 20, 2025, a new major release of PHP was published - version 8.5. PHP 8.5 introduces useful improvements, but requires a careful approach when integrating into existing OpenCart projects.