See which channel brings your paying members on Stripe.
For membership sites and paid communities that bill members through Stripe. Virling ties each new member and every renewal to the channel that brought them, so you compare channels by the members who pay and keep paying, not by visits or signups. Open source under AGPL, hosted or self-hosted.
Stripe knows who pays each month, but not the podcast, newsletter or forum thread that brought them, and the renewal in month six never touches your site at all. Virling credits a member's first payment from the visits before it and every later charge from that first payment, as Renewals explains.
What you get
- Each new member credited to a channel. The join is credited under your attribution model, with the referrer, campaign and landing page of the visit that brought the member.
- Trials that turn paid. A free trial started through Checkout is kept apart from payments and never counted as revenue or a member. When the trial converts, its first charge is credited to the visit before the trial if it carries no visitor ID of its own.
- Renewals that keep the first channel. A charge whose invoice has billing reason
subscription_cycleis a renewal. It copies the channel, referrer, campaign, landing page, country and device of the member's first payment, matched by Stripe customer ID, even years later. Upgrades and plan changes (subscription_update) count as renewals too. - Cancellations seen from Stripe. Subscription status is read once an hour with the same key. A member is still paying while their subscription is
active,trialingorpast_due, and a subscription cancelled at the end of its period stays live until the period ends. - Which channel brings members who stay. The Retention page groups members by the channel, referrer and campaign of their first payment, with members acquired, how many are still paying, net LTV, refund rate and 30-day churn. A channel that sends many members who leave after a month stands out against one whose members stay for a year.
- MRR. The list price of live subscriptions per month in USD shows on Latest payments. A refunded month or a lost dispute lowers that charge's revenue and shows in each channel's refund rate.
See which channel brings members who stay
For membership sites and paid communities that bill through Stripe. Virling is open source under AGPL: self-host it free, or use the hosted version with a 14-day free trial.
Set it up
Install the script on every page including your join page, connect a read-only restricted key, and set client_reference_id to the virling_vid cookie on the subscription Checkout Session, or use a Payment Link that the script tags for you. Key permissions, the 90-day import and how to test with a fresh customer are in Stripe in the docs.
await stripe.checkout.sessions.create({
mode: "subscription",
client_reference_id: req.cookies.virling_vid,
// ...
});Members often arrive from links shared in Discord, Slack or newsletters with no referrer. Tag the links you control with utm_source and utm_campaign; community revenue tracking walks through it. If you also sell courses to members, selling courses on Stripe covers payment plans and refunds. To check a retention figure by hand, use the customer retention rate calculator.
Reading it in the first week
Most charges in the first week can be renewals of members who joined before you connected, so look at new members apart from the rest, on the dashboard with the range on Since tracking started.
- Are new members reaching a visit? Read the Matched revenue line, then filter the Payments page by unattributed. Rows marked Renewal are usually members from before you connected. An Unattributed row that is not a renewal and was paid after you set up checkout is a join that lost its visitor ID. It decides whether to fix the join page or only wait for new members.
- Where did each new member come from? Open the Recent customers card. It lists the last 10 paying customers with their first source, visits before paying, time to convert and a short path, and leaves renewals out. It decides where to show up again and which shared links still need UTM tags.
- Which channel sends people who join? The Channels card ranks channels by revenue per visitor. A loud channel with a red chip can wait; a quiet one with a green chip deserves your next post or partner mention.
Leave retention for later. 30-day churn covers customers whose first payment was more than 30 and at most 60 days ago, so members who join in your first week are not in it yet. Do not cut a channel on churn before they are.
What stays Unattributed
On a membership site most Unattributed payments are renewals, and they still count toward revenue:
- Renewals of older memberships. The first payment is older than the 90-day backfill, or it is Unattributed itself. There is nothing to fix: new members and their renewals are credited.
- Trials that started before you connected. Stripe events are read from the time you connect, so an earlier trial start is not seen and its first charge is usually Unattributed. Trials that start through Checkout after that are covered.
- Members who moved from another provider. Their first Stripe charge is a new customer with no visit unless it carries a visitor ID, so their renewals stay Unattributed too.
- Joins without the ID. The subscription Checkout Session carried no
client_reference_idormetadata.virling_vid. Ifclient_reference_idalready holds your member ID, keep it and put the cookie inmetadata.virling_vid. - Join links shared in the community. A Payment Link opened from Discord, Slack or an email carries no visitor ID. Share your join page and link to
buy.stripe.comfrom there.
If people make a free account before they pay, send the email as an identify event at signup, and their first charge can be matched on billing or receipt email. See Recover payments by email.
What to know
- Members whose first payment is older than the 90-day backfill are left out of the Retention page. Channel numbers fill in as new members join.
- A member who cancels and returns with the same Stripe customer keeps the channel of their first payment, however long they were away.
- Until a site has 60 days of payments, the Retention page leads with refund rate and 30-day churn instead of LTV.
- MRR leaves out subscriptions with a metered or tiered price, and is the list price before discounts and tax.
Open source
The code is AGPLv3 on GitHub, so a community can run Virling on its own server through self-hosting or use ours. Renewals, trials and subscription status work the same either way; see Stripe in the docs.
Frequently asked questions
Which channel brings my paying members on Stripe?
Connect Stripe to Virling with a read-only restricted key and pass the visitor ID into Checkout. Each member's first payment is credited to the visits before it, and every renewal keeps that channel, so the Channels card and the Retention page show which channels bring members who pay.
How are Stripe membership renewals attributed?
A charge whose invoice has billing reason subscription_cycle is a renewal. It takes the channel, referrer, campaign, landing page, country and device of the member's first payment, matched by Stripe customer ID, even years later. Upgrades and plan changes keep that channel too.
How does Virling handle cancelled memberships?
Subscription status is read from Stripe once an hour with the same read-only key. A member counts as still paying while their subscription is active, trialing or past_due, and a subscription cancelled at the end of its period stays live until the period ends. 30-day churn shows the share of members who joined 30 to 60 days ago with no payment and no live subscription in the last 30 days.
Which channel gets credit when a free trial turns into a paid membership?
The channel of the visits before the trial started. A trial start is kept apart from payments and never counted as revenue, a payment or a customer. If the trial started through Checkout after you connected Stripe, its first charge is credited to the visit before the trial when it has no visitor ID of its own.
Why are renewals of older members Unattributed?
A renewal copies the channel of the member's first payment, and that payment must be in Virling. Payments older than the 90-day backfill are not imported, and those from before the script was on your site are usually Unattributed. A renewal then falls back to its own visitor ID, which renewals rarely carry. It still counts toward revenue.
What happens when members move to Stripe from another provider?
Customers are matched per provider by the provider's customer ID, so a member who moved counts as two customers. Their first payment on Stripe does not take the channel of their first payment on the old provider. It needs a visitor ID of its own to be credited, and later Stripe payments then keep that channel.
Which channel gets credit when a cancelled member rejoins?
The channel of their first payment, however long they were away, when they rejoin with the same Stripe customer ID. The visit that brought them back is not credited unless the first payment is Unattributed and the new charge has its own visitor ID. With a new customer ID they count as a new member, credited from their own visits.
Full guides: Stripe in the docs, Renewals and Retention by channel.