Skip to Content

Global Site Tag (gtag.js) is now the Google Tag

https://garazd.biz/web/image/product.template/8/image_1920?unique=525f48d
Leave your feedback

0.00
Free 1285
0.0 USD

Not Available For Sale

  • Odoo Version

  • Price

This combination does not exist.

Price: Free

Overview

Recently, Google has announced that they implement a single script for tracking visitor activity on websites. This script, named Google Tag, should be added to all webpages of a website.

So, the global site tag (gtag.js) is now the Google tag, you can find details in this Google documentation: https://support.google.com/tagmanager/answer/11994839.

The Google Tag now supports various destinations, such as:

  • Google Ads - is a platform for promoting your products and services across the entire Google product network.
  • Google Analytics 4 - is a new generation of analytics from Google with a new interface, reports, and features. You can use it for your Odoo websites.

Availability
Odoo Online
Odoo.sh
On Premise
Compatibility
Community
Enterprise
Technical Name website_google_analytics_4
Version 18.0.1.1.0
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


Google Analytics 4 Tag
Retrieving the Google Analytics 4 measurement ID
In your Google Analytics 4 account, go to the "Admin" - "Data collection and modification" - "Data streams" menu, select the required stream then copy the Measurement ID.
Odoo Google Analytics 4 measurement ID getting 18.0
Google Ads Tag
Retrieving the Google Ads Tag ID
In your Google Ads account, go to the "Tools" - "Data manager" menu and on "Google tag" tab copy the Tag ID.
Odoo Google Ads Tag ID getting 18.0
Configuration
Adding a tracking ID
Go to the menu "Website" - "Configuration" - "Settings" and activate the "Google Tag" option. Then fill in the Tag ID.
Odoo Google Tag gtag configure in 18.0
Configuration
Adding a tracking ID
Go to the menu "Website" - "Configuration" - "Settings" and activate the "Google Analytics 4" option. Then enter Tracking ID and save the changes.
Odoo 18.0 Global Site Tag (gtag.js) is now the Google Tag configuration
The script code
The global site tag will be added to all web pages.
Odoo 18.0 Global Site Tag (gtag.js) is now the Google Tag global site tag script code
Debug Mode
You can activate the "Debug Mode" and test sending of events to Google.
Odoo False Global Site Tag (gtag.js) is now the Google Tag configuration
To do it, activate the appropriate option in website settings.
Odoo False Global Site Tag (gtag.js) is now the Google Tag configuration
View events in the "Debug View".
Testing
GA4 Debug Mode
You can activate the "Debug Mode" for your Google Analytics 4 tag and test sending tracking events to Google. To do it, activate the "GA4 Debug Mode" option in website settings.
Odoo GA4 Google Analytics 4 Debug Mode setting in 18.0
After that, you can view tracking events in the "Debug View" of your GA4 account.
Odoo GA4 Google Analytics 4 Debug View 18.0
Testing Particularities

As the Google Tag script does not have to send tracking data about a website activity of internal users, there are several testing tips:

  • You will not see the Google Tag script if you are logged in to Odoo and you have internal user's access rights.
  • Log out from the system, or use the incognito mode, or other browser to test the gtag script.
Cookie Consent
Our solution is compatible with the Google Consent Mode app, that allows to manage cookie consents and update the consent states by sending them to Google.

Changelog

14.0.3.0.0 2024-03-16

  • Refactor from GA4 to the Google Tag.

14.0.2.0.1 2024-02-05

  • Fix linter warnings.
  • Add README.rst.

14.0.2.0.0 2023-06-14

  • Improved for new website tracking logic.
  • Change the license to OPL-1.
  • Remove "sign_up" and "login" GA4 events tracking.

14.0.1.1.1 2022-08-13

  • Fix click function for logged users.

14.0.1.1.0 2022-08-12

  • Add Google Analytic 4 "Debug Mode" option.

14.0.1.0.1 2021-07-07

  • Move script block to the end of the head tag.

14.0.1.0.0 2021-06-02

  • Init version.

15.0.3.1.1 2024-04-02

  • Rename the "ga4_tracking_key" field to the "gtag_tracking_key".

15.0.3.1.0 2024-03-16

  • Refactor from GA4 to the Google Tag.

15.0.3.0.0 2023-07-19

  • Remove "sign_up" and "login" GA4 events tracking.
  • Improved for new website tracking logic.
  • Change the license to OPL-1.

15.0.2.1.0 2022-11-11

  • Improve passing params to the gtag script.

15.0.2.0.0 2022-09-06

  • Rebuilt logic, extend the standard Google Analytics instead add a new.

15.0.1.1.0 2022-08-15

  • Add Google Analytic 4 "Debug Mode" option.

15.0.1.0.0 2022-02-02

  • Migrate from 14.0

16.0.3.0.1 2024-05-02

  • Improve the script insertion with the post gtag call section.

16.0.3.0.0 2024-03-16

  • Refactor from GA4 to the Google Tag.

16.0.2.2.0 2024-01-17

  • Implement compability with Google Consent Mode extension.

16.0.2.1.0 2023-12-22

  • Fix linter warnings.
  • Add README.rst.

16.0.2.0.0 2023-07-27

  • Change the license to OPL-1.
  • Improved for new website tracking logic.
  • Remove "sign_up" and "login" GA4 events tracking.

16.0.1.0.0 2022-11-11

  • Migration from 15.0.

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.

18.0.1.1.0 2025-05-29

  • Refactor the Google Tag gtag.js script insertion.

18.0.1.0.0 2024-10-08

  • Migration from 17.0.

Reviews

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

Login to leave a comment

FAQ