> For the complete documentation index, see [llms.txt](https://help.littledata.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.littledata.io/partner-recipes/postscript/track-postscript-sms-clicks-ga.md).

# Track Postscript SMS campaigns in Google Analytics

See how to get complete Postscript and Shopify data in Google Analytics without the need for GTM. Works for GA4.

### How it works

Littledata's Postscript tracking works with the [Shopify to Google Analytics](https://help.littledata.io/integrations/shopify-to-google-analytics) connection. It relies on the UTM parameters you set in Postscript for source, medium and campaign. Littledata's server-side tracking picks up these UTM parameters and links them to the order.

This works for one-off purchases and first subscription purchases. Recurring subscription orders keep the original UTM parameters only when **Attribution boost for recurring purchases** is on. See [Attribution for recurring orders](https://01610c8e-157a-4142-b5a0-2fa4de9ecff4.frame.claudeusercontent.com/_f/1791977826-6401/#attribution-for-recurring-orders).

{% hint style="warning" %}
Attribution depends on the UTM parameters you set up in Postscript. Follow the steps below so they are set correctly.
{% endhint %}

### Set up UTM parameters in Postscript

{% stepper %}
{% step %}

#### Open the tracking settings

In your Postscript dashboard, click your store name in the sidebar, then select **Tracking**.
{% endstep %}

{% step %}

#### Set the campaign parameters

Under the campaign parameters:

* Set **Source** to **Static Value** with the value `postscript`. You can use a different value if you prefer. Littledata attributes it either way.
* Set **Campaign** to **Campaign Name**. This sets the campaign name for each campaign automatically.
  {% endstep %}

{% step %}

#### Add a custom UTM parameter for medium

Click **Add Custom Parameter**. Set **Key** to `utm_medium` and **Value** to `sms`. You can use a different value for medium if you prefer.
{% endstep %}

{% step %}

#### Save your settings

Click **Update Global UTM Tracking** to save.

![](https://3956158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QhTbrMraNWciQeDvu1b%2Fuploads%2Fgit-blob-3f38953013865f38d19c0296fbe139faee3464c5%2Fscreenshot-2023-02-03-at-3.06.46-pm.png?alt=media\&token=6d7f98d9-e0a0-403c-8559-d038ace702f2)
{% endstep %}
{% endstepper %}

### Attribution for recurring orders

To attribute recurring subscription orders to the Postscript campaign that brought in the first order, turn on **Attribution boost for recurring purchases**. It's off by default.

{% stepper %}
{% step %}

#### Open your GA4 settings

In the Littledata app, open **Settings** for your Google Analytics 4 destination.
{% endstep %}

{% step %}

#### Go to Session enrichment

Open the **Session enrichment** tab.
{% endstep %}

{% step %}

#### Turn on the setting

Make sure **Attribution boost** is on, then turn on **Attribution boost for recurring purchases** and save.
{% endstep %}
{% endstepper %}

### See your SMS campaigns in GA4

Once the UTM parameters are set, you can check your SMS campaign results in GA4.

#### Traffic acquisition report

{% stepper %}
{% step %}

#### Open the report

In GA4, go to **Reports** > **Acquisition** > **Traffic acquisition**.
{% endstep %}

{% step %}

#### Filter to SMS

Search the table for `SMS`.
{% endstep %}

{% step %}

#### Add a secondary dimension

Add **Session source / medium** as a secondary dimension.

![Postscript SMS tracking Google Analytics](https://3956158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QhTbrMraNWciQeDvu1b%2Fuploads%2Fgit-blob-e0f7dc246097f2960d5878c19d77dca655f02fe5%2Fscreenshot-2023-10-20-at-9.42.14-am.png?alt=media\&token=f86c8f19-5a4e-4112-8fd0-7b224bca5c9a)
{% endstep %}
{% endstepper %}

You can also customize the Traffic acquisition report, or create a custom report for your SMS campaigns.

#### Exploration

{% stepper %}
{% step %}

#### Create a blank exploration

In GA4, go to **Explore** and click **Blank**.

![](https://3956158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QhTbrMraNWciQeDvu1b%2Fuploads%2Fgit-blob-38332febacdb52ee9b29359f74b5403cd3d07fc2%2Fscreenshot-2023-10-20-at-9.54.53-am.png?alt=media\&token=ded96f36-f0c4-4f9a-ba68-2426cdebed15)
{% endstep %}

{% step %}

#### Add dimensions and metrics

Add the dimensions and metrics you want, for example **Session source / medium**, **Session campaign**, **Sessions**, **Purchases** and **Purchase revenue**.
{% endstep %}

{% step %}

#### Filter to Postscript traffic

Add a filter where **Session source / medium** contains `postscript`.

![](https://3956158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QhTbrMraNWciQeDvu1b%2Fuploads%2Fgit-blob-31f67963f3ef72139a8b77098b9259b69e8962b5%2Fscreenshot-2023-10-20-at-10.01.20-am.png?alt=media\&token=9ba18f31-01ab-497a-a943-790be4616564)
{% endstep %}
{% endstepper %}

### Related articles

* [GA4 reports with Littledata](https://help.littledata.io/google-analytics/conversions/shopify-to-google-analytics-4-beta)
* [How Littledata sends Shopify events to GA4](https://help.littledata.io/integrations/shopify-to-google-analytics/how-it-works-shopify-to-ga4)
* [Track subscription orders in the Shopify checkout](https://help.littledata.io/sources/shopify/tracking-subscription-orders-in-the-shopify-checkout)
* [Subscription revenue by channel in GA4](https://help.littledata.io/google-analytics/subscriptions/subscription-revenue-by-channel-in-google-analytics-4)
