Facebook UTM Parameters
Complete guide to Facebook UTM parameters and tracking templates. Learn how to install, verify, and manage UTM parameters for accurate campaign attribution and reporting in AnyTrack.
Facebook UTM parameters are essential for accurate campaign tracking and attribution in AnyTrack. This guide covers AnyTrack's recommended UTM tracking template, how to install it across your Facebook campaigns, and how to verify it's working correctly. Proper UTM parameter implementation ensures your campaign data flows correctly from Facebook Ads Manager into AnyTrack's reporting dashboard.
TL;DR: Facebook UTM parameters
- AnyTrack provides a recommended UTM tracking template that includes standard parameters and dynamic parameters.
- The parameters and values collected by the AnyTrack template can be integrated with 99% of the marketing platforms you're either working with or plan to work with at some point.
- If you don't use standard utm parameters for the purpose they were created for, you are going to miss on a lot of actions, data and ROAS!
Related Guides:
- Main Facebook Ads Setup Guide - Complete integration setup
- Verify Ads Settings - How to verify UTM template installation
- Troubleshooting Guide - Fix common UTM parameter issues
- Advanced Options - Advanced configuration and customization
List of Facebook UTM parameters
| Parameter | Token | Example Value | Info |
|---|---|---|---|
utm_source | facebook | facebook | Name of the traffic source |
utm_medium | cpc | cpc | Cost Per Click |
utm_content | {{adset.name}} | SpringSale_AdSet1 | The name of the ad set in Facebook Ads. |
utm_campaign | {{campaign.name}} | Spring_Sale_2026 | The name of the campaign for attribution purposes. |
utm_term | {{ad.name}} | DiscountAd_VersionA | Refers to the specific ad used in the campaign. |
utm_id | {{campaign.id}} | 123456789 | A unique identifier for the campaign. |
ad_id | {{ad.id}} | 987654321 | A unique identifier for the specific ad. |
adset_id | {{adset.id}} | 111222333 | A unique identifier for the ad set. |
placement | {{placement}} | feed | Indicates where the ad appeared (e.g., feed, stories, right column, etc.). |
site_source_name | {{site_source_name}} | example.com | Identifies the name of the site source where the ad traffic originated. |
Unlike Google Ads, Facebook does not provide a global setting to add a default UTM Tracking Parameters template to your account.
Good to know:Through the Facebook Ads Manager, you can bulk update your ads with the AnyTrack recommended UTM tracking template.
What is a URL tracking template?
A URL tracking template is a set of URL parameters and tokens that is appended to your ad URLs. At run time (when your ad is displayed and/or clicked on), Facebook automatically substitutes the tokens with the actual variables such as the campaign.id, adset.id, ad.id and more.
For example, the Facebook Campaign ID token (also called macro) is {{campaign.id}}. At run time, Facebook replaces the token with the actual campaign id 1283912839123812938.
Using tokens instead of hard coding the campaign id value in your ads URL saves you time, prevents errors and enables you to better analyze your campaigns through ad tracking software that leverage these parameters.
URL tracking parameters are usually preceded by a query parameter that is automatically collected by analytics platform such as Google Analytics. For the campaign id, Google Analytics reads this parameter under the query parameter utm_id.
So if you wanted to collect only the campaign id, your campaign URL would look like:
https://example.com?utm_id={{campaign.id}}The Facebook UTM Parameter Tracking Template
utm_source=facebook&utm_medium=cpc&utm_content={{adset.name}}&utm_campaign={{campaign.name}}&utm_term={{ad.name}}&utm_id={{campaign.id}}&ad_id={{ad.id}}&adset_id={{adset.id}}&placement={{placement}}&site_source_name={{site_source_name}}For example:
The tracking template Anytrack provides carries the parameter: adset_id={{adset.id}}
Your Final URL is: https://anytrack.io
At run time, the template is appended to your final URL and the {{adset.id}} token is replaced with the actual adset id: 123123123123818
https://anytrack.io?adset_id=123123123123818Where should you place the Tracking template?
The tracking template should be added in the URL Parameters field.

Facebook URL Parameters Field Settings
Why is the URL tracking template important?
The URL tracking template standardizes data collection across your ads and campaigns. AnyTrack uses UTM parameters to build your campaign reports and align campaign data from Facebook Ads with your visitor's session data. Google Analytics uses UTM parameters to build attribution reports.
Benefits of using a URL tracking template
- Improved campaign tracking and attribution - Standardized parameters across all campaigns
- Cross-platform reporting - Consistent data across AnyTrack, Google Analytics, and Facebook
- Custom audience building - Use campaign data to create targeted audiences
- Cross-network data leverage - Use campaign parameters across multiple ad platforms
Where to find the Facebook URL Tracking Template
AnyTrack provides a prebuilt URL Tracking Template in the Facebook Ads Integration tab:
Tracking Pixels → Your Pixel → Ads Integrations
Can I customize the UTM parameters?
Yes. AnyTrack leverages UTM parameters to match the data fetched from your ad account with the session data tracked by the AnyTrack Tag. As long as you keep the ID-based parameters in the template, you can customize or replace the name-based parameters as needed.
We recommend using our tracking template because it's built according to Google Analytics best practices and enables AnyTrack to accurately report by campaigns, ad sets, and ads.
Compatibility with other tracking software
Yes, the AnyTrack template is compatible with other tracking software. AnyTrack uses standard UTM parameters, while most alternatives use custom parameters like tw_id or h_adid. These don't interfere with AnyTrack's parameters, so you can append them to the AnyTrack template.
Required Parameters:
utm_source,utm_medium,utm_campaign,utm_id,adset_id,ad_id
The pixel connected in AnyTrack should be the one that your ads is optimizing for.
How to Verify UTM Parameters in Your Ads
- Go to Tracking Pixels ➡ click on the Facebook Pixel you want to verify
- Click on the Ads integration tab
- Click on VERIFY ADS SETTINGS button
- AnyTrack will highlight the error found in each of your ads and add a suggested change.
ImportantWhile you can add tracking parameters directly to the final URL, it is highly recommended to add the parameters in the appropriate fields.
How to Bulk Update Your Facebook Ads with the URL Tracking Template
Learn how to bulk update your Facebook Ads with the URL Tracking Template provided by AnyTrack to ensure accurate tracking and reporting.
Step 1: Open the AnyTrack dashboard
Log in to your AnyTrack account and navigate to the dashboard.
Step 2: Go to Tracking Pixels
Click on Tracking Pixels, then select the Facebook Pixel, and navigate to the Ads Integration tab.
Step 3: Copy the UTM Tracking Template
Click on the UTM Tracking Template to copy it to your clipboard.
Step 4: Go to Facebook Ads Manager
Open the Facebook Ads Manager in your browser.
Step 5: Navigate to the Ads Tab
In Facebook Ads Manager, go to the Ads tab where your active campaigns are listed.
Step 6: Select All Ads
Highlight all ads you want to update.
Step 7: Edit URL Parameters
Click on Edit and select the URL Parameters option.
Step 8: Paste the Tracking Template
Paste the copied UTM Tracking Template into the URL Parameters field.
Step 9: Save or Publish
Save your changes as a draft or publish the updated ads.
External references
Specifications for URL dynamic parameters (Facebook Business Center).
Best practice for UTM parameters (Google help center).
Facebook UTM Parameters FAQ
Frequently asked questions about using Facebook UTM Parameters with AnyTrack for efficient ad tracking and reporting.
-
Why is the URL tracking template important?
The URL tracking template standardizes data collection across ads and campaigns. It allows AnyTrack to align campaign data from Facebook Ads with visitor session data and helps Google Analytics build accurate attribution reports.
-
Where can I find the Facebook URL Tracking Template?
AnyTrack provides a prebuilt URL tracking template in the Facebook Ads Integration Tab under Tracking Pixels → Your Pixel → Ads Integrations.
-
Can I customize the UTM parameters in the tracking template?
Yes, you can customize the name-based UTM parameters as long as the ID-based parameters remain intact. The recommended template ensures compatibility with Google Analytics and AnyTrack's campaign reporting features.
-
How can I verify my ads' UTM parameters?
Go to Tracking Pixels → Select your Facebook Pixel → Ads Integration tab → Click "VERIFY ADS SETTINGS." AnyTrack will highlight errors and suggest changes.
-
Can I use AnyTrack's UTM parameters with other tracking software?
Yes, AnyTrack's UTM parameters are standard and compatible with most tracking software. Custom parameters from other software like `tw_id` or `h_adid` do not interfere with AnyTrack's parameters.
-
How do I bulk update Facebook Ads with the tracking template?
- Copy the UTM Tracking Template from AnyTrack's dashboard.
- Open Facebook Ads Manager, navigate to the Ads tab, and select all ads.
- Hit "Edit" and paste the template into the URL Parameters field.
- Save your changes and publish the ads. -
What are the required UTM parameters for AnyTrack?
The required parameters are: `utm_source`, `utm_medium`, `utm_campaign`, `utm_id`, `adset_id`, and `ad_id`. These ensure accurate tracking and reporting of campaigns, ad sets, and ads.
Updated 3 days ago
