Revenue attribution: see which traffic sources pay

Revenue attribution shows which traffic sources bring paying customers, not just visitors. Onfus credits each Stripe payment to the source, campaign, page and country of the customer's first visit, on every plan from $9 a month.

By the Onfus teamChecked 17 November 2026

Attribution model
First touch
One answer per payment
Connects to
Stripe
Read-only restricted key
History imported
90 days
Payments and refunds
Updates
Every 6 hours
Instant with a webhook

Example: one customer, two visits

What happenedCredit
Day 1
Visit from x.com
First touch
Day 8
Visit from Google
None
Day 8
Stripe payment, $49
$49 to x.com

Made-up numbers. Refunds are subtracted from the source the payment was credited to.

What is revenue attribution?

Revenue attribution connects money to marketing. Instead of stopping at “the newsletter sent 400 visitors”, it answers “the newsletter brought $1,200 of new subscriptions”.

Every attribution tool makes two choices: how it ties a payment to a visitor, and which of that visitor's visits gets the credit (the attribution model). Onfus ties payments through Stripe metadata and gives the credit to the first visit.

How does Onfus attribute Stripe revenue?

01

Connect Stripe

Paste a restricted key with Charges: Read in site settings. Onfus imports the last 90 days of payments and refunds, then syncs every 6 hours, or instantly if the key may create a webhook.

02

Turn on the visitor cookie

Add data-revenue to the Onfus script tag. The tracker keeps a first-party onfus_visitor cookie for a year, so a purchase weeks later still finds its first visit.

03

Pass it into Stripe

Add onfus_visitor_id to the metadata of your Checkout Session, Payment Intent or subscription. Onfus reads it from the payment and credits the first pageview with that key.

Which attribution model should you use?

The model decides which visit gets credit when a customer came more than once. For a customer who found you on X, came back from Google a week later and then paid, the models disagree:
First touch
Who gets the creditX, the first visit
Good forFinding channels that bring new customers
Last touch
Who gets the creditGoogle, the last visit before paying
Good forFinding what closes the sale
Linear
Who gets the creditSplit 50/50 between X and Google
Good forSeeing every channel involved
Position-based
Who gets the credit40% first, 40% last, 20% to visits in between
Good forWeighting discovery and the close
Data-driven
Who gets the creditA model trained on your conversion paths
Good forSites with enough conversions to train it

Onfus uses first touch: one clear answer per payment, and it works with any amount of traffic. Google Analytics 4 offers data-driven, paid and organic last click, and Google paid channels last click; it removed first click, linear, time decay and position-based in November 2023.

How do analytics tools compare on revenue?

Onfus
Where revenue comes fromStripe payments and refunds, credited to the first visit
PlanEvery plan, from $9/month
Google Analytics 4
Where revenue comes fromEcommerce events you send with the Google tag
PlanFree
Plausible
Where revenue comes fromRevenue values sent with custom events
PlanBusiness, from $19/month
Fathom
Where revenue comes fromEvent values you send with each event
PlanPaid only, from $15/month
Hotjar
Where revenue comes fromRevenue attribution on Experience Platform Pro
PlanPrice on request

What are the limits?

Stripe only

Other payment providers are not connected yet.

First touch only

There is no last-touch or multi-touch view.

One cookie

Default Onfus tracking is cookieless; revenue attribution adds the first-party onfus_visitor cookie. Payments without it count as Direct.

One device

A visitor who browses on a phone and pays on a laptop has two keys, so the payment goes to the laptop visit.

Safari storage

Since 24 March 2020 Safari caps script-written storage at 7 days without a visit, which can shorten the window for slow buyers.

No free plan

Onfus is paid only. Solo starts at $9 a month for 10k events. If you need analytics at $0, this is not the tool.

Card required for the trial

The 14-day trial asks for a card up front. Nothing is charged if you cancel before it ends, but you can't try it without one.

No self-hosting

Onfus is a hosted service only. There is no open-source build to run on your own server.

Comparing with a specific tool? See Onfus vs Google Analytics or Onfus vs Plausible.

Frequently asked questions.

What is revenue attribution?

Crediting each payment to the marketing touchpoint that brought the customer: a source like Google or a newsletter, a campaign, or a landing page.

Which attribution model does Onfus use?

First touch. Each payment goes to the first pageview recorded for that customer's visitor key, so it shows which channels find new customers.

Does Onfus work with payment providers other than Stripe?

No. Revenue attribution connects to Stripe only. Paddle, Lemon Squeezy and others are not supported yet.

Is the Stripe key safe to share?

Onfus only accepts restricted keys (rk_…) and needs Charges: Read. Nothing it asks for can move money, and the key is encrypted at rest.

Do I need a cookie banner for revenue attribution?

Possibly. Default Onfus tracking sets no cookies; revenue attribution adds one first-party onfus_visitor cookie, so check what your consent rules require before you turn it on.

Are refunds subtracted?

Yes. Revenue in Onfus is net: refunds come in from Stripe and are subtracted from the source the payment was credited to.

Where do these facts come from?

Read on 17 November 2026. Onfus details come from the product itself; see pricing for plans.

Know what to fix by tomorrow.

Paste one line and start tracking in a minute. See where visitors drop off and what to fix. Free for 14 days, no cookie banner.