Google Ads and Meta offline conversions from Odoo CRM

How to see which Google Ads and Meta campaigns bring real sales in Odoo 17-20: save gclid and fbclid on leads and orders for free, then send offline conversions back and track ROAS.

Google Ads and Meta see the form fill, but not whether that lead later became a customer. So they optimise for form fills, and you can't tell which campaign pays off. This guide shows how to close that gap in Odoo 17, 18, 19 and 20 with the free Ads Attribution Lite and Ads Attribution Pro by KVS soft.

Step 1: keep the click (free)

Install Ads Attribution Lite. Nothing else to set up in Odoo. When a visitor comes to your Odoo website from an ad, the module keeps the click for 90 days:

  • the Google click ids gclid, gbraid and wbraid;
  • the Meta fbclid with the pixel cookies fbc and fbp;
  • besides campaign, source and medium: the keyword and ad (utm_term, utm_content), the landing page and the referrer.

Keep auto-tagging on in Google Ads. In Meta ads add URL parameters, for example utm_source=instagram&utm_medium=paid&utm_campaign={{campaign.name}}.

The click is stored in optional cookies: when the website cookie bar is on, it is saved after the visitor accepts them, like Odoo's own UTM cookies.

Step 2: leads and orders get the click

Leads from the website forms and orders from the online shop get the click by themselves, and quotations made from a lead take its click. Each lead and order is marked Google Ads or Meta Ads, with filters in CRM and Sales. The click is on the Ad Click tab.

Lead with its ad click
gclid, keyword, landing page and platform on the lead

CRM → Reporting → Ads Attribution shows leads, won deals, won revenue, orders and order amount by campaign, source, medium, keyword and platform.

Campaign report
Leads and revenue per campaign and keyword

Step 3: tell the ad platforms who bought (Pro)

Ads Attribution Pro installs on top of Lite. In CRM → Configuration → Ads → Ad Accounts add a Google Ads account (customer ID, OAuth client and refresh token) or a Meta dataset (dataset ID and Conversions API token). Tick Sample Data to try it without an account.

Ad account
A Google Ads account or Meta dataset in Odoo

Then add conversion rules, with no code: send a conversion when a lead is created, reaches a stage or is won, when an order is confirmed or when its invoice is paid, with the value of the document or a fixed value.

Conversion rule
What to send and when
  • Google receives them through the Data Manager API, which Google now uses for offline conversion imports, with gclid, gbraid or wbraid. Leads without a click id go with SHA-256 hashes of email and phone (enhanced conversions for leads). In Google Ads the conversion action must be of type "Import from clicks".
  • Meta receives CRM events through the Conversions API with fbc, fbp and hashed contact data.

Plain personal data never leaves Odoo: only hashes, and only when the rule allows it. Conversions go out every 15 minutes, never twice, and each one is listed with its status and the platform's answer. Google accepts conversions up to 90 days after the click, Meta up to 7 days; older ones are marked as skipped.

Conversion queue
Status and platform answer for every conversion

Step 4: spend and ROAS

Each night the module imports cost, clicks and impressions per campaign from both platforms. CRM → Reporting → Ads ROI shows cost, leads, won deals, orders, revenue, ROAS and cost per lead and per sale by campaign and month.

Ads ROI
Cost, revenue and ROAS per campaign

Price

Ads Attribution Lite is free. Ads Attribution Pro costs $79, a one-time purchase on the Odoo Apps Store for one Odoo version. Both work on Odoo 17, 18, 19 and 20, Community or Enterprise, on Odoo.sh or your own server.

Want help connecting your ad accounts? Write to us.

Custom development

We build any Odoo module to order

An integration with your bank or delivery service, a report, a workflow, a portal for your customers: describe the task and we will propose a solution, a price and a deadline.

Describe your task