How to track which comment or DM led to a sale

Ryan | Founder of BetterSocials

Updated November 17, 2026 · Published October 13, 2026 · 9 min read

!Shopping bag with a magenta receipt folding into a comment shape, about tracing sales back to social comments and DMs

Send a tagged link in the reply, then read that tag in your analytics or your store's order report when the sale comes in. The tags are UTM parameters, and they can say which platform, post and keyword sent the buyer. BetterSocials, an AI social media manager, adds them for you when its keyword automations send a link, so your part is reading the report.

Key takeaways

  • BetterSocials adds UTM tags to links its keyword automations send on Instagram, Facebook, YouTube, Threads and LinkedIn company pages once link tracking is on.
  • A sale traces back to a comment or DM only if the link the buyer tapped already carried tags saying where it came from.
  • A unique discount code for each post is the fastest method to set up, but it only counts buyers who type the code.
  • BetterSocials doesn't count sales, so your analytics, store or checkout records each order under the tags the link carried.

How tracking a comment or DM to a sale works

Your analytics tool can only credit a sale to a comment if the link the buyer tapped already said where it came from. Tag the link before it goes out. Your analytics reads those tags when the visit lands, and if it records purchases, the order shows up against that source.

Three methods put a source on the sale. You can tag by hand, with a unique link or a unique discount code for each post. Or a keyword automation can send the link and add the tags at the moment it sends.

MethodSetupWhat it recordsWhat it misses
BetterSocials keyword linksLink tracking on in SettingsPlatform and format, plus keyword and postTikTok keyword links, links typed by hand
UTM link per postOne link per post and reply typeSource, medium, campaign and postAny reply sent without a tag
Discount code per postOne code per postThe code typed at checkoutBuyers who skip the code field

Why comments and DMs don't show up in your sales data

Your store never sees the comment or the DM. A buyer comments "PRICE", gets a DM, taps the link and buys. Your analytics sees a visit and an order, and has no idea a comment started it.

Instagram, TikTok and Facebook don't pass your comment or DM history to your website. So a sale that began in a conversation lands with a vague source, often direct traffic or a generic social referral, or gets credited to whatever touched the order last.

Once the sale has closed, it's too late to label it.

A UTM link for each post lets the order point back to that post. A UTM parameter is a tag on the end of a normal URL, like `?utm_source=instagram&utm_medium=dm&utm_campaign=spring-offer&utm_content=post123`. The page doesn't change. The tags tell your analytics where the click came from.

Pick your tag names once and reuse them.

  • `utm_source` is the platform, such as instagram.
  • `utm_medium` is the reply type, comment or DM.
  • `utm_campaign` is the offer, such as spring-offer.
  • `utm_content` is the post, such as post123.

UTM tags are often case-sensitive, so "instagram" and "Instagram" can show up as two separate sources.

Each post then takes six steps.

  1. 1Build the tagged link in Google's Campaign URL Builder, or any UTM builder.
  2. 2Build a second link for the same post with a different `utm_medium`, so public comment replies and DMs each get their own. Then you'll know whether the buyer came from the public reply or the private one.
  3. 3Paste the tagged link into the reply or the DM, in full.
  4. 4If you run it through a link shortener, tap the short link once and check the tags reach the page.
  5. 5If your store or CRM can save the UTM tags a visitor arrived with, turn that on, so the source stays attached to the order.
  6. 6When an order comes in, look at its source, medium and content tags in your analytics or your store's order report.

Match `utm_content` to the post and you know which comment paid for itself.

Send the link in time. Instagram only lets a business reply to a DM within 24 hours of the person's last message, as the Instagram DM reply window page explains. Meta Business Suite's inbox won't send a message in response to a comment posted more than 7 days ago.

Tagging by hand works, and it's admin. Every post, channel and reply type needs its own link, and one untagged reply breaks the trail.

How to use discount codes to trace a comment to a sale

A discount code traces a sale when each post gets its own code and you check which code the buyer used at checkout. Offer the code in the reply, like "COMMENT10", tied to one post or one conversation. When the order comes in, the code tells you where it started.

Discount codes are the fastest of the three methods to set up, with one hole. They only count buyers who type the code. Some skip the field. Some use a code a friend passed along.

Treat your code counts as a floor. Codes also cost you margin on every order that uses one.

If you want something running today with no new tool, start here.

How keyword comment-to-DM automation makes the tagging automatic

A keyword automation watches your posts for a word and replies when someone comments it. Someone comments "PRICE" and the tool sends your link. On Instagram and Facebook that link can go out as a DM, and nobody has to spot the comment and answer it by hand.

The tracking gain depends on when the tags get added. A tool that tags the link at the moment it sends already knows the platform, the post and the keyword that fired. You stop building links by hand, and the tags match what actually happened.

Ask any keyword tool when it adds the tags. An automation that sends the same bare link from every post saves you typing and still leaves the sale without a source.

A comment-to-DM tool can show a DM as sent when Instagram never delivered it, and the failure sits at one of four points.

  • The DM landed in message requests because the commenter doesn't follow you.
  • The commenter's filters moved the DM to a hidden spam folder.
  • Instagram throttled the DM.
  • The tool counted an accepted API call as a delivery.

Every comment-to-DM tool lives with all four, BetterSocials included.

Match your orders to clicks on the tagged link, never to the sent count.

How BetterSocials does this

BetterSocials adds the UTM tags once you turn on link tracking in Settings. Link tracking is off until you do. From then on, the tags ride on the links your keyword automations send, in the DM or in the public reply.

  • Keyword links get tagged on Instagram, Facebook, YouTube, Threads and LinkedIn company pages.
  • The platform and the content format (a Reel, a Short) are tagged by default.
  • The keyword that fired and the post it came from can be added as tags.
  • Any value can be renamed to match your reports.

The link tracking help page walks through the settings.

Plan for two gaps.

  • Links you type yourself in the inbox aren't tagged, so paste a link you've already tagged when you reply by hand.
  • TikTok keyword links go out in the public reply without tags, so TikTok sales need a hand-tagged link or a code.

The sale shows up where your buyer pays, in your analytics, your store or your checkout, under the tags the link carried. BetterSocials doesn't count sales. It puts the source on the link so your own tools can.

Tracked links and a contacts list, in beta, show inside BetterSocials which comment or DM led to a click. Keyword links in public replies on YouTube, Threads, TikTok and LinkedIn Company Pages aren't click tracked.

On Instagram and Facebook, a keyword comment gets a public reply and a DM with your link. On YouTube the keyword reply is public and carries the link, because YouTube has no DMs. Either way, the keyword reply posts the message you wrote.

BetterSocials' AI drafts replies in your voice for the rest of your comments and DMs. They wait in the same inbox for your approval unless you set a rule that lets a kind of reply send on its own.

ManyChat has no YouTube channel (checked September 2026), so a YouTube comment can't trigger anything there. ManyChat bills by active contacts each month, with overage charged per extra contact (pricing read July 2026).

CreatorFlow puts link tracking on its Pro plan, which its pricing page listed in November 2026 at $15 a month, or $12 a month billed annually, for 2 Instagram accounts.

At one or two Instagram accounts, CreatorFlow costs less than BetterSocials. BetterSocials suits local businesses, creators and small agencies whose comments and DMs bring in sales, and its flat price covers unlimited contacts, DMs and keyword automations on every plan.

  • Creator is $29 a month for four social accounts.
  • Pro is $49 a month for six social accounts.
  • Team is $99 a month for twelve social accounts and unlimited teammates.

BetterSocials has no flow builder. You set the keyword, the message and the link.

Every plan starts with a 7-day free trial, card required. Start your free trial or see how it works.

Frequently asked questions

How do UTM links work for tracking a DM to a sale?+

A UTM link is a normal URL with tags on the end, like `utm_source=instagram`, that tell your analytics where a visit started. Build one link per post, send it in the DM, then read the source and content tags on the order in your analytics or store report.

Can I use discount codes to track which comment led to a sale?+

Yes. Give each post or comment thread its own code, offer it in the reply, and check which code the buyer used at checkout. It's the fastest setup, but it only counts buyers who actually enter the code.

What is a keyword comment-to-DM automation?+

A keyword comment-to-DM automation watches your posts for a word, like "PRICE", and sends the person a DM with your link when they comment it. In BetterSocials this works on Instagram and Facebook, with a public reply on the comment too. On TikTok and YouTube the keyword reply is public and the link goes in it.

Does ManyChat track which comment led to a sale?+

ManyChat can reply to a comment publicly and send the DM, and you can put a UTM-tagged link in that DM yourself, then read it in your analytics like any other link. It has no YouTube channel, so YouTube comments are outside it, and it bills by active contacts each month.

Can I track a TikTok comment or DM that led to a sale?+

Yes, through the link, but you tag it yourself. A TikTok comment can't trigger a private DM on any tool outside TikTok's limited rollout in Vietnam, Thailand and Indonesia, so a keyword there answers in the public reply, and BetterSocials doesn't tag that link. TikTok DMs can be answered but never started, with up to 10 replies within 48 hours of the person's last message from a Business account, and a reply is text up to 6,000 characters or one image. A tagged link fits in the text, and a discount code works too.

How does BetterSocials track which comment or DM led to a sale?+

Once you switch on link tracking in Settings, BetterSocials adds UTM tags to the links its keyword automations send on Instagram, Facebook, YouTube, Threads and LinkedIn company pages. Your analytics or store reads those tags when the buyer lands and pays. Tracked links and a contacts list (beta) show which comment or DM led to a click. Your own analytics reports the sale itself, not BetterSocials.

Try it on your own inbox

Connect up to 4 accounts and watch the AI draft replies in your voice. Free for 7 days.