Skip to content
Revenue attribution

Revenue attribution: stop optimizing for traffic you can't bank

Linqry's revenue attribution attaches each payment to the source, campaign tag, country and device of the visit it came from. Pageviews tell you what got attention; revenue attribution tells you what got paid for.

Revenue by source, last 30 days
google.com$1,240
(direct)$486
producthunt.com$271
newsletter (utm_source)$174

Illustration with sample numbers. See real revenue breakdowns in the live demo.

What you get

One number attached to an event

Pass a revenue amount to window.linqry(), or POST it from your backend to /api/track or /api/revenue with the site's write key. No separate billing integration.

Broken down by what sent the buyer

The Insights page shows revenue, buyers and conversion rate by referrer, UTM source and country, and revenue share by device, OS and browser.

Attribution follows the event

A browser revenue event carries the referrer and UTM parameters of the visit it happened in. A server-side event carries exactly the url and referrer you send with it, so pass the ones you captured at signup.

Server-side for the money that matters

Fire the event from your Stripe or Razorpay webhook so revenue is recorded even when the browser closed before the redirect. Browser-sent revenue is capped per event and treated as untrusted.

What revenue attribution software does

Revenue attribution connects money to the traffic that produced it. Instead of "Product Hunt sent 3,000 visitors", you get "Product Hunt sent 3,000 visitors and $271", which is the number you need to decide where next month's effort goes.

In Linqry, revenue is part of the same cookieless analytics you already use for traffic. There is no separate data warehouse, no ad-platform connection and no per-user profile: a revenue amount is a field on an event, and every report that can count events can also sum their revenue.

How to send revenue

From the browser

Pass the amount in the smallest currency unit (cents) as the third argument. This is the quickest way to start, for example on a thank-you page:

window.linqry('purchase', { plan: 'pro' }, 4900); // $49.00

Anyone can call window.linqry() from your page, so browser revenue is capped per event and should be treated as an estimate.

From your backend

Send revenue where the payment is actually confirmed, such as a payment webhook. Authenticate with the site's write key, shown on the Install page. A server-side event carries exactly the url and referrer you send, so include the landing URL (with its UTM parameters) you stored at signup if you want the sale credited to a channel. Without them it is reported as direct.

curl -X POST https://linqry.com/api/track \
  -H 'authorization: Bearer YOUR_WRITE_KEY' \
  -H 'content-type: application/json' \
  -d '{
    "siteId": "YOUR_SITE_ID",
    "event": "subscription-started",
    "url": "https://yourdomain.com/pricing?utm_source=newsletter",
    "revenue": 4900
  }'

The server-side revenue tracking guide shows how to capture and store the landing URL, and the revenue docs list every field.

Where you see revenue

  • Dashboard: total revenue and revenue per visitor in the KPI strip, revenue bars on the main chart, and visitors and revenue per channel (Direct, Search, Social, Referral, Paid, Email).
  • Insights: average daily revenue, conversion rate, the revenue-per-visitor trend, top revenue and top conversion by country, referrer and UTM source, and revenue share by device, OS and browser.
  • Events that lead to a sale: Insights lists the custom events whose visitors most often went on to pay, and a day-of-week by hour heatmap of when purchases happen.
  • One campaign at a time: add ?utm_campaign=spring-launch to the dashboard URL and every number on it, revenue included, covers that campaign only.

Revenue is reported per event and attributed by source, campaign tag and visitor attributes. There is no revenue-by-page report.

What Linqry attributes and what it doesn't

Linqry uses the source of the visit in which the sale happened. In attribution terms that is close to last-touch attribution, scoped to one day, because visitor IDs rotate daily and nothing links Monday's visit to Wednesday's purchase.

  • A buyer who clicked a newsletter link last week and comes back directly today to pay is, from the browser's point of view, a direct visitor. Send the stored landing URL from your backend to credit the newsletter.
  • There is no multi-touch model, no ad-platform cost import and no ROAS calculation. Linqry shows what each source earned, not what it cost.
  • Amounts are stored as sent, with no currency conversion. Use one currency per site.

Who it's for

Small teams who sell online and want to know which channels pay without stitching together an analytics tool, a spreadsheet and a payments dashboard. SaaS founders send renewals and upgrades from their billing webhook; online stores send order totals from the order-confirmed hook.

Frequently asked questions

Does Linqry connect to Stripe directly?

No. There is no Stripe or Razorpay integration to install. You send one HTTP request from the webhook you already handle, which also means it works with any payment provider.

Why does a sale show up as direct?

A server-side event carries only the url and referrer you send. If your backend doesn't pass the landing URL it stored at signup, the event has no source and is reported as direct.

Can I attribute revenue to a funnel?

Funnels count visitors, not money. Use an event step such as purchase to see how many visitors reached the sale, and the Insights page to see what those sales were worth by source.

See which of your channels actually pay

No card required · 30-day trial · No cookies