Revenue attribution for coaches and consultants
Clients find coaches, consultants and freelancers through a podcast guest spot, a LinkedIn post, a newsletter or a referral, then pay for a session, a package or a retainer through Stripe. Virling joins each Stripe payment to the visits before it, so you see which channel, source and campaign brought each paying client, not just the clicks. Add the script to your site, connect Stripe with a read-only key, and Payment Links are tracked with no code. Open source, one Rust binary, or hosted.
A client rarely books after one click. Someone hears you on a podcast, reads a few of your LinkedIn posts, joins your newsletter, and pays for a package weeks later. Stripe records the payment, your analytics records the visits, and neither knows about the other. Virling joins them: a visitor ID set when someone lands, passed into checkout, and matched to that visitor's sessions when the payment comes in.
What to track
- Your sales page. Put the Virling script on the pages that describe your sessions, packages and retainers. Every visit gets a channel, source and campaign from its first pageview.
- Your booking or checkout link. A Stripe Payment Link on that page carries the visitor ID into checkout with no code. If clients book a call first, send a goal when they click the booking link, such as
virling("goal", "booking"), and the Goals tab counts bookings. Virling does not read your calendar or scheduling tool. If that tool is Calendly, Calendly UTM tracking shows how to see which channel books the calls that pay. - Payments. Session fees, packages and retainer charges from Stripe, each credited to the visit before it. Retainers billed as Stripe subscriptions keep the channel of the first payment on every renewal.
- Refunds. Refunds lower a payment's revenue once Virling reads them, and the Channels card shows the share of each row's payments that were refunded.
Set it up in three steps
- 1. Add the script. Put one tag in the
<head>of your site. The app shows the exact tag for your site. It records the referrer and UTM tags of every visit against a visitor ID in the first-partyvirling_vidcookie. - 2. Link checkout to the visit. Leave your Payment Links as normal
<a href>links on a page with the script, and the script addsclient_reference_idwith the visitor ID when someone clicks. For a Checkout Session you create on your server, pass thevirling_vidcookie asclient_reference_id. See Stripe Payment Link UTM tracking. - 3. Connect Stripe. Create a restricted key with Read on Charges, Checkout Sessions, Customers, Events, Invoices, Subscriptions and PaymentIntents, and paste it into Virling. Secret keys are refused. The full setup is on the Stripe integration page and in the Stripe docs. For invoices, deposits and retainers, see Stripe for coaches and consultants.
Tag the places clients find you
Each visit gets one channel: Paid, Email, AI, Organic search, Communities, Social, Referral or Direct. A visit from linkedin.com counts as Social, and a link tagged utm_medium=newsletter or email counts as Email. Podcast apps and email clients often open links with no referrer, and with no tag those visits are Direct. Give each guest spot, post and newsletter issue its own utm_campaign, or make a tracked link: a short URL that adds the UTM tags for you, with its own clicks, visitors and revenue. Podcast revenue tracking covers short links you can say out loud.
Referrals by word of mouth are hard to credit: someone who hears your name from a friend and types your address is Direct, and one who searches your name is Organic search. To credit a referrer, give them a link with their own value in utm_source or ref. See referral program tracking.
What the dashboard shows
- Revenue by channel, source and campaign. The Channels card lists visitors, revenue and revenue per visitor for each row, so a podcast that sent few visitors and two retainers stands apart from a post that sent many visitors and no clients.
- Landing page and Before paying. The first page of each visit, and the last page a client saw before paying.
- Recent customers. The last 10 paying clients with their first source, visits before paying and time to convert. Click one for their timeline, with the pages they viewed and their goals.
- Time to pay. For each channel with at least three first payments in the range, the median time from first visit to first payment.
- Matched revenue. The share of revenue matched to a visit, and why the rest was not.

Each site has one attribution model. Last non-direct is the default: it credits the latest session in the window that was not Direct. First touch credits the earliest, and last touch the visit right before the payment, Direct included. Only sessions inside the lookback window before the payment count; choose 30, 60, 90 or 365 days, and the default is 90. If clients follow you for months before they hire you, a longer window keeps their first visit in reach.
What to know
- An invoice or Payment Link a client opens from an email or a DM never passes through a page with the script, so the payment has no visitor ID and is Unattributed. It still counts toward revenue.
- Payments made before the visitor ID was passed into checkout are Unattributed.
- If someone hears you on their phone and pays later on a laptop, the two browsers are separate visitors.
- Virling does not read discount codes, your calendar or your CRM.
Open source, hosted or on your server
Virling is open source under AGPLv3, with the source on GitHub. Run it yourself as one binary with embedded storage, see self-host, or let us host it.
Frequently asked questions
How do I see which podcast or LinkedIn post brought a paying client?
Give each podcast guest spot, LinkedIn post and newsletter issue its own link with its own utm_campaign, or share a tracked link. Put the Virling script on your site and connect Stripe. Each payment is joined to the visits before it, so the Campaign tab shows the revenue each spot, post or issue brought.
Do I need code to track Stripe Payment Links?
No. With the script on the page, it adds the visitor ID to every buy.stripe.com link as client_reference_id when someone clicks. The link must be a normal link on a page that runs the script. For a Checkout Session you create on your server, pass the virling_vid cookie as client_reference_id.
Can Virling track discovery calls booked through a scheduling tool?
Virling does not read your calendar or scheduling tool. Send a goal when someone clicks your booking link, such as virling("goal", "booking"), and the Goals tab counts them. Revenue comes only from payments in your payment provider.
Why does a client who paid my invoice show as Unattributed?
A client who pays an invoice or a Payment Link opened from an email or a DM never passes through a page with the script, so the payment has no visitor ID. It still counts toward revenue. Send clients to a page on your site that holds the link when you can.
Are retainers and payment plans counted?
Yes, when they are Stripe subscriptions. A charge whose invoice has billing reason subscription_cycle is marked as a renewal, and renewals keep the channel of the client's first payment.
Full reference: Stripe, Link checkout to visits, Goals and Unattributed revenue in the docs. Plans and the free trial: pricing.
Related reading
- Stripe Payment Link UTM tracking: see which source sold
- Podcast revenue tracking: which shows bring paying customers
- Newsletter revenue tracking: see which issue brings sales
- Referral program tracking: see the revenue referred customers bring
Integrations: Stripe. Selling courses or cohorts too? See online courses.