Skip to main content
To track SMS campaigns with URL parameters, you add a short tag, comet_source=sms, to the end of every link in your text messages. When someone taps the link, the tag tells Cometly the visit came from SMS. This lets you report on SMS as its own source, next to your ads and email. Add a campaign or message tag as well, and you can see which text message or broadcast produced each lead and sale.

Add the Cometly SMS parameter

Append the following URL parameter to every link in the SMS messages you send:
You can also copy the parameter in Cometly: go to Setup, open step 4 Add URL parameters to your ads, choose SMS in the Select integration dropdown and click Copy Parameters.
Example: if your SMS contains this link:https://www.cometly.com/demoappend the URL parameter like so:https://www.cometly.com/demo?comet_source=sms
Add the parameter to each new text message you send, not only the ones you have today. Using Klaviyo? You can have it add the parameter for you. See Email and SMS tracking with Klaviyo.

Track specific SMS campaigns and messages

For more granular SMS reporting, add more URL parameters to identify the specific SMS or the SMS broadcast or campaign, such as:
  • utm_campaign
  • utm_content
Example: if your SMS contains this link:https://www.cometly.com/demoappend the URL parameters like so:https://www.cometly.com/demo?comet_source=sms&utm_campaign=smscampaign1&utm_content=sms1

SMS reporting

To report on your SMS campaigns, open the Report Builder and select the SMS source under Sources. If you added the extra URL parameters shown above, you can report on specific campaigns or SMS messages with the URL Parameters filter in the Report Builder.

Check it worked

Once people tap your tagged links, open the Report Builder and select the SMS source. Those visits, and the conversions that follow them, are reported under SMS.

Frequently asked questions

Then the link already has parameters, so start the Cometly parameter with & instead of ?. For example, www.test.com?variant=123456 becomes www.test.com?variant=123456&comet_source=sms. See URLs that already have parameters.

Does Cometly track SMS clicks without the URL parameter?

Not as SMS. A tap on a link in a text message usually arrives without a referring URL, and Cometly reports visits without one as Direct / None. Add comet_source=sms to the link so the visit counts toward the SMS source. See Referral vs. direct traffic sources. Yes. The Cometly pixel (the tracking script on your website) is what records each visit and where it came from, so it must be installed on the page the link opens. See Install and verify the Cometly pixel.

Next steps

Still have questions or need a hand? We’re happy to help. Reach our team at support@cometly.com.