Built and supported by Modvanta - modvantaapps@gmail.com
What it does
Google Tag Manager on your Odoo website, with eCommerce events in the dataLayer
Enter your GTM container ID once and the Google Tag Manager snippet is added to every website page. From there you manage GA4, Google Ads, Meta and other tags in Tag Manager without touching Odoo again.
The module also pushes shop events to the dataLayer: page_view, view_item (with item name and value), view_item_list, add_to_cart, search, begin_checkout, purchase and more, each with its own on/off switch. An optional internal log stores the events in Odoo so you can check that tracking works.
Who it is for
For shops that measure their marketing
Marketing teams Feed GA4 and ad platforms through Tag Manager with standard event names. |
Agencies One container per website, events switched on per need. |
Shop owners See in Odoo which events are firing, without browser tools. |
Key features
What you get
1Container and event switches
Website -> Google Tag Manager: container ID, website, and a switch per event (page view, view item, item list, add to cart, wishlist, begin checkout, shipping info, payment info, purchase, search, lead, sign up, login), plus internal logs, debug logging and log retention.
2Events in the dataLayer
What window.dataLayer contained on our bench after opening a product and clicking Add to cart: page_view, view_item with item and value, and add_to_cart.
3GTM snippet on every page
The container script with your GTM ID in the page source, plus the noscript iframe.
4Internal event log
With Internal Logs on, each event is stored with date, container, event name and user. Old logs are removed after the retention days you set.
How it works
Step by step
| 1 | Create a container record Website -> Google Tag Manager -> New, paste your GTM-XXXX ID. |
| 2 | Choose the events Tick the events you want in the dataLayer. |
| 3 | Build tags in Tag Manager Use the event names as triggers for GA4 or ad tags. |
| 4 | Check the log Open the GTM Event Logs from the container to see events arriving. |
Settings
What you can configure
| Setting | Where | What it does |
| Container ID | Google Tag Manager container | Your GTM-XXXXXX ID. |
| Track ... switches | Google Tag Manager container | One switch per dataLayer event. |
| Internal Logs / Log Retention Days | Google Tag Manager container | Store events in Odoo and how long to keep them. |
| Debug Logging | Google Tag Manager container | Also log events to the browser console and server log. |
FAQ
Questions buyers ask
Do I still need Google Analytics settings in Odoo?
No, add your GA4 tag inside Tag Manager instead.
Is the snippet added in the website editor?
No, it is skipped while editing pages.
Can I use one container per website?
Yes, each container record is linked to a website.
Compatibility
Works with
Odoo 19 Community Odoo 19 Enterprise Depends on: website_sale, mailBuilt and tested on Odoo 19 with the default website theme.
Connect your shop to Google Tag Manager
Questions before buying, help with setup, or a change you need: write to us and a developer answers.
SUPPORT |
AUTHOR Modvanta |
INCLUDED Source code, free bug fixes for Odoo 19 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• eCommerce (website_sale) • Website (website) • Invoicing (account) |
| Lines of code | 607 |
| Technical Name |
mdv_gtm_tracking |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/gtm-tracking/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module