virling Pricing Self-host Demo Changelog Agencies GitHub Start free trial
blog / 2026-11-24

Live chat revenue tracking: do chats bring paying customers

By Devendra Variya, co-founder of Virling. Published 2026-11-24.

Live chat revenue tracking means knowing whether the visitors who start a chat go on to pay. Record each chat start as a goal on your site, connect your payment provider, and pass the visitor ID into checkout so each payment joins the visits before it. Then count how many visitors who chatted paid, and compare that share with the visitors who did not chat. Do not set chat up as a traffic source: it is a step on your site, and something else brought the visitor there.

This is for founders and small sales or support teams who answer chats on a SaaS site or a store and want to know what that time brings in. A chat tool counts conversations and reply times. It usually does not see the payment, or the search or post that came first.

Chat is a step, not a traffic source

A visitor finds you, opens a page, and only then starts a chat. So a chat and a channel answer different questions:

  • The channel says what brought the visitor: a search, a post, an ad, an AI answer. It is decided by the first pageview of the visit.
  • The chat says what the visitor did once there, like a signup or a demo request. In Virling that is a goal, stored with the page, the visit and the visitor.

If you credit the payment to “chat”, you lose the channel that earned it and may cut the one that fills your chat with buyers. Keep both: the channel gets the credit, and the goal shows in the journey. B2B SaaS attribution for small teams covers the same split for demos and sales calls.

Set it up in Virling

  1. Add the script. One tag in the <head> of every page that shows the chat. It sets a first-party virling_vid cookie that lasts a year, so a visitor who chats today and pays next month in the same browser is one visitor. See add the script.
  2. Send a goal when a chat starts. Call virling("goal", "chat started") on your page, in the code below.
  3. Connect a payment provider. Open Setup, then Connect payments, and paste a key from your provider. The providers are Stripe, Paddle, Lemon Squeezy, Polar, Dodo Payments, Creem, RevenueCat, Shopify and WooCommerce.
  4. Pass the visitor ID into checkout. Without it a payment cannot join the visit where the chat happened. The steps for each provider are in link checkout to visits.

Record the chat start as a goal

Many chat widgets let your page run code when a conversation starts. Put the goal there. onChatStarted stands for your widget’s own callback; look it up in its documentation. The first lines are the stub that keeps the call safe if the script has not loaded yet:

window.virling = window.virling || function () {
  (window.virling.q = window.virling.q || []).push(arguments);
};

onChatStarted(function () {
  virling("goal", "chat started");
});
  • Send it when the visitor writes the first message, not when the widget loads or opens itself. An automatic greeting is not a chat.
  • Use one lowercase name. Names are compared exactly, so Chat started and chat started are two goals. They are cut to 64 bytes.
  • Give support its own name. If customers chat from inside your app, send support chat there, so help requests from people who already pay do not count as sales chats.
  • Leave names, emails and messages out of the goal name.

If your widget has no callback but you use your own button to open it, send the goal from a click on that button, and read it as chats opened. The rules are in Goals.

Compare paying customers among visitors who chatted

  1. Pick a range long enough for people to buy after a chat, such as the last 90 days.
  2. On the Goals card, open the Goals tab. It lists chat started with its count. This counts completions, so one person who chats twice counts as two.
  3. Open the Visitors page and filter by the goal chat started. Write down how many visitors there are. Then use Filters to keep only those who paid, and write that down too.
  4. Clear the goal and note the same two numbers for all visitors. Subtract the ones who chatted, and you have the visitors who did not.
  5. Divide paid by visitors in each group. Then filter by one source at a time and repeat, so you compare people who came from the same place.
  6. Open a few visitors who chatted and paid. The timeline shows each visit, goal and payment in order, so you can see whether the chat came before the first payment or after it.

The last step matters. The paid filter keeps everyone with a payment, including customers who bought first and chatted later. Leave out visitors whose first payment came before the range, in both groups. On the Payments page, picking the goal lists each chat start with its source, which is a quick way to see the chats one by one. The Recent customers card shows a short path for your last 10 customers.

The Funnel tab of the Goals card runs Visit, Signup, Checkout started and Paid, so a chat is not a step in it. If your chats lead to trials, trial-to-paid conversion by traffic source covers the step after them.

A worked example

These numbers are made up, to show the method. They are not from a real company and not a benchmark. A site over 90 days, after leaving out visitors who first paid before the range:

VisitorsChattedPaid, of those who chattedDid not chatPaid, of those who did not
All sources20014 (7.0%)3,80076 (2.0%)
Organic search only1005 (5.0%)1,50060 (4.0%)

Over all sources, visitors who chatted look 3.5 times as likely to pay. Within organic search the gap shrinks to 1.25 times, and it rests on 5 customers. Part of the first gap came from which visitors chat, not from the chat.

If the 14 customers paid $4,200 together, each visitor who chatted is worth 4,200 / 200 = $21. To weigh that against the time your team spends, put your own rate and revenue into the lead value calculator and treat each chat as a lead.

Why this shows correlation and not cause

  • Intent comes first. Someone about to buy asks about billing or a plan limit. They might have paid without the chat.
  • Placement picks the visitors. If the widget only shows on the pricing page, everyone who chats has already reached pricing, and most other visitors have not.
  • More visits mean more chances. A visitor who comes back five times has five chances to chat and five to pay.
  • Agents pick too. If agents answer the promising visitors first, those are the ones with a chat.

To get closer to cause, change one thing and look at everyone. Show the chat in some weeks and hide it in others, then use Compare to other dates to set revenue per visitor of one period against the other. Use all visitors, keep other changes to a minimum, and allow for buyers who pay weeks later. With few customers a week the difference may be chance. The same caution applies to pages: do your docs bring paying customers has it for docs.

Tag the links agents send in chat

Whether to tag a link depends on when it is opened. In Virling a page that loads with a different utm_source, utm_medium or utm_campaign starts a new visit. For a person already on your site, that means a second visit with chat as its source, and under last non-direct, the default model, it takes the credit from the channel that brought them.

LinkTagsChannel in Virling
Your own page, opened during the chatNoneStays with the visit
Emailed transcriptutm_source=live-chat&utm_medium=email&utm_campaign=chat-transcriptEmail
Follow-up email from an agentutm_source=live-chat&utm_medium=email&utm_campaign=chat-follow-upEmail
Link to pass on to a colleagueutm_source=live-chat&utm_medium=chat&utm_campaign=chat-shareReferral, when it opens with no referrer

A full link for a follow-up looks like this:

https://yourdomain.com/pricing?utm_source=live-chat&utm_medium=email&utm_campaign=chat-follow-up

Each campaign gets a row with visitors and revenue on the Campaign tab of the Channels card. These rows show who came back through the link, not who was first found by chat. If you want the credit to stay with the first visit whatever link comes later, switch the model to first touch in Site settings. First touch or last touch explains the choice. The UTM builder makes the links, and agents can keep them as saved replies.

Send a page on your site rather than a payment link. A link inside a chat window that loads in a frame from another site, or in an email, opens checkout without the visitor ID, and the payment shows as unattributed.

What to check when the numbers look wrong

  • Chats but no goal. The callback never fired, or the page does not run the script. Start a chat and look in the browser’s network tab for a request to /api/event with "n":"goal".
  • Far more goals than chats. The goal fires when the widget loads or greets the visitor. Move it to the first message.
  • Buyers you chatted with do not show the goal. They may have paid on another device or in another browser, or cleared cookies. The visitor ID lives in one browser.
  • Live chat shows up as a big source. Agents are tagging links that visitors open during the chat. Remove the tags from those.
  • Payments but no revenue on visitors. Check the Matched revenue line under the Overview numbers, then Unattributed revenue.

Want to see it on your own chats? Start a free trial, add the script and send the goal.

Frequently asked questions

How do I track revenue from live chat?

Send a goal when a visitor starts a chat, connect your payment provider and pass the visitor ID into checkout. Then filter the Visitors page by the chat goal and by paid to see how many visitors who chatted are paying customers and what each one spent.

Is live chat a traffic source?

No. A visitor has to reach your site before they can chat, so something else brought them: a search, a post, an ad or a typed address. Chat is a step on the site. Record it as a goal, and leave the credit for the payment with the channel that brought the visit.

Does live chat increase sales?

A report cannot prove it. Visitors who chat are often closer to buying already, so they can pay more often even if the chat changed nothing. To get nearer to cause, show the chat in some weeks and not in others, and compare all visitors, not only the ones who chatted.

Should agents add UTM tags to links they send in chat?

Not to links on your own site that the visitor opens during the chat. A page opened with new tags starts a new visit that can take the credit from the real source. Tag links that are opened later, such as those in an emailed transcript or a follow-up email.

Can I see revenue per chat on one card?

Not yet. The Goals tab counts how many times the goal was completed, and goals carry no money value. Filter the Visitors page by the chat goal and paid, add up what those visitors spent, and divide it by the number of visitors who chatted.

Why does a payment link sent in chat show up as unattributed?

The visitor ID has to reach checkout. The script adds it to some payment links when they are on a page it runs on, but it cannot see links inside a chat window that loads in a frame from another site, or in an email. Send your pricing or checkout page instead.

See whether your chats bring 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.

Start free trial See the demo