# Tracking Klaviyo SMS clicks

Littledata integrates with [Klaviyo SMS campaigns and automations](https://www.klaviyo.com/sms-marketing) to help merchants see what happens before and after SMS interactions, including interactions with other channels, orders, refunds and customer behavior.

Follow this setup guide to ensure that your SMS campaigns are tracked correctly by Littledata in Google Analytics.

{% hint style="success" %}
Using Klaviyo for email too? Make sure to follow our [Klaviyo email tracking guide](/integrations/shopify-klaviyo/track-klaviyo-campaigns-in-google-analytics.md)
{% endhint %}

### Setting up campaign tagging in Klaviyo

First let's look at how to set up your campaign tagging in Klaviyo so that Littledata can capture consistent data about Klaviyo campaigns.

When creating a new SMS campaign in Klaviyo there is a section for **Tracking**. You’ll need to switch on **Include tracking parameters** and **Customize tracking parameters**.

!\[Tracking SMS links in Klaviyo]\(<https://lh3.googleusercontent.com/LYP\\_5FM4NCKq9g3EVUf3YY\\_E-qFF\\_vCoeR1vjiNTIGH99qqyKaXA-\\_yyRuKyCbYrtxz3Elhuz9SZI-VDsfzVstnmHoDYvNj6PrVNmZ7mlanPTc2eJHaR4og0JngFN1aehM3FA93lNze0gdrCYC9oYB2jobQ4BP20Daw-khCihoZA9AEtDk7uSagUo7z4rw> 'Tracking SMS links in Klaviyo")

Confusingly, Klaviyo’s current default is to tag SMS campaigns with UTM medium as ‘**email**’. We recommend changing that to ‘**sms**’, which will show up in the **SMS channel grouping** in GA4.

Similar to our [email tracking guide](/integrations/shopify-klaviyo/track-klaviyo-campaigns-in-google-analytics.md) for Klaviyo campaigns, we recommend the following values for SMS tracking:

| **UTM Parameter** | **Campaign Value** |
| ----------------- | ------------------ |
| Source            | *Klaviyo*          |
| Medium            | *sms*              |
| Campaign          | *Campaign name*    |
| Id                | *Campaign id*      |
| Customer          | *External id*      |

![UTM tagging SMS links how it works](https://lh4.googleusercontent.com/q90BtBH8MP6l41byNYrMsMqGT4DFlTbr9tzw1uaqb_riWrjF-KzxcB4dSvqHHPW-Hn7Hnor0DdcS1msA3LUEtn1InQ4FkGI7Roqc7jpeYut014CbP4ynWl7TEh2aR4f3z2Ki43dbplfHzYExMONisGaLlKDxdinnOrPUvXc6fs5Wh9_oCicN8n13r9MuUQ)

### Interacting with an SMS link

When you finish setting up a Klaviyo SMS campaign you will see confirmation that you have enabled UTM parameters for tracking.

![SMS link tagging in Klaviyo](https://lh4.googleusercontent.com/I3GJXatxlspp8bgZxLxN3lrD-k2vofSthfKiMMCml7bXsx59o_jD8r1L7zBYumNTJsO__3J_9dUaIaxglZsxwCgoE1qQo-uEqTN5M6zQyZ4J9HxOlBx4LKPKrZcfvUygpGyD9APj2VufCc2VxYpDLYsvy4rtXHpbnJGLRoHGrRQ6IYz0-TBrloDQavGPhg)

And then when you test the email campaign, you’ll see the message links show up with shortened links on the `klv1.io` domain - which then redirects to the full link including UTM parameters.

![SMS preview editor in Klaviyo](https://lh5.googleusercontent.com/j6oRfZhmiFcVZqo0DVCQSsIeO-mLbAlTE-1rxnDEVPXHCtxcvuV47sVe_hkXVGTXuuJCVZDibDADYRzS5098NKArT5RrEpXIrc6a10nmWe1v8Yag0h5odNBA5zqJy0eTGa5kLalS0F8eHTBw_DoEanWFWMvGSkp6or5IX5X6GgltBAxt_3JSsolcjI_wJw)

### Tracking SMS clicks in Google Analytics 4 (GA4)

You can use the **Real-time overview** to check the landing page is showing up in GA4.

![Realtime SMS traffic in Google Analytics](https://lh3.googleusercontent.com/KVuX-DQ1yfBkJV452je16_KVFDcJYTwE1y66s9Rt2MXFjc6Gwrys2Rq4ouUlSth1N6MGHwS6HZW_io76jDDqTSFecm0WY721tfJxhpSveLKg_cZTEj0UpAVF1PQeXqzmgXd2PaBrwIeN3-K_KCBE8xmiLlkPI81jOoNGXeor9jn1z2a4osf5hNW01cM0qQ)

But to see that Google is correctly attributing traffic to the SMS channel you’ll need to wait an hour and check the **Traffic Acquisition** report (under Acquisition menu).

![Tracking SMS links in Google Analytics](https://lh5.googleusercontent.com/dn3lZTNTtvlmh0OIblydb5osW0mawlElFWep24ewJioV4PCI9I22NYiY61xxMLuasXHDU5TvGVa_mZalev0UHeebBfT87r_r-HEuW1fxNFbzbFejiSbrIyT3fKo_DcIDT84bg9P51qRKTTYUIrEzHx-3lyddFR0G55_oAsO2D1YSTs5BHIJsu8ReSKVO-A)

Finally, you can link these SMS clicks to the ecommerce behavior tracked by Littledata. You can do that by creating a comparison of how users who first visited from the SMS link buy:

![Building an SMS comparison](/files/vZVSIY98K4ADN2ynbzwm)

Further reading:

* Setting up [Klaviyo email campaign tagging](/integrations/shopify-klaviyo/track-klaviyo-campaigns-in-google-analytics.md)
* What you can track with Littledata's [Shopify source for Google Analytics](broken://pages/BJnSNIXZTnuy6ncEONuJ)
* Sending data to [Segment's Klaviyo destination](/integrations/shopify-to-segment/shopify-segment-klaviyo.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.littledata.io/integrations/shopify-klaviyo/klaviyo-sms-clicks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
