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.
| Odoo | 16.0, 17.0, 18.0, 19.0, 20.0 |
| Editions | Community, Enterprise |
| Works with | eCommerce |
| Licence | OPL-1, 106 EUR |
| Tests | 14 automated, run on every version |
| Module | ecommerce_ |
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
Getting started
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
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
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.
Fine print
Log
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.comAlso by Awins
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