See which channel brings your Shopify subscribers.
For Shopify stores that sell coffee, supplements or boxes on subscription. Virling ties each first order and every Shopify Subscriptions renewal to the channel that brought the subscriber, so you compare channels by the subscribers who keep paying, not by first orders alone. Open source under AGPL, hosted or self-hosted.
A renewal order is created without anyone visiting your store, so it has no ad, post, email or search result of its own to credit. Virling keeps the link from the start: the visitor ID that Shopify copies from the cart onto the first order ties that order to a visit, and its channel is carried to every renewal after it, as the Shopify docs explain.
What you get
- Each first order credited to a channel. The subscriber's first order is joined to the visits before it, with its channel, source, UTM campaign and landing page, so the subscription is credited to what brought the subscriber in.
- Renewals that keep the first channel. An order from a Shopify Subscriptions renewal (source
subscription_contract) is marked as a renewal and keeps the channel of the customer's first payment, matched by Shopify customer ID. If someone subscribed after a visit from Reddit, every renewal is credited to that visit, even years later. See Renewals. - Retention by channel. The Retention page groups subscribers by the channel of their first payment, so a channel that brings many first boxes and few second ones stands out next to a smaller channel whose subscribers stay. Subscription status is not read from Shopify, so who is still paying is decided by payment recency.
- Lifetime value by channel. Every payment a subscriber made so far, net of refunds, counts toward the channel that brought them. How to read it is in LTV by acquisition channel.
Set it up
Paste a read_orders-only Admin API token from a Shopify custom app into Virling and add the cart snippet to your theme, as the Shopify docs show. Renewal orders need nothing more, because they take their channel from the first order.
Check the renewal rule with test orders
Place one test subscription from a tagged link, as in Test your setup, with a plan that charges on day one, because a $0 order is not imported. Then:
- Check the renewal rule. You do not have to wait for the next billing date. In a new private window, open a link tagged
utm_source=secondand order again with the same customer email; a one-time product will do. If Shopify files it under the same customer, it shows a Renewal badge and thetestsource, notsecond. - Clean up. Cancel the test subscription and refund both orders. The refunds show within a minute or two.
How each subscription order is credited
| Order | What Virling reads | How it is credited |
|---|---|---|
| First order | Total, currency, date, customer ID, email and the virling_vid note attribute of a paid order | To a visit of that visitor before the payment, by default the latest in the last 90 days that was not Direct. With no visitor ID, it is credited only if its email matches an identify event |
| Renewal | An order with the source subscription_, or any later order by the same customer | Keeps the channel of the customer's first order. If that order was not credited, the renewal falls back to its own visitor ID, which renewals rarely carry, so it is usually Unattributed |
| Renewal from a subscription app with another source | A paid order like any other | Tied to the first order only through the customer. With the same customer ID it counts as a later order and keeps the first channel |
| First order of $0 | Nothing: an order with a total of 0 is not imported | No payment and no credit. The first paid renewal after it is credited only through its own visitor ID or an email match |
| Cancelled subscriber | Nothing: the contract is not read, and the orders stop | Past orders keep their channel and revenue. The customer stops counting as still paying once their last billing interval plus 7 days has passed. If they come back as the same customer, the new order keeps the first channel |
Subscription apps other than Shopify Subscriptions work when they create a paid Shopify order for each charge: those orders are imported like any other. They are linked to the first order through the Shopify customer, so an app that creates renewal orders without a customer leaves each one on its own, usually Unattributed. Refunding one renewal lowers only that order, on its own date; the subscriber's earlier orders and their channel are unchanged.
How retention works without subscription status
Virling reads Shopify orders, not subscription contracts. A subscriber is still paying when they have a payment that was not fully refunded within their last billing interval plus 7 days. The interval is the time between their last two such payments, between 7 and 366 days, or 30 days when there is only one. That means:
- A subscriber who cancels counts as still paying until that window passes, because the cancellation itself is not seen.
- A subscriber on a plan longer than monthly counts as not paying from 37 days after their first order until the second one, because a single payment is read as a 30-day interval.
- A skipped delivery creates no order. If the gap runs past the window, the subscriber counts as not paying until the next order, and the longer gap becomes their interval.
- One-off buyers are on the Retention page too. A store that sells both mixes them with subscribers.
Read the report: an example
These numbers are made up, to show how to read the Retention page. They are not from a real store and not a benchmark. A store sells a $30 monthly box and nothing else, and looks at the customers who first ordered in one month, five months later:
| Channel | Customers | Still paying | Net LTV | Avg LTV |
|---|---|---|---|---|
| Paid | 100 | 20 | $7,800 | $78.00 |
| Social | 50 | 10 | $4,050 | $81.00 |
| Organic search | 40 | 24 | $5,400 | $135.00 |
| 20 | 14 | $3,000 | $150.00 | |
| Unattributed | 10 | 4 | $1,200 | $120.00 |
| Total | 220 | 72 | $21,450 | $97.50 |
By first boxes, Paid wins: 100 of 220 customers, about 45%. Of the 72 still paying it has 20, about 28%. Organic search brought 40 customers and 24 of them still pay, so it has more subscribers left than Paid from fewer than half as many first orders, and each customer has paid $135 so far against $78. Before you raise the ad budget, compare that $78, minus what the boxes cost you, with what an ad customer costs. Email has the highest Avg LTV, but from 20 customers, so read it as a hint. Unattributed is 10 customers here; if it is much larger in your store, check that the snippet is in the theme and that first orders carry virling_vid. Still paying is read from payments, so someone who cancelled last week can still count.
See which channel brings subscribers who stay
For Shopify stores that sell subscriptions. Virling is open source under AGPL: self-host it free, or use the hosted version with a 14-day free trial.
What to know
- The first payment must be in Virling. Orders older than the 60-day import are not read, so renewals of subscriptions that started before that are usually Unattributed. They still count toward revenue.
- A renewal is linked by customer ID. Orders without a customer cannot be linked to a first payment.
- MRR comes from subscription prices, which are not read from Shopify, so Shopify subscribers are not part of it.
- Customers are matched per provider. A subscriber who moved to your store from another payment provider counts as two customers.
Frequently asked questions
Which channel brings my Shopify subscribers?
The channel of each subscriber's first order. Virling credits that order to a visit before it, through the visitor ID Shopify copies from the cart, and every renewal by the same customer keeps the channel, so the Channels card and the Retention page compare channels by the subscribers who keep paying.
How are Shopify Subscriptions renewals attributed?
An order from a Shopify Subscriptions renewal, with the source subscription_contract, is marked as a renewal. It keeps the channel of the customer's first payment, matched by Shopify customer ID, even though the renewal itself has no visit.
How does Virling know if a Shopify subscriber is still paying?
By payment recency. Subscription status is not read from Shopify, so a customer counts as still paying when they have a payment that was not fully refunded within their last billing interval plus 7 days. The interval is the time between their last two such payments, between 7 and 366 days, or 30 days when there is only one.
What happens to subscriptions that started before I connected Virling?
The first run imports orders from the last 60 days, the most Shopify gives without the read_all_orders permission. A renewal whose first order is older than that has no first payment in Virling to copy, so it is usually Unattributed. It still counts toward revenue.
What happens when a Shopify subscriber cancels?
Virling does not see the cancellation, only that orders stop. Past orders keep their channel and revenue, and the customer stops counting as still paying once their last billing interval plus 7 days has passed without a new payment. If they subscribe again as the same Shopify customer, the new order keeps the channel of their first order.
What happens when a Shopify subscriber skips a delivery?
No order is created for a skipped delivery, so nothing is imported and the subscriber's revenue and channel stay as they were. If the gap runs past their last billing interval plus 7 days, they count as not paying until the next order arrives, and that longer gap then becomes their interval.
Are renewals from other Shopify subscription apps tracked?
Yes, as orders: they count toward revenue like any other paid order. An order whose source is not subscription_contract is tied to the first order only through the customer, so with the same Shopify customer ID it keeps the channel of the first order. An order without a customer cannot be linked.
Full guides: Shopify in the docs, Renewals and Retention by channel.