UTM parameters and dynamic URL parameters are tags added to the end of a URL so your analytics tool can see where a visitor came from. They may sound technical, but they are extremely useful when you want to understand how your Facebook and Instagram ads actually perform. Meta has made it easier to add campaign and ad information directly to your URLs, and here is how it works.
By using dynamic URL parameters, you can connect your campaigns to Google Analytics (or another analytics tool) and get much deeper insight into how your ads perform. You can track exactly where your clicks and conversions come from, including which ad was clicked and where it was shown.
Meta offers dynamic URL parameters such as these for your ads:
- adset_id = {{adset.id}}
- campaign_id = {{campaign.id}}
- ad_id = {{ad.id}}
- ad_name = {{ad.name}}
- adset_name = {{adset.name}}
- campaign_name = {{campaign.name}}
- placement = {{placement}}
- site_source_name = {{site_source_name}}
These parameters help you track every detail of your ads. For example, you can see which specific ad was clicked and where it appeared.
Campaign, ad set and ad IDs
With parameters such as {{campaign.id}}, {{adset.id}} and {{ad.id}} you can automatically add the unique ID of the campaign, ad set or ad to the URL. This makes it much easier to track results in your analytics tools.
Tip: Remember to adjust the column view in your analytics platform to include the ID columns, so you get the full benefit of this feature.
You can also use custom campaign parameters such as utm_source, utm_medium and utm_campaign to pass campaign data from Facebook to Google Analytics. You may have done this manually before, filling in parameters for each individual ad in Ads Manager.
Analysing data across placements and networks used to be cumbersome. You had to create separate ad sets for each combination and update the UTM parameters by hand. With dynamic URL parameters, you can track all of this automatically and save a lot of time.
Dynamic URL parameters are a powerful tool for marketers who want more granular insight into the performance of Facebook and Instagram campaigns. You can track detailed information about your ads automatically, without separate ad sets for every combination of placement and network. That saves time and resources, and gives you richer data to work with.
How does it work in practice?
When you use dynamic URL parameters, the system automatically replaces placeholders such as {{campaign.id}}, {{adset.id}} and {{placement}} with the relevant information from the campaign, ad set or ad that triggered the click. When someone clicks an ad, the URL they land on includes this data, which can then be analysed in Google Analytics or another third-party analytics platform.
The benefits of dynamic URL parameters
More efficient tracking: Instead of adding UTM parameters manually for every ad, dynamic parameters are set once and filled in automatically for each click. This reduces the risk of human error and saves time.
Detailed insight: By including parameters such as {{placement}} and {{site_source_name}}, you can see exactly where your ads perform best, down to specific placements such as the Facebook feed or Instagram Stories. That lets you optimise your campaigns more effectively.
Combined with UTM parameters: Dynamic URL parameters can be used together with traditional UTM parameters (such as utm_source, utm_medium and utm_campaign), so you get both a campaign-level overview and a deeper look at the performance of individual ads.
A practical example
Say you run a Facebook campaign for a new product and want to track ad performance across placements. You use a URL like this:
https://your-website.com/product?utm_source=facebook&utm_medium=cpc&utm_campaign=new-product&ad_id={{ad.id}}&placement={{placement}}
When a user clicks an ad in Instagram Stories, the URL they visit can look like this:
https://your-website.com/product?utm_source=facebook&utm_medium=cpc&utm_campaign=new-product&ad_id=12345&placement=instagram_stories
In Google Analytics you can then see that the click came from Instagram Stories, and which specific ad generated it.
Dynamic URL parameters make it simpler and more efficient to track ad performance across platforms and placements. By automatically inserting campaign and ad information into your URLs, you get a deeper understanding of what drives results, and can optimise your campaigns accordingly.
Read also
- Free UTM builder
- Google Ads in practice: campaign structure, keyword harvesting and account hygiene
- POAS vs ROAS: how to measure the profitability of your advertising
Need help with tracking or paid advertising? See my services or get in touch.
Read also: Consent Mode v2, Server-side tracking.
