Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries ⟶
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    • Affiliate Program
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Website
  3. eCommerce Tracking Tags v 17.0
  4. Sales Conditions FAQ

eCommerce Tracking Tags

by Awins
Odoo

$ 116.14

v 17.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 16.0 17.0 18.0 19.0 20.0
You bought this module and need support? Click here!
Versions 16.0 17.0 18.0 19.0 20.0
  • Description
  • Manifest
  • License
Apps / Awins / ecommerce_tracking_tags

eCommerce Tracking Tags

Send view_item, add_to_cart, begin_checkout and purchase from your Odoo shop to Google Analytics 4 and the Meta Pixel, only after the visitor accepts cookies, with one purchase per order.

Install›Configure›Use
/odoo/action-ecommerce_tracking_tags.action_tracking_event_log
eCommerce Tracking Tags in the Odoo backend
Odoo17.0, 18.0, 19.0, 20.0
EditionsCommunity, Enterprise
Works witheCommerce
LicenceOPL-1, 106 EUR
Tests14 automated, run on every version
Moduleecommerce_tracking_tags

The situation

You run Google Ads and Meta ads for your shop and want purchases in the reports. Odoo only loads one Google Analytics key and has no Meta Pixel field. A visitor who reloads the order confirmation page counts twice, your own staff testing orders count as customers, and Meta has no way to match the browser purchase with the one it receives from the server.

The module adds GA4 and Meta Pixel settings per website. Both tags stay unloaded until the visitor accepts optional cookies in the Odoo cookies bar. The purchase goes out once per order with the order name (S00042) as Google transaction_id and Meta eventID, and a flag on the sales order stops a second send.

What it adds

Google Analytics 4
GA4 ecommerce events
Enter the Measurement ID (G-XXXXXXXXXX). The shop sends view_item, view_item_list, add_to_cart, begin_checkout, add_shipping_info, add_payment_info and purchase, each with item id or SKU, name, category, price, currency, quantity and variant.
Without it: Odoo has one Google Analytics key field and fires only some of these events, depending on the version.
Meta Pixel
Meta Pixel standard events
Enter the Pixel ID. The same shop events go out as ViewContent, AddToCart, InitiateCheckout, AddPaymentInfo and Purchase, with content ids, contents and value.
Consent and Privacy
Loads after the cookies bar
No Google or Meta script is requested before the visitor accepts optional cookies. GA4 starts with Consent Mode v2 set to denied and switches to granted on acceptance. A warning shows in the settings when the Cookies Bar is off.
Purchase Tracked
One purchase per order
On /shop/confirmation the purchase is returned once and the sales order is flagged. A reload returns nothing and writes a Skipped line in the log.
Without it: reloading the confirmation page can count the same order again.
Exclude Internal Users
Staff are not tracked
With the option on, logged-in employees get no tag in the page head and no events from the server, so test orders stay out of the reports.
Conversions API
Server-side purchase
Add the access token and the purchase is also posted to Meta from the server with eventID equal to the order name. Email, phone, first name, last name and country are trimmed, lowercased and hashed with SHA-256. A failed call is logged and never blocks the page.
Test Event Code
Test before you go live
Paste the code from Meta Events Manager and server events appear in its Test Events tab. Debug Mode prints each event in the browser console and turns on GA4 debug_mode.
Tracking Events
Event log
Website › Configuration › Tracking Events lists the event, event ID, order, channel (Browser or Conversions API) and status (Sent, Skipped, Failed). Purchases and Conversions API calls are always logged; other events are logged in Debug Mode.

Getting started

Install

Open Apps, clear the Apps filter, search for eCommerce Tracking Tags and click Activate. It needs Website Sale, which Odoo installs with it. You need your own GA4 property and/or Meta Pixel. Leave the standard Google Analytics key in the website settings empty so the tag is not loaded twice.

Apps › ecommerce_tracking_tags › Activate
Configure

Open the website settings, find the eCommerce Tracking Tags block, tick Google Analytics 4 and/or Meta Pixel and enter the IDs. Turn on the Cookies Bar of the website so visitors are asked first. Add the Conversions API token if you want the server-side purchase.

Settings › Website › eCommerce Tracking Tags Settings for eCommerce Tracking Tags
Use

Nothing changes for the visitor except the cookies bar. After the first test order, open Website › Configuration › Tracking Events and check that the purchase shows as Sent once. Switch on Debug Mode while you compare with GA4 DebugView and Meta Test Events, then switch it off.

Tracking Events filtered on purchases: one Sent line per order, a Skipped line for the reload.
Tracking Events filtered on purchases: one Sent line per order, a Skipped line for the reload.
A failed Conversions API call opened from the log, with the error text.
A failed Conversions API call opened from the log, with the error text.

Fine print

Does it work with the Odoo cookies bar?
Yes. It reads the website_cookies_bar cookie and the optionalCookiesAccepted event of the standard cookies bar. If the bar is off, tags load at once, and the settings tell you so.
Will GA4 count a purchase twice if I also keep Odoo's own Google Analytics key?
It can load the tag twice. Clear the standard key and enter the Measurement ID in this module instead. The module ignores the standard purchase event and sends its own.
Are prices shown with or without tax?
Item prices come from the website pricelist for lists and product pages, and from the order line subtotal on the confirmation page, so they follow the line amounts without tax. The purchase value is the order total.
Where can I run it?
On Odoo.sh and on your own server, Community or Enterprise, versions 17.0 to 20.0. Odoo Online doesn't accept third-party modules.
What doesn't it do?
It does not send server-side GA4 events (Measurement Protocol) and has no TikTok, Google Ads or Google Tag Manager support. The Conversions API is used for the purchase only. A purchase is marked as tracked when the confirmation page asks for it, so a visitor who declined cookies is never tracked for that order. Tested with mocked Google and Meta calls, not against live accounts: check your first order in GA4 DebugView and Meta Test Events.
Can you adapt it for us?
Yes. Email odoo.expert.111@gmail.com with your Odoo version and what you'd like changed.

Log

17.0.1.0.0 · Oct 2026
First release, published for Odoo 17.0 to 20.0.

Can you add TikTok or Google Ads tags?

Write to us with the tool and the events you need and we will tell you if we can add it.

Email odoo.expert.111@gmail.com
QR code: email Awins about this module

Also by Awins

Bulk Edit with Undo Bulk Edit with Undo bulk_edit_preview_undo
All in One Preview All in One Preview web_preview_all_in_one
Gantt View Timeline Gantt View Timeline web_gantt_timeline_view
Awins builds small Odoo modules that do one job. ecommerce_tracking_tags · 17.0.1.0.0
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • eCommerce (website_sale)
• Website (website)
• Invoicing (account)
• Discuss (mail)
Lines of code 702
Technical Name ecommerce_tracking_tags
LicenseOPL-1
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

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with