> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cometly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Email and SMS tracking with Klaviyo

> Set up Klaviyo email and SMS tracking in Cometly: Klaviyo adds comet_source to every link, so email and SMS clicks show up as touchpoints.

Klaviyo can add URL parameters (short tags at the end of a link) to the links in your emails and SMS messages automatically. This page shows how to set up Klaviyo email and SMS tracking by adding Cometly's `comet_source` parameter there, so email and SMS touchpoints show up in your contacts' journeys in Cometly.

With the parameter on every link, you can see which leads and sales came from your emails and text messages, next to the ones that came from your ads. You set it up once in Klaviyo, so you do not have to tag each link by hand.

This setup does not connect Klaviyo to Cometly or send events. It only adds Cometly's URL parameter to your Klaviyo links. For the Klaviyo integration itself, see [Klaviyo](https://docs.cometly.com/integrations/platforms/klaviyo.md).

## Before you start

The Cometly pixel (the small script that records visits to your website) must be installed on the site your Klaviyo links point to. Without it, Cometly has no record of the visit. See [Install and verify the Cometly pixel](https://docs.cometly.com/getting-started/install-pixel.md).

## Klaviyo setup instructions

**1. Open your Klaviyo settings**

In your Klaviyo account, click your account name at the bottom left, then click **Settings**.

![Klaviyo account menu opened from the bottom left, with arrows on the account name and Settings](https://mintcdn.com/cometly/BM7eSn6-ecx8ZzBx/images/guides/url-parameters/klaviyo-email-and-sms/01.webp?fit=max\&auto=format\&n=BM7eSn6-ecx8ZzBx\&q=85\&s=47ba2ec9e7bb47d7f8674afaf3e366f4)

**2. Add a UTM parameter**

On the Settings page, click **Other**, then **UTM tracking**, and then click **Add UTM parameter**.

![Klaviyo Settings, Other tab, UTM tracking page with an arrow on the Add UTM parameter button](https://mintcdn.com/cometly/BM7eSn6-ecx8ZzBx/images/guides/url-parameters/klaviyo-email-and-sms/02.webp?fit=max\&auto=format\&n=BM7eSn6-ecx8ZzBx\&q=85\&s=2a2357a0f850ea54ee50b479e4fd81d5)

**3. Enter comet\_source and select Message type**

Enter `comet_source` as the parameter name. For the value, open the dropdown and select **Message type**.

Message type adds `email` or `sms` as the value, depending on the type of message you send. Cometly reads `comet_source=email` as the Email source and `comet_source=sms` as the SMS source.

![Klaviyo UTM tracking with comet\_source entered and Message type highlighted in the value dropdown](https://mintcdn.com/cometly/BM7eSn6-ecx8ZzBx/images/guides/url-parameters/klaviyo-email-and-sms/03.webp?fit=max\&auto=format\&n=BM7eSn6-ecx8ZzBx\&q=85\&s=40f518222d3857ccd0c9b1ec0dec6159)

Make sure **Message type** is selected in both value boxes (**Campaign value** and **Flow value**):

![Klaviyo comet\_source row with Message type selected for both Campaign value and Flow value](https://mintcdn.com/cometly/BM7eSn6-ecx8ZzBx/images/guides/url-parameters/klaviyo-email-and-sms/04.webp?fit=max\&auto=format\&n=BM7eSn6-ecx8ZzBx\&q=85\&s=c1b236d06d375de78882c2596cd29177)

**4. Turn on automatic UTM parameters and save**

Make sure **Automatically add UTM parameters to links** is toggled on. With it on, every email or SMS link carries the source `email` or `sms`.

Scroll to the top and click **Save**.

![Klaviyo UTM tracking with the automatic UTM parameters toggle on and an arrow on the Save button](https://mintcdn.com/cometly/BM7eSn6-ecx8ZzBx/images/guides/url-parameters/klaviyo-email-and-sms/05.webp?fit=max\&auto=format\&n=BM7eSn6-ecx8ZzBx\&q=85\&s=4cd96fb82def36ddea3e9aebd1a4f2d6)

You have now configured automatic email and SMS tracking with Klaviyo.

## Check it worked

Send yourself a test email or SMS from Klaviyo and click a link in it. The address of the page that opens should contain `comet_source=email` or `comet_source=sms`. In Cometly, visits from these links are recorded under the **Email** or **SMS** source.

## Frequently asked questions

### How do I see Klaviyo email and SMS results in Cometly?

Open the Report Builder and select the **Email** or **SMS** source under **Sources**. The report then shows the visits and conversions that came from links carrying `comet_source=email` or `comet_source=sms`.

### Do I still need to add comet\_source to each Klaviyo link by hand?

No. With **Automatically add UTM parameters to links** toggled on, every email or SMS link carries the source `email` or `sms`. You only add the parameter by hand for emails and text messages you send outside Klaviyo.

### Does Cometly track email clicks that do not have the comet\_source parameter?

Sometimes. Cometly also checks the referring domain of a visit and classifies it as Email when it matches a known email domain, such as Gmail or Yahoo Mail. The `comet_source` parameter is the dependable way to mark every email and SMS click, whichever app the contact opens the message in.

## Next steps

To report on this traffic, see [Track email campaigns](https://docs.cometly.com/guides/url-parameters/email.md) and [Track SMS campaigns](https://docs.cometly.com/guides/url-parameters/sms.md).

* [Build a report in the Report Builder](https://docs.cometly.com/guides/report-builder/build-a-report.md)
* [URL vs. URL Parameters filters](https://docs.cometly.com/guides/report-builder/url-vs-url-parameters-filters.md)
* [Set up URL parameters for all channels](https://docs.cometly.com/getting-started/url-parameters.md)

Still have questions or need a hand? We're happy to help. Reach our team at [support@cometly.com](mailto:support@cometly.com).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.