Odoo Google Analytics 4 Tag with gtag.js
by Garazd Creation https://garazd.biz/shop/google-analytics-4-global-site-tag-gtag-js-8Activate the Google Tag on your Odoo website to integrate with Google Analytics 4 (GA4) and Google Ads
The Google tag (formerly the global site tag or gtag.js) is a single script that connects your website to various Google services, such as Google Analytics 4 and Google Ads. The Odoo Google Tag module automatically adds this script to every page of your Odoo website to record basic interactions like page views.
This module serves as an extensible foundation for your Odoo tracking setup. It provides the core logic for sending data to Google, which you can expand with other modules to track specific e-commerce events or collect rich product and visitor insights.
Product Team
Developed and maintained by a product company with a specialized focus
No Code
Activates tracking tags without coding
Multi-Tags
Support multiple tags on one website
Support
Free 1-year support, assistance, and bug-fixing
Google Tag in Odoo
The Google Tag JS script can send core tracking data to two Google services: Google Analytics 4 and Google Ads.
You can add the Google tag to an Odoo website in two ways:
- Using Odoo's built-in Google Analytics feature
- Using the Odoo Google Tag module by Garazd Creation
If Odoo's built-in tracking logic is sufficient for your needs, choose the first way. If you require features beyond basic tracking, the second way provides a convenient and extensible foundation for integrating with Google services.
Additional modules related to this feature allow you to implement Google Consent Mode, as well as collect and send rich product and visitor data from your website to Google Analytics, Google Ads, and Google Tag Manager.
Getting the Tag ID
Before using the module, obtain a tracking ID from your chosen service — Google Analytics or Google Ads.
Getting the Measurement ID in Google Analytics
To obtain a tag ID in Google Analytics, log in to your account and navigate to Admin — Data Collection and Modification — Data Streams. If you do not have a data stream yet, create one by clicking Add Stream.
Open the data stream and copy the Measurement ID.
Getting the Tag ID in Google Ads
To obtain a tag ID in Google Ads, log in to your account and navigate to Tools — Data Manager. Open your Google tag and copy the ID.
Tracking Activation
After installing the module, activate tracking by completing the following steps:
-
01Open the website settings
-
02Enable the Google Tag (gtag.js) option in the Tracking and SEO section
-
03Paste the copied identifier into the Tag ID field
-
04Save the settings
After that, the module automatically adds the Google tag script to all pages of the Odoo website.
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.
Testing
You have a few ways to verify your Google tag integration:
- Debug View in Google Analytics 4
- Browser Extensions
Testing with Debug View
To test the tag integration with Google Analytics 4, enable the GA4 Debug Mode option in your Odoo website settings and save the changes.
Next, open several pages on your website to send test events to Google.
After that, review the tracked events in the Debug View menu of your Google Analytics 4 account.
Testing via Browser Extension
An alternative way to test the Google tag integration on your Odoo website is to use the Tag Assistant browser extension: https://chromewebstore.google.com/detail/tag-assistant/kejbdjndbnbjgmefkgdddjlbokphdefk.
Garazd Creation
Team from Ukraine
Our Odoo Apps are solutions to promote products and enhance sales
Expands the capabilities of Odoo and provides the required functionality
Developed by experienced Odoo specialists in collaboration with marketing and SEO experts
years on the market
specialize in customized solutions for Odoo, where we are experts
sales and downloads
made in the Odoo Apps Store
ranks in the TOP-10
popular solutions on Odoo Apps among 79,000 modules
Our Expertise
Official Odoo Partner
Active OCA Member
With Odoo since 2014
Effective solutions for the global market
Creating
high-quality, flexible and reliable business solutions
Taking care of
timely support for users of our modules
Having
an entrepreneurial background, we understand exactly what we are doing
Paying attention
to user-friendliness and understandable UI/UX design
Providing
additional materials for easy use of the product
Conducting
marketing activities and providing high-quality information support
Contact Us
Website
Get Support
Watch on YouTube
- Module version: 17.0.2.1.0
- Copyrights: Module design is reserved. Unauthorized copying or redistribution of the design is prohibited. Copyright © Garazd Creation
Changelog
17.0.2.1.0 2024-06-20
- Improve the script insertion with the post gtag call section.
17.0.2.0.0 2024-04-09
- Refactor from GA4 to the Google Tag.
17.0.1.1.0 2024-02-17
- Implement compability with Google Consent Mode extension.
17.0.1.0.0 2023-11-02
- Migration from 16.0.
- Implement compability with Google Consent Mode extension.
FAQ
Why are some tracking events logged in Odoo but not collected by Google?
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Website (website)
• Discuss (mail) |
| Lines of code | 91 |
| Technical Name |
website_google_analytics_4 |
| License | OPL-1 |
| Website | https://garazd.biz/shop/google-analytics-4-global-site-tag-gtag-js-8 |
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