Skip to Content

Odoo Google Tag Manager Enhanced Conversions

Leave your feedback
https://garazd.biz/web/image/product.template/194/image_1920?unique=1268366

205.31
205.31 98
205.30793301929148 USD

Not Available For Sale

  • Odoo Version

  • Price

This combination does not exist.

Price: Paid

Overview

Several methods exist for collecting tracking data on an Odoo website and sending it to Google, including Google Tag Manager (GTM), which operates via the DataLayer and is best suited to advanced users. Manually mapping website CSS selectors to GTM triggers is complex and time-consuming. Pre-built GTM integrations simplify conversion tracking deployment.

For Odoo websites, this solution provides intuitive tools to capture e-commerce events (view_item, add_to_cart, begin_checkout, purchase, etc.) and to send product details, along with hashed user-provided data for enhanced conversions and dynamic values. The module enables tracking event configuration directly in the Odoo backend, eliminating the need for custom development and minimizing manual setup in GTM.

Availability
Odoo Online
Odoo.sh
On Premise
Compatibility
Community
Enterprise
Technical Name website_sale_google_tag
Version 19.0.1.0.2
License OPL-1
Category
Support Free 60 days support and 360 days bug-fixing

Use Case

Jorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

Forem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

Dorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis.

It is a long established fact that a reader will be distracted by the readable content of a page

Korem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

Korem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis.

Odoo App Installation

Upload modules

Upload modules from the ZIP archive to your Odoo hosting, or a GitHub repository connected there.

Place the unzipped modules in your custom add-on directory and restart the Odoo system service.

Update App List

After restarting, activate the Developer Mode, and go to the Apps menu.

Odoo Update App List

Click on Update Apps List to fetch the new modules in the list.

Activate the App

Install the new module, finding it by name and clicking on the Activate button.

Odoo App Installation

* If you don't see the module, try to remove the default Apps filter from the search bar.

Configuration

Follow the instructions in the module description to complete the installation process and start using the app.

View Odoo App Description

Manual

fa code

Obtaining the Identifier

Before adding the JS script to your website, first obtain the identifier. To do this, log in to your Google Tag Manager account and copy the Container ID:

google tag manager account workspace container id
check circle fill

Activation

After installing the app, go to the website settings and, in the Enhanced Website Tracking section, enable the Activate Tracking option. To test your website tracking and view tracked events in the browser console, also temporarily activate the Debug Logging feature:

odoo settings website activate tracking debug logging
If you use Odoo's built-in Google Analytics feature, disable it and transfer the identifier to a new tracking service.
odoo settings website disable google analytics
fa cookie

Cookie Consent

The module is compatible with the Odoo Google Consent Mode solution, which allows managing cookie consent and updating consent states by sending them to Google.

odoo website google consent settings list
ads click rounded

Configuration

The module allows you to track e-commerce events on your website and send them to Google along with product information and user-provided data. Additionally, you can store this data in internal Odoo logs for website analysis and monitoring. These features are implemented at the tracking service level. Add and configure a tracking service for your Odoo website.

Adding a Tracking Service

Go to the Website - Configuration - Tracking - Services menu and click New to add a new tracking service.

odoo website configuration tracking services new

Firstly, fill in the following fields in the new tracking service:

odoo google tag manager tracking service website type key
  • Specify a Website (if using multiple websites)
  • Select Google Tag Manager as the service Type
  • Paste your Container ID into the Key field

Then, specify the type of product identifier and product category sent to Google Tag Manager.

odoo google tag manager tracking service item type category

If products have attributes and variants, choose Product Variant ID in the Item Type field; otherwise, select Product Template ID.

Select the desired Category Type: an eCommerce Public Category or an internal Product Category.

The next option is the Lead Value on the Options tab.

odoo google tag manager tracking service options lead value

This field represents the monetary value of a lead generation, based on estimated evaluations.

Tracking Logs

The module includes an internal logging feature. To activate it, enable the Internal Logs option.

odoo google tag manager tracking service options internal logs

To view logs, go to the Website - Configuration - Tracking - Logs menu or click the Logs button at the top of the form.

odoo google tag manager tracking service logs button

The list of internal tracking events.

odoo google tag manager tracking service log list

Custom Event Tracking in Odoo

Another GTM-related feature is the ability to configure custom events in Odoo. In the Custom Events section of the tracking service, you can add a custom event and link it to one of the Odoo tracking events.

odoo google tag manager tracking service options custom event
fa address card

Enhanced Conversions

Enhanced conversions help optimize your advertisements by providing Google with additional user data. Open the Advanced Matching tab and click Allow Enhanced Conversions, which enables all available options for this tracking service.

odoo google tag manager tracking service advanced matching allow enhanced conversions
User data is sent securely, as it is hashed in accordance with Google's requirements.

Use the Sale Order Partner value as the Customer Data Source because it provides more user details when guest checkouts are allowed without registration:

odoo tracking service advanced matching sale order partner

Advanced Settings

The module includes additional settings available in Developer Mode.

Product Identifier

The module uses the Product ID field as a unique product identifier. To use a different value, specify another product field containing the desired identifier on the Technical tab:

odoo tracking service technical identifier field
The specified product field should provide non-empty values and remain unique for each product. Otherwise, the tracking data for this product becomes unusable.

Purchase on Portal

To track portal purchases, enable the Track Purchase on Portal option:

odoo tracking service technical track purchase on portal

Exclude Delivery

The next available setting for tracking services is Exclude Delivery. When enabled, the service excludes delivery lines from sales orders in tracking data transmissions:

odoo tracking service technical exclude delivery

Exclude Rewards

To exclude reward order lines from tracking data, enable the Exclude Reward option:

odoo tracking service technical exclude reward

Add to Cart

By default, the module tracks the actual addition of a product to the cart. To track the event upon clicking the button without waiting for the actual addition to the cart, perform the following steps:

odoo website enhanced tracking event settings add to cart on click
  • Navigate to Website — Configuration — Websites
  • Open the website on the Enhanced Tracking tab
  • Enable the Add to Cart on Click option
Tracking the actual addition might fail if third-party modules modify the logic. In this case, this option allows for event tracking by binding it to button selectors used in native Odoo website templates.

Purchase

To track purchases only after a successful payment transaction, enable the Track Confirmed Purchases only option:

odoo website enhanced tracking event settings track confirmed pending purchases
This option only affects the event transmission through the tracking service; the internal log records the event regardless.

If business logic considers an order with a Pending payment status as a purchase, enable the Track Pending Purchases too option as well.

fa bug

Testing

To test the GTM tracking script, use Google Tag Assistant. Click Preview.

google tag manager account workspace preview assistant

Then enter your Odoo website URL and click Connect.

google tag manager assistant url connect
For testing, log out of Odoo or use a different browser, as website tracking does not work for internal Odoo users.

Perform a few eCommerce actions on your Odoo website and review the report in Google Tag Assistant.

gtm google tag assistant odoo ecommerce website events
cloudy fill

Google First-party Mode

Google First-party Mode allows configuring Google tags on your Odoo website to load scripts from your tagging servers or CDN instead of Google's:

google tag gateway architecture

The app allows specifying a custom URL for Google Tag Serving. Open the website settings and, in the Tracking and SEO section, change the Tag Serving URL:

odoo website settings tracking seo google first party mode tag serving url

After saving the settings, sign out of Odoo and open the page source of your website to review the result:

odoo google first party mode tag serving url webpage source code

To restore the default Google tag URL, click the button on the right:

odoo google first party mode tag serving url restore
Odoo-side settings alone are insufficient to implement first-party mode. The custom URL must also be configured separately. The configuration methods are described in our blog post: https://garazd.biz/blog/odoo-1/odoo-google-tag-gateway-with-cloudflare-57.

Changelog

16.0.1.0.1 2025-01-14

  • Change the dataLayer calling.

16.0.1.0.0 2024-03-12

  • Init version.

17.0.1.0.2 2026-05-25

  • Improve getting of the list of allowed settings for user data.

17.0.1.0.1 2024-09-17

  • Change the dataLayer calling.

17.0.1.0.0 2024-04-13

  • Migration from 16.0.

18.0.1.0.1 2026-05-25

  • Improve getting of the list of allowed settings for user data.

18.0.1.0.0 2024-10-11

  • Migration from 17.0.

19.0.1.0.2 2025-12-29

  • Improve getting of the list of allowed settings for user data.

19.0.1.0.1 2025-12-25

  • Add a list of allowed user data settings.

19.0.1.0.0 2025-10-11

  • Migration from 18.0.

Reviews

Our customers have already appreciated the quality, reliability, and performance of the solutions we offer

Login to leave a comment

FAQ

Why are some tracking events logged in Odoo but not collected by Google?

It can be when a website visitor has ad-blocking browser extensions on their side. In this case, tracking data is not sent to Google but logged in Odoo. Another case is if Google Consent Mode is implemented on your Odoo website, but the visitor does not grant consent for marketing and analytics cookies. In this case, the tracking data is sent to Google, but Google does not process it due to the Google cookie consents.