Marketing attribution for startups: the smallest setup that works
By Devendra Variya, co-founder of Virling. Published 2026-11-25.
Marketing attribution for startups means knowing which channel brought each paying customer. The smallest setup that works has four steps, in this order: tag the links you share, give each visitor one ID, carry that ID to checkout, and read revenue per channel once a week. Do the first three before your first payment, because a payment made without a visitor ID usually cannot be traced later. Start the weekly reading at around 10 customers, and compare retention and cost at around 100. Skip everything else until then.
The stages are rough markers, not benchmarks. A startup with 10 customers on yearly contracts has different questions from one with 10 customers on a small monthly plan. The order of the steps stays the same.
What to set up at 0, 10 and 100 customers
At 0 customers: do not lose the first ones
There is no revenue to compare yet. The job is to make sure the first payments arrive with a source attached, since you cannot go back and record a visit that was never stored.
- Set up: tagged links, the script on every page, and the visitor ID in checkout. Make one test payment before launch; the launch tracking checklist lists the rest to tag and test.
- Set up: an optional “How did you first hear about us?” at signup. Early customers often arrive through conversations that leave no click; see self-reported attribution.
- Skip: comparing attribution models, revenue targets per channel and weekly reports. With no payments, all of them are empty.
At 10 customers: read, but do not rank
Ten payments are enough to find a broken setup and to notice a channel you did not expect. They are not enough to say which channel is best.
- Set up: a weekly look at revenue per channel, and a check of every Unattributed payment. With ten customers you can open each payment and read the visits before it.
- Set up: one signup goal, so you have a number that moves more often than payments do.
- Skip: cutting a channel because it has no customers yet, moving a budget on one good week, and retention by channel. Too few customers have had time to leave.
At 100 customers: compare cost and who stays
Your larger channels may now have enough customers to compare. Small ones still do not, so keep reading the customer count next to every ratio.
- Set up: retention by channel, time to pay by channel and, if you buy ads, spend per channel next to the revenue credited to it. Once you track spend, the Rule of 40 calculator sets revenue growth against profit margin for the whole business.
- Set up: a second look under first touch, to see which channels introduce buyers. First-touch or last-touch attribution for a SaaS covers the choice.
- Skip: multi-touch weighting, a data warehouse built only for attribution, and statistical models of your media mix. They need more payments than you have, or more upkeep than a small team can give.
Once checkout carries the visitor ID, Virling lists your first payments with the source credited to each, and its Retention page groups customers by the channel of their first payment for when you have enough to compare.
The four steps, in order
Each step depends on the one before it. A weekly report is only as good as the checkout link, and the checkout link only as good as the visits behind it.
1. Tag the links you share
A visit from an email app, a chat or some mobile apps often arrives with no referrer and is counted as Direct. A tag fixes that for the links you control. Write down one set of names before you post anything, all in lowercase, and use it every time. The UTM naming template gives you a table of values to fill in and copy. A tagged launch post can look like this:
https://yourproduct.com/?utm_source=linkedin&utm_medium=social&utm_campaign=launch-2026-11
Do not tag links between your own pages, since the tag replaces the visitor's real source. Ordinary search results cannot be tagged, and do not need to be when the browser sends the search engine as the referrer.
2. Give each visitor one ID
Someone who reads a post on Monday and pays on Friday should be one visitor, not two. A first-party ID in a cookie does that in the same browser. With Virling, one tag before </head> on every page of your site and app stores each visit and sets the virling_vid cookie:
<script defer src="https://app.virling.com/v.js" data-site="yourproduct.com"></script>
The cookie is shared between yourproduct.com and app.yourproduct.com. Cookieless mode sets no cookie, so there is no ID for checkout to carry and those payments are Unattributed. If you ask visitors for consent first, the Until consent setting switches to the cookie once they accept.
3. Carry the ID to checkout
This step links the money to the visit. Connect your payment provider with a read-only key where it offers one, then put the visitor ID in a field on the checkout. For a Stripe Checkout Session your server creates, that is one line:
await stripe.checkout.sessions.create({
client_reference_id: req.cookies.virling_vid,
// ...
});Stripe Payment Links on buy.stripe.com need no code when they are normal links on a page that runs the script. The attribution setup generator lists the exact steps for your site builder and payment provider. If you sell subscriptions, Virling for SaaS covers trials, renewals and where the ID goes for each billing provider: a renewal keeps the channel of the customer's first payment, so getting the first one right is enough.
Then test it. Open your site in a private window from a tagged link, pay, and check that the payment shows that source. Test your setup has the test mode steps for each provider.
4. Read revenue per channel weekly
Pick one day and look at the same things in the same order. It should take ten minutes.
- Unattributed. If its share is growing, fix checkout before you read anything else.
- New customers per channel, as a count. Read it before any ratio.
- Revenue per visitor per channel, over the last 90 days. A single week is too short.
- One action. Write down the one thing you will try next week and the date you will judge it.
In Virling this is the Channels card, the Payments page filtered to unattributed, and a weekly email if you turn it on. How to find which marketing channel pays goes further into the weekly reading. Once a year, the same numbers over twelve months make a marketing year in review by revenue per channel.
How to decide with few payments
Here is a 90-day table for an imaginary startup with ten customers on a $40 plan, first payments only. Every number is made up to show the method, and none is a benchmark. The last column shows revenue per visitor with one customer fewer and one customer more.
| Channel (made-up numbers) | Visitors | Customers | Revenue | Revenue per visitor | One fewer to one more |
|---|---|---|---|---|---|
| Organic search | 800 | 4 | $160 | $0.20 | $0.15 to $0.25 |
| Communities | 1,000 | 3 | $120 | $0.12 | $0.08 to $0.16 |
| 200 | 2 | $80 | $0.40 | $0.20 to $0.60 | |
| Social | 500 | 1 | $40 | $0.08 | $0.00 to $0.16 |
| All | 2,500 | 10 | $400 | $0.16 | $0.14 to $0.18 |
Email looks like the winner at 2.5 times the average. Take away one customer and it ties with organic search. Communities and Social swap places if each moves by one. The table cannot tell you the order of these channels.
A plain warning on small numbers: one customer either way is not the worst case. If a channel brings two customers per quarter on average, and each one buys independently, chance alone will give it a quarter with none about one time in seven. Ranges that do not overlap in this table are not proof of a difference either. Treat anything under about ten customers in a channel as a hint.
You still have to choose what to do next week. These rules hold up with few payments:
- Prefer choices you can undo. “Send two more emails this month” is a fair response to this table. “Stop posting in communities” is not.
- Judge a zero by its visitors. This site turns 10 of 2,500 visitors into customers, or 0.4%. At that rate a channel needs 750 visitors to expect three customers, so none from 200 visitors says very little.
- Widen the range before you split it. Ninety days of channels beats one week of campaigns. Every extra split leaves fewer customers in each row.
- Use signups as a second signal. They are more frequent than payments. If a channel is low on both, that is a better reason to spend less time there than payments alone.
- Read the journeys and ask. With ten customers, their visits and their own answers tell you more than a ratio does.
- Set the limit first. Before you test a paid channel, write down what you will spend and when you will stop, so one early sale does not extend the test.
What this setup will not tell you
- Other devices. A visit on a phone and a payment on a laptop are two visitors, unless something such as a matching email links them.
- Word of mouth. A recommendation made out loud leaves no click. Ask at signup.
- Blocked visits. Visitors who block the script are not recorded. Their payments still count in total revenue, as Unattributed.
- Cause. Credit for a payment goes to one visit. It does not prove the customer would not have paid without it.
Comparing tools for this setup? The best marketing attribution tools are compared on payment sync, self-hosting and price.
Frequently asked questions
When should a startup set up marketing attribution?
Before the first payment. Tagging links, storing a visitor ID and passing it to checkout is a small job, and a payment made without a visitor ID usually cannot be traced later. Reading the results can wait until you have about 10 customers.
Which attribution model should a startup use?
Start with last non-direct, which credits the latest visit before the payment that was not Direct. It is the default in Virling. Look at first touch once you have about 100 customers, to see which channels introduce buyers. Keep one model while you compare weeks.
Can I do startup attribution in a spreadsheet?
Yes, for the first few customers. Keep one row per customer with the payment date, the amount, the tracked source and their own answer to how they heard about you. You still need tagged links and a visitor ID in checkout, because a spreadsheet cannot recover a source that was never stored.
How many customers do I need before I can trust the numbers?
There is no exact line. Below about ten customers in a channel, treat the result as a hint, since one or two customers can change the order. Count customers per channel, not in total: 100 customers across eight channels can still leave most of them small.
Do startups need multi-touch attribution?
Usually not at first. Splitting credit over several visits adds choices to explain and does not add payments. One visitor ID and one simple model answer the early question, which is where paying customers come from.
See which channel brought your first customers
Virling is open source under AGPL. Self-host it free, or use the hosted version with a 14-day free trial. It connects to Stripe, Paddle, Shopify, WooCommerce, Polar, LemonSqueezy, Dodo, Creem and RevenueCat.