Sourcetrail for SaaS companies: attribute sign-ups and paid conversions server-side

Connect marketing visits to trial sign-ups and later paid conversions with identify events, hashed user ids and five attribution models.

Use case · Updated · by the Sourcetrail team

In a software business, the visit that brings a sign-up and the moment money arrives can be weeks apart, on different devices, often after the user has logged in. Ad platforms see the click; your backend sees the payment. Sourcetrail joins them: it records the source of each visit without cookies, links visitors to your users with an identify event, and attributes both sign-ups and paid conversions to channels.

The setup for a SaaS funnel

  1. Snippet on your marketing site and app. One script tag in the <head>. No cookies, no fingerprinting; a random visitor id in localStorage.
  2. Identify at sign-up. When someone signs up, send an identify event from your backend with the visitor id (read in the browser with sourcetrail('id')) and your user id. User ids and emails are hashed before storage.
  3. Conversions from your backend. Send a signup conversion at sign-up and a purchase (or subscription_started) conversion when the first payment succeeds. Later conversions can be sent with only the user id or email; the identify event lets Sourcetrail find the visits that came before.
  4. Idempotency keys. Use your own ids, such as signup-<user id> and invoice-<invoice id>, so webhook retries and job re-runs are recorded once.

Events can be sent one at a time or up to 100 per request; each comes back as accepted, duplicate or rejected with a reason. The occurred_at field lets you send events up to 90 days back, which helps when you add Sourcetrail to an existing product.

Reading the results

Compare channels for sign-ups and for paid conversions separately. A channel that brings many sign-ups and few paying customers looks very different under each lens. The five models show how the credit shifts:

  • First touch shows which channels introduce people to the product.
  • Last non-direct ignores the "typed the URL to log in" visits that are common in SaaS.
  • Position-based (40% first, 40% last, 20% in between) values both discovery and the final push.

Set the lookback window to match your sales cycle: a self-serve product with a 14-day trial needs a shorter window than a product sold after demos. The attribution models article explains each model and how sessions are defined.

Spend, CPA and ROAS

Enter ad spend per day, channel and campaign, or import your ad platforms' CSV exports. Sourcetrail then shows cost per acquisition and return on ad spend per channel and campaign. For subscriptions, ROAS on the first payment understates the value of a customer; read it alongside your own retention data.

Keeping campaign data clean

Attribution is only as good as the tags on your links. Agree a UTM naming scheme for launches, newsletters, partner posts and ads, and keep it in one place. Our UTM tagging guide suggests one. Channel rules in Sourcetrail are editable and re-classify past visits, so fixing a naming mistake doesn't lose history.

Privacy for your users

IP addresses are never stored; Do Not Track and Global Privacy Control are honoured; consent mode holds all tracking until your banner says yes. Raw visit data is deleted after the retention period you choose (30 to 1,095 days). You can export everything as JSON.

Limits worth knowing

  • No automatic connection to ad accounts yet; spend comes from manual entry or CSV.
  • Cross-device journeys connect only when the user logs in (through identify).
  • People who block scripts or opt out aren't counted, so totals will be lower than your billing system's.

Plans

Free covers 1 site and 10,000 events a month, enough for an early-stage product's marketing site and sign-up events. Pro is $99 a month excluding VAT for 20 sites and 1,000,000 events. Every recorded pageview and server-side event counts once; duplicates and dropped bot hits don't.

Try Sourcetrail free

Privacy-respecting marketing attribution: UTM tracking, server-side conversions, channel reports and ROAS. The Free plan needs no card; you can export or delete your data any time.