How to measure social media ROI: which platform brings customers
By Devendra Variya, co-founder of Virling. Published 2026-11-24.
To measure social media ROI, take the revenue from customers who came through a platform, subtract what that platform cost you in hours and money, and divide by that cost. The cost you add up yourself. For the revenue, tag the link in every profile and post, connect your payment provider, and pass the visitor ID into checkout, so each payment is joined to the visit that brought the customer. You can then read revenue and revenue per visitor for each platform. Likes, reach and followers do not tell you this.
This guide is for founders and small teams who post on two or more platforms and want to know which one to keep.
The social media ROI formula
ROI = (revenue from platform - cost of platform) / cost of platform x 100
- Cost is your hours multiplied by an hourly rate, plus money: freelancers, design, tools, boosted posts. Leave the hours out and organic social looks free.
- Revenue is the money, after refunds, from payments credited to a visit from that platform. The steps below are about getting this number.
A platform that cost $1,500 and brought $3,600 has an ROI of 140%. This version works on revenue. If your product costs something to deliver, multiply revenue by your gross margin first; the marketing ROI calculator does that for several channels at once.
Why platform numbers do not answer it
- Reach is not revenue. Impressions, likes and followers happen on the platform. The payment happens on your site, often days later.
- Clicks are not customers. One platform can send the most visits and the fewest buyers.
- Each platform counts for itself. A buyer who clicked on two platforms can be claimed by both. When payments are joined to visits, each payment is credited once.
- App clicks lose their source. Links opened in an app often arrive with no referrer, so some social visits end up in Direct.
Virling credits each matched payment to one visit under the model you choose, so a payment from a buyer who clicked on two platforms is never counted in both rows.
How to get revenue per platform
1. Tag every profile and post link
Give each link a source for the platform and a campaign for the place:
https://yourdomain.com/?utm_source=linkedin.com&utm_medium=social&utm_campaign=linkedin-profile https://yourdomain.com/?utm_source=instagram.com&utm_medium=social&utm_campaign=instagram-bio https://yourdomain.com/?utm_source=x.com&utm_medium=social&utm_campaign=x-post-pricing-teardown
- utm_source is the platform's domain. With no referrer, Virling uses a known domain in its place, so the click joins that platform's row in the Source tab. A short name such as
linkedinalso lands in Social, but a click with no referrer then sits in a Social row with no platform, and you read it by campaign instead. - utm_medium=social for organic links. Boosted posts and ads get
paid_social, which puts them in Paid and keeps them apart from your own posts. utm_source vs utm_medium has more pairs. - utm_campaign names the place: a fixed one for each profile link, and one per post you want to measure. Start it with the platform, so no two platforms share a row.
The social UTM link generator makes a link for each platform at once. It writes short source names and one campaign for all of them, so run it with a campaign per platform, or change the source to the domain. You can also use a tracked link: it adds the domain, the medium and its own campaign on the click.
Where links can go differs per platform. See LinkedIn posts and profile links, Instagram bios and stories, Threads posts and the l.threads.com redirect, pinned posts and profile links on Bluesky, pin and profile links on Pinterest and posts and bios on X.
2. Know what happens to untagged app traffic
You will not tag every link, because other people share your pages too. An untagged click goes one of three ways:
- It has a referrer. The platform is known from it. Reddit counts as Communities; X, LinkedIn, Instagram, Facebook, TikTok and YouTube count as Social. On Mastodon the referrer is the reader's instance, and most instances count as Referral; counting Mastodon visits by instance shows how to add them up.
- It has no referrer, but the in-app browser names the app. Virling credits Instagram, Facebook and Messenger, TikTok and LinkedIn this way. X is not one of them.
- It has neither. The visit is Direct, and nothing in it says which platform it came from.
Because of the last group, a platform's real revenue can be higher than its row shows. Links passed on in chats and messages behave the same way; dark social traffic shows how to spot them by landing page. The order of the rules is in channels.
3. Join payments to visits
Add the script to every page and connect a provider from the integrations page. Then pass the visitor ID into checkout. Stripe Payment Links, Polar checkout links and Dodo Payments links are tagged by the script on click; for a checkout you create on your server, pass the virling_vid cookie. Each provider is covered in link checkout to visits. Make a test payment and check that it shows a channel instead of Unattributed.
4. Read revenue and revenue per visitor
- Pick a range of 90 days or more, so slow buyers have time to pay.
- On the Channels card, open the Source tab. Each platform row shows visitors, revenue and revenue per visitor, with a chip that compares it with your site average. Add
l.instagram.comtoinstagram.comandlm.facebook.comtofacebook.com; they are rows of their own. - Open the Campaign tab to split a platform by profile link and post.
- Open a payment to see every visit before it, with the credited one marked.
Revenue counts on the payment date, so a range can include renewals from customers a platform brought earlier. See renewals. Social often introduces a buyer who returns through search, so compare the rows under last non-direct, the default, and first touch. Switching the model in Site settings recomputes history and can be undone; first touch or last touch explains which fits.
5. Compare with hours and spend
Write down the hours you spent on each platform in the same range, including replies and messages, and what you paid. Virling does not import either. Put them next to the revenue in the formula above. If you want Social as a whole, enter a monthly amount for it under Monthly spend per channel in Site settings, and the Profit by channel card shows spend, revenue, profit and return per dollar. That card is per channel, so the split between platforms stays in your own table.
A worked example
Made-up numbers to show the method, not results from a real site. Over 90 days, with 30 hours on LinkedIn, 40 on X and 20 on Instagram, each hour costed at $50, plus $200 paid to a designer for Instagram:
| Platform | Cost | Visitors | Revenue | Revenue per visitor | ROI |
|---|---|---|---|---|---|
| $1,500 | 600 | $3,600 | $6.00 | 140% | |
| X | $2,000 | 2,000 | $1,800 | $0.90 | -10% |
| $1,200 | 400 | $300 | $0.75 | -75% | |
| All three | $4,700 | 3,000 | $5,700 | $1.90 | 21% |
Social as a whole looks fine at 21%, and that hides the split. LinkedIn sends fewer visitors than X and twice the revenue, for fewer hours. X nearly pays for itself, so check it under first touch before cutting it. Instagram is far behind, but first check that its bio and story links are tagged. At a 70% gross margin LinkedIn would return 68% and X would lose 37%, so use margin if your product costs something to deliver.
What to check when the numbers look wrong
- Direct jumps on the day you post. App clicks on untagged links arrived with no referrer. Tag the profile and the next post.
- Social has a row with no platform. Those links use a short source name. Switch to the domain, or read them in the Campaign tab.
- Visits but no revenue on any platform. Check the Matched revenue line under the Overview numbers; the visitor ID may not reach checkout. See Unattributed revenue.
- A buyer says they found you on a platform that got no credit. They may have seen a post without clicking. A view that never reached your site cannot be counted.
- An Instagram bio shows up as Referral. A link page on another domain is the referrer. Link the bio straight to your site.
Frequently asked questions
How do you calculate social media ROI?
Take the revenue from customers who came through a platform, subtract what the platform cost you, divide by that cost and multiply by 100. Cost is your hours at an hourly rate plus any money spent. Revenue needs each payment joined to the visit that brought the customer.
Why do likes, reach and followers not show social media ROI?
They count attention on the platform, not payments on your site. A post can be liked by thousands of people who never need your product. Only revenue credited to the visits a platform sends shows whether it pays.
Can I see which social post brought a paying customer?
Yes, if the post had its own link. Give each post you want to measure its own utm_campaign, or its own tracked link, and the Campaign tab shows visitors and revenue for each. The referrer alone names only the platform.
What happens to social traffic that arrives with no tag?
A click with a referrer is still credited to its platform. A click from an app often has no referrer. Virling credits it to the app when the in-app browser names itself in the user agent, as Instagram, Facebook, TikTok and LinkedIn can; otherwise it is Direct. A tag on the link prevents that.
How do I count the time I spend on social media?
Write down the hours per platform, including replies and messages, and multiply them by what an hour of your time costs. Virling does not import hours, so this number is yours to keep.
How long should I wait before judging a platform?
Long enough for slow buyers to pay. Use 90 days or more, check the Time to pay card, and compare last non-direct with first touch. A platform with only a few visitors has not shown anything either way.
See which platform brings paying 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.