Attribution

UTM and tracking parameters for your ads

Updated

Click ids tell ROASaurus which platform a visit came from; UTMs tell it which campaign, ad set and ad. Use utm_source, utm_medium, utm_campaign, utm_id (campaign id), utm_term (ad set) and utm_content (ad), filled by each platform's dynamic values.

ROASaurus reads the UTMs on the landing page of each click. Spend is matched to campaigns by utm_id (the campaign id) or utm_campaign (the campaign name), and creatives by utm_content. Without UTMs, an order is still credited to the platform when the click id is there, but not to a campaign.

Before you start

  • Edit access to your ad accounts.
  • Set the parameters before launch where you can: on Meta, editing an ad's URL parameters later can restart learning.

Steps

  1. Meta (Facebook and Instagram)

    In each ad, under Tracking › URL parameters, paste:

    utm_source=facebook&utm_medium=paid&utm_campaign={{campaign.name}}&utm_id={{campaign.id}}&utm_term={{adset.name}}&utm_content={{ad.name}}

    You should see: The preview URL with your campaign, ad set and ad names filled in.

  2. TikTok

    In the ad's destination URL, choose Build URL parameters and enter:

    utm_source=tiktok&utm_medium=paid&utm_campaign=__CAMPAIGN_NAME__&utm_id=__CAMPAIGN_ID__&utm_term=__AID_NAME__&utm_content=__CID_NAME__

  3. Google Ads

    Keep auto-tagging on (it adds gclid). At account level, set the Final URL suffix to:

    utm_source=google&utm_medium=cpc&utm_id={campaignid}&utm_term={adgroupid}&utm_content={creative}
    Campaigns are matched to spend by their id.

  4. Microsoft Advertising

    Keep auto-tagging (it adds msclkid) and set the final URL suffix to:

    utm_source=bing&utm_medium=cpc&utm_id={CampaignId}&utm_term={AdGroupId}&utm_content={AdId}
    ROASaurus recognises Microsoft traffic by msclkid or utm_source=bing.

  5. Other platforms

    Use the platform's own name as utm_source: pinterest, snapchat, reddit, x, linkedin, amazon, applovin, criteo, spotify. Fill utm_campaign with the campaign name as it is in the ad account, so spend lines up.

  6. Check the result

    Click one of your ads, then open Marketing › Channels & campaigns › Attribution after an order, or Profit › Orders › Profit per order filtered by UTM source.

    You should see: The campaign by name in the By campaign table, with its spend.

Rules that keep reports clean

  • Write utm_source and utm_medium in lower case and the same way every time: facebook, not Facebook on some ads.
  • Meta fills names as they were when the ad was published; renaming a campaign later does not change the URL. The campaign id in utm_id stays right.
  • For creative reports, put the ad name in utm_content. Name ads like hook: Problem | creator: Anna | format: UGC to group by hook, creator and format: Creative analytics.
  • Email and SMS: add UTMs in your email tool (utm_source=klaviyo, utm_medium=email) so those orders are not direct.

Common problems

A campaign shows spend but no orders
Its ads have no utm_id or a utm_campaign that differs from the name in the ad account.
Orders show under "other"
utm_source is a value ROASaurus does not map to a platform. Use one of the names above.

Next step

See profit per campaign

Still stuck? Email us.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.