This is step 4 of the getting started guide. Each template takes about a minute to paste.

Why tag your ads?

AskOrigin reads small tracking tags (UTM parameters) on the links in your ads to credit each order to the right campaign, ad set and ad. Without them, AskOrigin still tracks every visit and order and can tell that a visitor came from, say, Facebook Ads, but not which campaign or ad. Tags apply from the next click on; they don't change past orders.

Campaign-level attribution — see which campaigns drive revenue
Ad-level insights — identify your best-performing creatives
Click ID capture — gclid, fbclid, wbraid, gbraid, ttclid for cross-device tracking
Customer journey mapping — track multi-touch paths to purchase

Google Ads Tracking Template

Copy this tracking template. It captures the campaign, ad group, ad, keyword and Google's click IDs:

{lpurl}?utm_source=google&utm_medium=cpc&utm_campaign={campaignid}&utm_content={creative}&utm_term={adgroupid}&utm_keyword={keyword}&gclid={gclid}&wbraid={wbraid}&gbraid={gbraid}

How to apply (recommended: once for the whole account):

  1. In Google Ads, open Admin → Account settings
  2. Expand "Tracking"
  3. Paste the template above into the "Tracking template" field
  4. Click "Test" to check it, then "Save"
Tip: One account-level template covers every campaign. If a campaign already has its own tracking template (Campaign → Settings → Additional settings → Campaign URL options), that one wins, so paste the template there too or clear the old one.
Parameter reference:
utm_sourceAlways "google"
utm_mediumAlways "cpc" (cost per click)
{campaignid}Google Ads campaign ID
{creative}Ad creative ID
{adgroupid}Ad group ID
{keyword}Matched keyword
{gclid}Google Click ID (primary)
{wbraid}Web-to-app click ID
{gbraid}App-to-web click ID

Meta Ads (Facebook & Instagram) URL Parameters

Copy these URL parameters for your Meta ads:

utm_source={{site_source_name}}&utm_medium=paid&utm_campaign={{campaign.id}}&utm_content={{ad.id}}&utm_term={{adset.id}}

How to apply:

  1. Go to Meta Ads Manager
  2. Open the campaign containing the ads you want to track
  3. Switch to the "Ads" tab
  4. Select the ad(s) you want to update (you can tick many at once)
  5. In the right-hand editor, scroll to the "Tracking" section
  6. Find "URL Parameters" (under "Ad → Tracking")
  7. Paste the entire UTM string above into the "URL Parameters" box
  8. Click "Publish" to save your changes
Tip: You can set URL parameters at the campaign level too. In the campaign editor, go to Campaign → Tracking → URL Parameters and all ads within will inherit them.
Parameter reference:
{{site_source_name}}Platform name (fb, ig, an, msg)
utm_mediumAlways "paid"
{{campaign.id}}Meta campaign ID
{{ad.id}}Ad creative ID
{{adset.id}}Ad set ID

TikTok Ads URL Parameters

Copy these URL parameters for your TikTok ads:

utm_source=tiktok&utm_medium=paid&utm_campaign=__CAMPAIGN_ID__&utm_content=__CID__&utm_term=__AID__

How to apply:

  1. Go to TikTok Ads Manager
  2. Open the campaign and ad group containing the ads you want to track
  3. Select an ad and open it at the Ad level
  4. Scroll to the "Destination page" section
  5. Find "URL parameters" below the "URL" field
  6. Paste the entire UTM string above into the "URL parameters" box
  7. Click "Submit" to save your changes
Tip: TikTok automatically appends the ttclid click ID to every ad-click URL — do not add it to the template yourself (unlike Google & Meta). Also note __AID__ is the ad group ID, not the ad ID.
Parameter reference:
utm_sourceAlways "tiktok"
utm_mediumAlways "paid"
__CAMPAIGN_ID__TikTok campaign ID
__CID__Ad ID / creative (use __ADID_V2__ for Smart+ campaigns)
__AID__Ad group ID
ttclidTikTok Click ID (auto-appended — no macro needed)

Other Ad Platforms

AskOrigin tracks any traffic source that uses UTM parameters. For platforms like Pinterest Ads, Microsoft Ads, or email campaigns, use this general UTM structure:

utm_source={platform}&utm_medium={type}&utm_campaign={campaign_id}&utm_content={ad_id}&utm_term={adgroup_id}

Replace the {placeholders} with the dynamic macros provided by each platform. As long as the UTM parameters are present in the landing page URL, AskOrigin will capture and attribute them.

Not sure where to paste? Email [email protected] or see the getting started guide for pictures and short videos.