Odoo

How to see which social ads turn into sales in Odoo

Vanguard Analytics brings Meta, TikTok and LinkedIn campaigns, daily metrics and leads into Odoo, and follows each campaign to the won CRM deal and its revenue.

Three ad-source tiles feed a five-step funnel that narrows to a red won-deal coin, with a rising ROAS line.
Author
Cristhian Agamez CEO
Published
min read
10
  • Odoo

How do you see which social ads turn into sales in Odoo? Bring each ad lead into Odoo CRM with its UTM source, medium and campaign, then count a sale only when that CRM opportunity is won. Vanguard Analytics, our suite of Odoo apps, does this for Meta, TikTok and LinkedIn: it syncs campaigns and daily metrics, turns every lead into a CRM lead, and calculates ROAS on the expected revenue of won deals instead of the conversions each ad platform reports.

This article covers the gap between ad platforms and sales, what the core module does, how the connectors and the Enterprise add-ons fit together, what setup involves, and what the suite costs: USD 349, paid once, for all eight modules.

Ad platforms report leads, not sales

Every ad manager tells you how many leads a campaign produced and what each one cost. None of them knows which of those leads became a paying customer, because the sale happens later, in your CRM, after a salesperson qualifies the lead and closes the deal.

So the usual report stops at cost per lead. A campaign with cheap leads that never buy looks better than a campaign with expensive leads that close. And when you run Meta, TikTok and LinkedIn at the same time, each network shows its own numbers in its own dashboard, with its own definition of a conversion.

The fix is to measure where the sale actually happens. If the lead lives in Odoo CRM and keeps track of the campaign it came from, the won deal and its revenue can be traced back to the ad.

One dashboard from impression to won deal

The core module, social_funnel, adds a dashboard that you filter by period, platform, client or campaign. Every number is compared with the previous period of the same length.

The top row shows spend, leads, cost per lead, CTR, sales, cost per sale, ROAS and won revenue, each with its change against the previous period. Below it you get:

  • The funnel: Impression, Click, Lead, Qualified and Sale, counted from metrics and CRM leads, with the biggest drop marked.
  • Leads and spend per day.
  • Results per platform, so Meta, TikTok and LinkedIn sit side by side.
  • Top campaigns, ranked by sales first, then by the lowest cost per lead, with spend and leads next to each one.

How ROAS is calculated

A won CRM opportunity counts as a sale. Won revenue is the expected revenue of won CRM opportunities that came from a social lead. ROAS divides that revenue by ad spend, so it reflects the deals your team actually closed, not a platform's estimate.

Every lead lands in your CRM, with its UTM

Leads from Meta, TikTok, LinkedIn, comments and webhooks arrive in one list, with their platform, campaign and whether they were converted to CRM. Each social lead keeps its raw payload and becomes a CRM lead, automatically or with one button.

The CRM lead gets the sales team, UTM source, medium and campaign of its connection. Because those are Odoo's standard UTM fields, Odoo's own CRM reports can split results by network and campaign without any extra setup.

  • No duplicates. Leads are unique per connection and external ID, and a lead that is already converted is not converted twice.
  • Manual webhook. POST leads from Zapier, Make or any form to /social_funnel/webhook/manual/<token>. Send an id and retries never duplicate the lead.

Campaigns and daily metrics

Connectors sync campaigns and daily metrics every 6 hours: impressions, reach, clicks, spend, leads and conversions per campaign and day, with CTR, CPC, cost per lead and conversion rate computed. They are regular Odoo records, so list, graph and pivot views work on them like on any other data.

One connector per network

The core runs on webhooks and imports alone. Each network is its own module, so a pending API review on one network never blocks the others.

  • Meta (social_funnel_meta): Facebook and Instagram ads metrics from the Graph API, Lead Ads leads by webhook in real time, and keyword comment automation.
  • TikTok (social_funnel_tiktok): TikTok for Business campaigns and daily metrics from the TikTok Marketing API v1.3, and Lead Generation leads by webhook.
  • LinkedIn (social_funnel_linkedin): campaigns and daily metrics from the LinkedIn Marketing API, and Lead Gen Forms leads by webhook, each one a CRM lead with its UTM source.

The suite installer, vanguard_analytics, installs the core and the three connectors in one click.

Comment-to-DM automation on Facebook and Instagram

The Meta connector runs keyword rules on comments. When a comment matches, Odoo posts a public reply, sends a private message and creates a CRM lead. Keywords ignore case and accents. Rules can apply to every post or to a list of post IDs, and a test button tells you whether a sample comment matches without calling Meta.

Flows can have two steps: the first message carries a button such as "Yes, send it", and Odoo sends the second message when the person taps it. On Instagram you can ask people to follow the account first. Each rule counts how many times it triggered, replied, sent messages, and created leads.

Meta's limits apply: one private message per comment, within 7 days, and more only after the person replies. Comment automation works on Facebook and Instagram only, because TikTok and LinkedIn have no API for private replies to comments.

Built for agencies: one connection per client

Vanguard Analytics is the tool the Vanguard marketing agency uses with its own clients, built by UnderCodes. That shows in how it separates data.

  • Connections. One row per connected ad account, with its client, platform, status and last sync. A connection belongs to a company and a client.
  • Weekly report. One email per client with this week against the previous one, the funnel and the top campaigns, in the language of the person who receives it. It adds up all the connections of that client.
  • Multi-company. Record rules by company work for one database per client or for an agency that runs many clients in one database.
  • Two access levels. Users work with leads, campaigns and metrics. Managers also manage connections and credentials; tokens stay hidden from everyone else.

Enterprise add-ons for the organic side

On Odoo Enterprise with Social Marketing, three add-ons connect Vanguard to organic posts. They do not run on Community.

Organic post metrics and attribution

social_funnel_marketing shows which organic posts brought leads and sales, next to paid results. It saves a daily snapshot of each post's metrics, including posts not published from Odoo: views, reach and engagement on Facebook and Instagram, impressions and clicks on LinkedIn, and plays on TikTok. Posts from the last 90 days update daily, older ones on Mondays. The Vanguard dashboard gets an organic block with totals per network and the 5 posts with the most interactions.

Video, Reels, Stories and TikTok publishing

Odoo Social Marketing publishes text and images. social_funnel_publish adds post types: video, Reels, Stories, TikTok video and TikTok photo carousels of 1 to 35 images. You can write a separate text per network, with limits checked on save, add up to 3 Instagram collaborators and tag public accounts on photos. TikTok gets the options it requires, such as mandatory visibility and the AI-generated label.

Two limits from the networks themselves: until TikTok audits your app, posts only go to private accounts with "Only me" visibility, and trending audio, story stickers, pinned comments and product tags stay in each network's own app because no API offers them.

Comment flows from the post composer

social_funnel_publish_meta adds a comment flow field to the Social Marketing composer. Pick an existing flow or create one; when the post goes live on Facebook or Instagram, its post IDs are added to the flow automatically.

The 8 modules

ModuleTechnical nameWhat it addsEdition
Vanguard Analytics: Social Ads to Sales Funnel Dashboardsocial_funnelCore: dashboard, leads, campaigns, daily metrics, funnel, CRM conversion with UTM, manual webhook, weekly client report. Carries the suite price.Community and Enterprise
Meta Ads, Lead Ads and Comment-to-DM Automationsocial_funnel_metaFacebook and Instagram ads metrics, Lead Ads by webhook, keyword comment automation with two-step flows and Instagram follow gate.Community and Enterprise
TikTok Ads and Leads Connectorsocial_funnel_tiktokTikTok for Business campaigns and metrics, Lead Generation leads by webhook.Community and Enterprise
LinkedIn Ads and Leads Connectorsocial_funnel_linkedinLinkedIn Marketing API campaigns and metrics, Lead Gen Forms leads by webhook.Community and Enterprise
Vanguard Analytics Suitevanguard_analyticsInstaller: core plus the Meta, TikTok and LinkedIn connectors in one click.Community and Enterprise
Video, Reels, Stories and TikTok Publishingsocial_funnel_publishPost types in Social Marketing: video, Reels, Stories, TikTok video and photos, Instagram collaborators and photo tags.Enterprise, needs Social Marketing
Organic Post Metrics and Attributionsocial_funnel_marketingWhich organic posts brought leads and sales, and daily metrics of every organic post.Enterprise, needs Social Marketing
Comment-to-DM Flows in the Post Composersocial_funnel_publish_metaPick or create a comment automation flow while writing a Social Marketing post.Enterprise, needs Social Marketing

Setup: your own apps, your own data

Vanguard Analytics talks to Meta, TikTok and LinkedIn through developer apps you own. Nothing goes through a third-party server: the networks send data straight to your Odoo, and the data stays in your Odoo database.

  1. Create one developer app per network: a Meta Business app, a TikTok Business API app, and a LinkedIn Developers app linked to your company Page.
  2. Register the OAuth and webhook paths on your Odoo's public HTTPS domain, for example https://<odoo-domain>/social_funnel_meta/webhook. Webhooks need that domain reachable from the internet.
  3. Go through each network's review: Meta App Review for Advanced Access (the app must be Live to receive webhooks), TikTok app review, and LinkedIn Marketing Developer Platform approval.
  4. Paste the keys in Odoo Settings, then open Vanguard Analytics, Connections, New: pick the platform and the account, and click Connect.

While an app waits for review, send leads from Zapier, Make or any form to the manual webhook of a connection. A full setup guide in English ships with the modules.

Two things the suite does not do: it does not create or edit ads, which you still build in each network's ads manager, and it does not measure X/Twitter.

Price: USD 349, paid once, for the whole suite

Vanguard Analytics is sold as one suite. The price, USD 349 paid once, sits on the core module, social_funnel. Every other Vanguard module depends on it and has no price of its own.

The Odoo Apps Store shows USD 349 on each listing because each one adds the core to your cart. Whatever combination you install, the store charges the core once, and the other seven modules cost USD 0. Install the ones your edition supports: the core, the three connectors and the installer run on Odoo 19 Community and Enterprise; the three Social Marketing add-ons need Enterprise. The modules come in English and Spanish.

Get Vanguard Analytics

If your ads already bring leads and your team already closes deals in Odoo, Vanguard Analytics connects the two so you can judge each campaign by the revenue it produced.

Get Vanguard Analytics on the Odoo Apps Store for USD 349, paid once. Prefer to install everything at once? Open the suite installer. Individual listings: Meta, TikTok, LinkedIn, organic metrics, publishing and composer comment flows.

Questions before you buy? Write to soporte@undercodes.net and mention Vanguard Analytics.

Have a technology challenge in mind?

Tell us what you are trying to solve. We will help you find the right path, and if there isn't one, we will say so. A person reads every message and replies within one business day.

Let's talk

KODY › SCHEDULE

Book your discovery call

30 min · free ·

Loading times…