Skip to Content

GA Measurement Protocol

Leave your feedback
https://garazd.biz/web/image/product.template/232/image_1920?unique=71f71e8

231.02
231.02 2
231.01648370828744 USD

Not Available For Sale

  • Odoo Version

  • Price

This combination does not exist.

Price: Paid

Overview

The Google Analytics Measurement Protocol app connects your Odoo website to Google Analytics through server-side integration, providing enhanced tracking data for more accurate analytics.

Found out more about the Google Analytics Measurement Protocol - https://developers.google.com/analytics/devguides/collection/protocol/ga4

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


Description

The Google Analytics Measurement Protocol is a method for sending data directly to Google Analytics via API. It can work alongside browser tracking and without it, send online and offline events.

When browser extensions on the side of your website visitor block Google JS scripts, and tracking data is not sent, server-side integration can provide data for these events.

Thus, Measurement Protocol supplements, not replaces, tracking data collection via gtag.js and DataLayer scripts.

The Google Analytics Measurement Protocol app connects your Odoo website to Google Analytics through server-side integration, providing enhanced tracking data for more accurate analytics.

Found out more about the Google Analytics Measurement Protocol - https://developers.google.com/analytics/devguides/collection/protocol/ga4

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 19.0 ga measurement protocol settings website activate tracking debug logging
Odoo 19.0 settings website deactivate google analytics
Adding a Tracking Service
Go to the Website - Configuration - Tracking - Services menu and click New to add a new tracking service for your Odoo website:
Odoo 19.0 website configuration tracking services new
Firstly, fill in the following fields in the new tracking service:
Odoo 19.0 google analytics 4 tracking service website type key
  • Specify a Website (if multiple websites are used)
  • Select the service Type as Google Analytics 4
  • Paste your GA4 Measurement ID into the Key field
Then, specify the type of identifier for the products and which product category is provided to Google:
Odoo 19.0 google analytics 4 tracking service item type category
If products have attributes and variants, choose Product Variant ID in the Item Type field; if not, 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 19.0 google analytics 4 tracking service options lead value
It is a monetary value of the Lead Generation event and should be set according to your estimation.
Measurement Protocol Activation
Enable the Internal Logs option:
Odoo 19.0 ga measurement protocol tracking service options internal logs
After that, switch on the API mode by enabling the Activate option in the API section:
Odoo 19.0 ga measurement protocol tracking service options api activate access token
Next, log in to your Google Analytics account and create an Access Token under Web stream details, Events section, and Measurement Protocol API secrets:
Odoo 19.0 google analytics 4 web stream details measurement protocol api secrets
Copy the Secret value and paste it into the corresponding field in Odoo:
Odoo 19.0 google analytics 4 measurement protocol api secrets value
Tracking Data Sending
Internal logs provide information about visitor actions on your Odoo website and can be used for further analysis and monitoring of the site. Click the Logs button at the top of the form:
Odoo 19.0 google analytics 4 tracking service logs button
Enable the State and API Sent Date columns to display a status and the date of sending the event to Google Analytics 4 via the Measurement Protocol:
Odoo 19.0 ga measurement protocol tracking logs state api sent date
Events are sent periodically by a scheduled action:
Odoo 19.0 ga measurement protocol scheduled action
By default, it runs every 30 minutes, and this period can be adjusted according to your requirements.
To send tracking data manually, select tracking logs from the list or open a log and click on Send Event:
Odoo 19.0 ga measurement protocol tracking log send event
After sending, the log status can be changed to Warning or Error, in case of a lack of data or other causes. Open the Technical tab and get details in the API Response field:
Odoo 19.0 ga measurement protocol tracking log warning api response
As tracking logs can contain sensitive data such as IP addresses and Google IDs, it's possible to configure their cleaning up. Go to the website settings and specify the period for cleaning. The default period is 30 days:
Odoo 19.0 website settings clean up period for internal logs unlink
Enable the Unlink Logs After Period option for complete removal of tracking logs older than the specified period.
User-provided Data
Including user-provided data in tracking events improves the accuracy of Google Analytics measurements. Go to the Advanced Matching tab and enable the required data options to transmit user-provided data to Google:
Odoo 19.0 ga measurement protocol tracking service advanced matching
Testing
Realtime Overview
The first way to test the Google Analytics Measurement Protocol integration is to use the Realtime overview. Enable the Remove JS Script option to prevent events from being sent to Google Analytics via script before API:
Odoo 19.0 ga measurement protocol tracking service options remove js script
Once the state of internal logs sending has changed to Sent, go to Google Analytics, then open the Reports menu and the Realtime overview page:
Odoo 19.0 google analytics 4 reports realtime overview
Review the Event count by Event name and Key Events by Event name sections, which should contain the events you sent.
Measurement Protocol Validation Server
To verify the integration with the Measurement Protocol validation server, enable the Debug Mode option in your Google Analytics tracking service settings:
Odoo 19.0 ga measurement protocol tracking service options debug mode
Open one of the events and send it manually. If the log status has changed to Debug and on the Technical tab, the API Response field has the OK value, it means that no errors were found:
Odoo 19.0 ga measurement protocol tracking log debug
If the status changed to Warning or Error, check the API Response field for details on why:
Odoo 19.0 ga measurement protocol tracking log warning api response
After completing testing, disable Debug Mode and send the event again. The Sent status means that the event was successfully sent via API to Google Analytics:
Odoo 19.0 ga measurement protocol tracking log sent

Changelog

17.0.1.0.0 2024-09-05

  • Init version.

16.0.1.0.1 2024-10-23

  • Improve the logic to check available user tracking fields to activate.

16.0.1.0.0 2024-10-18

  • Init version.

18.0.1.1.0 2025-10-12

  • Decrease the price.
  • Improve demo data.

18.0.1.0.0 2025-01-14

  • Migration from 17.0.

19.0.1.0.1 2025-12-29

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

19.0.1.0.0 2025-10-12

  • 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