Skip to main content
Freshsales → MatomoIntegration guide

Connecting Freshsales to Matomo

Freshsales is Freshworks' CRM, usually bought alongside their support and marketing products, which means contact records arrive from several directions. Matomo can be self-hosted with no third party in the chain, which makes it the one analytics destination where the data genuinely never leaves infrastructure you control. The join between them succeeds or fails on one thing: whether the first-party visitor ID reaches the Freshsales deal before the conversion happens, because Matomo can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Freshsales won deals as Matomo goals, joined on visitor ID

Read Matomo's visitor ID on the form page into a hidden field so it lands on the Freshsales contact, then copy it to the deal. On won, the workflow webhook calls your server, which posts a goal conversion with revenue to the Matomo HTTP Tracking API. Send only deals carrying a visitor ID, and check past-timestamp handling and report re-processing.

Matomo suits a B2B company that wants deal revenue kept on its own servers, and that is a real reason here: sending contract values to a third-party analytics vendor is something some sales teams object to. The join is Matomo's visitor ID. Read it from the tracker on the form page and write it into a hidden field so it lands on the Freshsales contact, then copy it to the deal by workflow.

When the deal goes won, the workflow webhook calls your server, which posts to the Matomo HTTP Tracking API with that visitor ID and either a goal conversion with custom revenue or an ecommerce order using the Freshsales deal ID as the order ID. A goal usually reads better for B2B, since ecommerce reports assume products and carts. Deals close weeks after the visit, and Matomo attributes the conversion to the referrer stored for that visitor; check how your instance handles requests with a past timestamp and whether old reports need re-processing to show them.

Contacts created from Freshdesk tickets, or entered by reps after a call, have no visitor ID, and their deals arrive as new direct visitors. Send only deals that carry a visitor ID, and report the share that do. That share is the ceiling on what Matomo can tell you about marketing-sourced revenue.

Freshsales → Matomo · what breaks

Why this join usually fails — Freshsales → Matomo

  1. 01

    The first-party visitor ID never reaches Freshsales

    Contacts can originate in Freshdesk, in Freshmarketer, or in Freshsales itself, and a custom field populated on one path is empty on the others. Support-originated contacts in particular carry no marketing context at all.

  2. 02

    Contacts arriving from the support product

    In a Freshworks stack, existing customers raising tickets create contacts that look identical to new leads. Counting them credits acquisition for your own support volume.

  3. 03

    Owning the pipeline means owning the outage

    The advantage is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.

  4. 04

    Nothing reconciles afterwards

    Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.

Freshsales → Matomo · the fix

What working looks like — Freshsales → Matomo

  • The first-party visitor ID on every deal

  • Conversions arriving in Matomo

    The event lands in your own database and is queryable directly, including the raw log, which most analytics products do not expose.

  • Reconciled against the source

Freshsales → Matomo · architecture

How Freshsales and Matomo actually connect

  1. 1

    Freshsales holds the truth

    Freshsales runs its own lead scoring and contact lifecycle stages, which are useful internally and are not conversion events. Only the deal is money.

  2. 2

    Matomo needs a click to match

    The site ID, the visitor identifier and the event or ecommerce order. Self-hosted instances additionally need the tracker endpoint reachable and the database keeping up, which hosted tools do not fail at.

  3. 3

    The identifier is the bridge

    The first-party visitor ID, captured at the visit and carried into the Freshsales deal.

  4. 4

    The event source decides reliability

    Fire on the transition to won, carrying the deal value. Not on lead score thresholds, which are an internal signal.

  5. 5

    Deduplication at the destination

    Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.

Freshsales → Matomo · normal or broken

Working vs. broken, side by side — Freshsales → Matomo

Normal, not a fault

  • The first-party visitor ID present on the deal

  • Sent from a Freshsales workflow webhook on deal stage change

  • Deduplicated correctly

    Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.

  • Reconciles with the source

Actually broken

  • The first-party visitor ID missing on most records

    Contacts can originate in Freshdesk, in Freshmarketer, or in Freshsales itself, and a custom field populated on one path is empty on the others. Support-originated contacts in particular carry no marketing context at all.

  • Sent from the browser

    In a Freshworks stack, existing customers raising tickets create contacts that look identical to new leads. Counting them credits acquisition for your own support volume.

  • Counted twice, or not at all

    The advantage is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.

  • Nobody has reconciled it

Freshsales → Matomo · diagnose

Diagnostic order — Freshsales → Matomo

  1. 01

    Count deals carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Check what share of deals originated from support rather than marketing

    Only marketing-originated deals should reach an ad platform.

  4. 04

    Check tracker reachability and database lag before debugging any tag

    On self-hosted analytics the answer is infrastructure more often than instrumentation.

  5. 05

    Read the match rate, not the success message

    Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.

Freshsales → Matomo · prove

How it gets proven — Freshsales → Matomo

Source of truth

Freshsales deals marked won by close date, at their deal values.

  • The first-party visitor ID confirmed present on a live deal.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • A deal confirmed to carry the identifier from the original web enquiry rather than from a support ticket.

Freshsales → Matomo · free audit

What we check in the free audit

  • Count deals carrying the first-party visitor ID
  • Follow one real conversion end to end
  • Check what share of deals originated from support rather than marketing
  • Check tracker reachability and database lag before debugging any tag
  • Read the match rate, not the success message

Checked against

Freshsales deals marked won by close date, at their deal values.

Get my free conversion tracking audit

Free30 minutesNo obligation

Freshsales → Matomo · when not to buy

When you don't need this — Freshsales → Matomo

  • Measure identifier coverage yourself first — pull your last hundred deals and count how many carry the first-party visitor ID.
  • If most of your deals come from existing customers via support, paid attribution has very little to reach.
  • If you have no privacy or ownership requirement and no team to run it, a hosted product removes the only real cost of this one.

Freshsales → Matomo · what we deliver

What gets built — Freshsales → Matomo

  • Identifier capture into Freshsales

    Create the custom field on both contact and deal, populate it at contact creation from the web form, and copy it onto the deal via workflow.

  • Event source: a Freshsales workflow webhook on deal stage change

    Fire on the transition to won, carrying the deal value. Not on lead score thresholds, which are an internal signal.

  • Dispatch to Matomo

    The Matomo HTTP Tracking API, posted server-side from your order system.

  • Reversals where they exist

    Deals reopened and later lost should not leave a conversion standing.

Written guarantee

95%+ tracking accuracy

Measured against Freshsales deals marked won by close date, at their deal values.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Freshsales → Matomo questions, answered

Store the Matomo visitor ID on the Freshsales contact at form submission, then send the won deal through the Matomo HTTP Tracking API as a goal with revenue or an order with the deal ID.

Free · 30 min

Get Freshsales and Matomo joined properly

Free30 minutesNo obligation