Skip to content
Use cases

Attribute sales from funnel tools to your ads

Attribute leads from Heyflow, Perspective, OnePage and Typeform and purchases from Digistore24 and CopeCart to the right ad, across iframes and other domains.

The problem

The ad leads to your page, the form runs in a funnel tool's iframe, and checkout happens on Digistore24 or CopeCart. Every switch between domains loses the trail to the click, and the sale ends up without a source.

How to do it

  1. Add the script everywhereAdd the TSO script to your page and, where possible, to the funnel. An embedded funnel takes over the visitor ID of the page it runs on.
  2. Connect your domainsIn the project settings, switch on the handoff between domains and enter all the project's domains. Links between them then carry the visitor ID.
  3. Connect the funnel toolAdd Heyflow, Perspective, OnePage or Typeform under "Integrations" and enter the webhook URL shown in the tool.
  4. Connect checkoutFor Digistore24 and CopeCart enter the IPN URL, for Stripe connect the account. Payments and refunds come in automatically.
  5. Check a test purchaseTrigger a test lead and a test purchase and check in TSO that both are attributed to the same person and campaign.
Acme Inc.acme-realty.comSample data
Overview
Last 30 daysvs. previous periodLast non-direct click · 90 days
Spend
€18,420
+4 %
Leads
412
+18 %
CPL
€44.71
−12 %
Revenue
€74,000
+23 %
ROAS
4.02
+0.6
Revenue and spend per day
RevenueSpend

Three ways to keep the trail

  • Iframe bridge: if the funnel runs in an iframe on your page and has loaded the TSO script, it asks the page for the visitor ID and takes it over.
  • Handoff between domains: links between your project's domains carry the visitor ID when the handoff is switched on in the project settings.
  • Placeholders: if {{LT_VISITOR_ID}} is the value of a hidden form field or __LT_VISITOR_ID__ is in a link, the script fills in the visitor ID. Webhooks return it as lt_visitor_id.

If none of these apply, TSO matches by email and phone. Whatever can't be matched shows as "unattributed" in your reports instead of being credited to a campaign.

Report purchases to the platforms

Once you allow purchases in your destinations' send rules, TSO reports them with revenue to Meta, Google, TikTok and others. Campaigns then optimise for buyers instead of opt-ins.

The result

Leads from the funnel and purchases from checkout land on the same person as the ad click. You see revenue per campaign and report purchases back to the ad platforms.

Common mistakes

Works with

  • Heyflow
  • Perspective
  • OnePage
  • Typeform
  • Digistore24
  • CopeCart
  • Stripe
  • Webhook

Frequently asked questions

How does TSO attribute a purchase?

By email, phone or visitor ID. If the buyer's email already exists as a lead, the purchase lands on that person and with it on their click.

What about funnel tools that aren't connected directly?

They send their data by generic webhook, and you map the fields in the app. With the visitor ID placeholder in a hidden field, the ID comes back too.

Are refunds deducted?

Yes. Refunds from Digistore24, CopeCart and Stripe count negative, revenue is net.

More use cases

Set it up in your project.

Hosted in Germany · Built in Austria