# Pass UTMs from WordPress to Shopify Checkout

## UTM attribution overview

Shopify UTM Tracking Integration only records UTMs that land on the checkout URL at purchase time. UTM Grabber keeps them in cookies on your site. This page explains how to pass that data through before the customer pays.

### What to expect

Many stores run WordPress for content and Shopify for checkout. UTMs must survive that handoff. Shopify records UTMs present in the checkout URL.

### Steps

### Setup

1. Use utm-out on Buy buttons that point to your Shopify store
2. For cart permalinks, append utm\_source, utm\_campaign, gclid from handl\_utm in JavaScript
3. Confirm UTMs in Shopify order details or Analytics

### Append UTMs with utm-out

```
<a href="https://your-checkout-url.example/product" class="utm-out">Buy now</a>
```

UTM Grabber rewrites the link with cookie values. Details: [utm-out class guide](https://docs.utmgrabber.com/books/102-getting-started-for-handl-utm-grabber-v3/page/appending-utms-to-the-buttons-using-class-name-attributes-selectively).

For webhook-based attribution after purchase, see [Send Shopify Order UTMs via Webhook](https://docs.utmgrabber.com/books/shopify-integration/page/end-hopify-rder-s-via-ebhook).