Book a call

Free guide, about 15 minutes

Add UTM parameters to Meta ads for Shopify

Add UTM parameters in the URL parameters field of each Meta ad, use dynamic campaign and ad names, and see the right source in Shopify's marketing reports.

In short. Add UTM parameters in the URL parameters field, in the Tracking section of each ad in Meta Ads Manager. Use fixed values for source and medium, and Meta's dynamic values such as {{campaign.name}} and {{ad.name}} for the rest. Keep the naming consistent, never tag links within your own site, and check Shopify's marketing reports.

Updated

Without UTM parameters, Shopify sees a visit from a Meta ad as plain Facebook or Instagram traffic, and some visits arrive with no source at all. You can't tell which campaign or ad brought the sale.

UTM parameters are short labels added to the end of the link. Shopify reads them and groups visits and sales by them. You need Ads Manager and your Shopify admin.

Step by step

Tick each step as you go. Your ticks stay in this browser, so you can come back later.

0 of 8 done
  1. Decide your names first

    Write down one set of values and keep to it, for example utm_source=facebook and utm_medium=paid_social for every Meta ad. Use lower case and the same spelling every time, because reports can treat Facebook and facebook as two different sources.

  2. Open the ad's Tracking section

    In Ads Manager, open the ad itself, not the campaign or ad set, and scroll to Tracking. Find the URL parameters field. Leave the website URL above it clean.

  3. Add the parameters

    Type the parameters without a question mark, for example utm_source=facebook&utm_medium=paid_social&utm_campaign={{campaign.name}}&utm_content={{ad.name}}. The Build a URL parameter link next to the field helps you fill them in.

  4. Use Meta's dynamic values

    Values in double curly brackets, such as {{campaign.name}}, {{adset.name}} and {{ad.name}}, are filled in by Meta when the ad is shown. Meta stores the names when you first publish, so renaming a campaign later doesn't change the label.

  5. Add them to every ad

    Existing ads need the parameters too, not only new ones. In Ads Manager you can select several ads and edit them together.

  6. Never tag links within your own site

    Don't add UTM parameters to banners, menus or buttons that link to other pages of your store. A tagged internal link replaces the real source, so the sale is credited to your own banner instead of the ad.

  7. Tap through a live ad

    Open the live ad on your phone and tap the link. The address of the page that opens should end with your parameters, with real names where the curly brackets were. If you see the curly brackets themselves, the values weren't filled in.

  8. Check the reports in Shopify

    After a day or two of traffic, go to Analytics > Reports and filter by the Marketing category. Open Performance by marketing campaign or Sales attributed to marketing; your UTM campaign names should appear there. Only visits after the change carry the new labels.

When to ask for help

Ask for help if Shopify still shows most ad visits with no source after the parameters are in place, or if sales in Shopify and Ads Manager are far apart. That usually points to tracking, not to labels.

Book a call

Pick a time that suits you. The calendar only shows slots we're actually free, and you get an invite straight away.

Booking runs on Google Calendar. Open it in a new tab