Simplify your UTMs with dynamic IDs

UTMs are essential for tracking the performance of your paid ad campaigns and ensuring accurate data flows into your analytics platform. Dynamic IDs allow you to automate the generation of UTM parameters, reducing manual errors and creating a seamless tracking experience across multiple advertising platforms.

This guide provides recommended UTM structures for popular ad platforms, leveraging their dynamic macros to simplify your campaign tracking setup. These templates form the foundation of both The Modern UTM Strategy and The GA4 UTM Strategy, ensuring consistency and accuracy in your data collection.

Table of contents

Why use dynamic IDs for UTMs?

Dynamic IDs enable platforms to automatically populate campaign-specific parameters like campaign ID, ad group ID, and ad ID directly into your URLs. This approach offers several benefits:

Below are the recommended UTM templates for each platform, along with instructions for setting them at the account level where applicable.

Recommended UTM template per ad platform

Google Ads

Tracking template:

{lpurl}?utm_source=google&utm_medium=cpc&utm_id={campaignid}&utm_campaign={_campaign}&ad_group_id={adgroupid}&ad_id={creative}

How to set up at the account level:

1. Access Account Settings:

2. Add Tracking Template:

3. Insert the Tracking Template:

4. Save Changes:

Additional resources:

Microsoft Ads

Tracking template:

{lpurl}?utm_source=microsoft&utm_medium=cpc&utm_id={CampaignId}&utm_campaign={Campaign}&ad_group_id={AdGroupId}&ad_id={AdId}

How to set up at the account level:

1. Navigate to URL Options:

2. Set Tracking Template:

3. Save Changes:

Additional resources:

Meta (Facebook) Ads

Tracking template (URL parameters):

utm_source=meta&utm_medium=cpc&utm_id={{campaign.id}}&utm_campaign={{campaign.name}}&ad_group_id={{adset.id}}&ad_id={{ad.id}}

How to set up:

Since Meta Ads doesn’t allow setting URL parameters at the account level, you’ll need to add them at the ad level:

1. Access Ads Manager:

2. Edit Your Ad:

3. Add URL Parameters:

4. Apply to Multiple Ads (Optional):

Additional resources:

LinkedIn Ads

Tracking template:

&utm_source=linkedin&utm_medium=cpc&utm_id={{CAMPAIGN_GROUP_ID}}&utm_campaign={{CAMPAIGN_GROUP_NAME}}&ad_group_id={{CAMPAIGN_ID}}&ad_id={{CREATIVE_ID}}

How to set up at the account level:

1. Access Account Assets:

2. Navigate to Account Settings:

3. Add Tracking Parameters:

4. Save Changes:

Additional resources:

Criteo

Tracking template:

&utm_source=criteo&utm_medium=cpc&utm_id={{criteo_campaign_id}}&ad_group_id={{adsetid}}&ad_id={{adid}}

How to set up at the account level:

1. Access Campaign Settings:

2. Edit Tracking Parameters:

3. Insert the Tracking Template:

4. Save Changes:

Additional resources:

TikTok Ads

Tracking template:

?utm_source=tiktok&utm_medium=cpc&utm_id=__CAMPAIGN_ID__&utm_campaign=__CAMPAIGN_NAME__&ad_group_id=__AID__&ad_id=__CID__

How to set up:

TikTok Ads requires setting URL parameters at the ad level:

1. Access TikTok Ads Manager:

2. Create or Edit an Ad:

3. Add Tracking Parameters:

4. Save the Ad:

Additional resources:

Pinterest Ads

Tracking template:

?utm_source=pinterest&utm_medium=cpc&utm_id={campaignid}&utm_campaign={campaign_name}&ad_group_id={adgroupid}&ad_id={adid}

How to set up at the account level:

1. Access Pinterest Ads Manager:

2. Navigate to Bulk Edit:

3. Download Current Settings:

4. Add Tracking Template:

5. Upload the Edited File:

Additional resources:

Reddit Ads

Tracking template:

?utm_source=reddit&utm_medium=cpc&utm_id={{CAMPAIGN_ID}}&utm_campaign={{CAMPAIGN_NAME}}&ad_group_id={{ADGROUP_ID}}&ad_id={{AD_ID}}

How to set up:

Reddit Ads does not currently support setting tracking parameters at the account level, so you’ll need to add them at the ad level:

1. Access Reddit Ads Dashboard:

2. Create or Edit an Ad:

3. Add Tracking Parameters:

4. Save Changes:

Additional resources:

Snapchat Ads

Tracking template:

utm_source=snapchat&utm_medium=cpc&utm_id={{campaign.id}}&utm_campaign={{campaign.name}}&ad_group_id={{adSet.id}}&ad_id={{ad.id}}

How to set up:

1. Access Snapchat Ads Manager:

2. Create or Edit an Ad:

3. Add Advanced URL Parameters:

4. Save the Ad:

Additional resources:

Campaign Manager 360

Tracking template:

?utm_source=cm360&utm_medium=cpc&utm_id=%ebuy!&site_id=%esid!&placement_id=%epid!&ad_id=%eaid!&creative_id=%ecid!

1. Access Campaign Manager 360:

2. Navigate to Floodlight Configuration:

3. Set Landing Page URL Suffix:

4. Save Changes:

Additional resources:

Conclusion

Dynamic IDs are a game-changer for simplifying UTM tracking. By setting up the recommended templates at the account level where possible, you ensure consistent, automated, and accurate tracking across all campaigns.

If you need help setting up your UTMs or implementing these strategies, feel free to contact us. We’re here to guide you every step of the way!

SHARE POST

Thank You!

Please check your email for the download links to our Ultimate Guide on How to Build a Data Strategy.

P.S. If you don’t see the email in your inbox within a few minutes, please check your spam or junk folder.