Can I use Facebook’s URL Parameters as Sub-IDs?
To understand this article, you will need to understand what a “query string” is. If you need to catch up on query strings, read this article:
When you create a Facebook ad, there is a “Tracking” section where you can create a query string to pass Sub-ID data to your ClickMagick tracking link.
Just go to the Tracking section of your ad and enter your query string in the edit box that says URL Parameters.
When your ad is clicked on, Facebook will automatically add a “?” mark to your tracking link to start the query string and then append your URL Parameters
after the “?”. Facebook will automatically add the “?” character for you, so don’t include that with your URL Parameters
Google Ads introduced 5 query string parameters that you can pass data through that have now become industry-wide standards. You’ve probably seen these before:
|Typically your traffic source (facebook, google, bing, youtube...)
|The type of advertising: cpc, email, banner, etc.
|A unique name for this advertising campaign. Example: cars
|A sub-category of the campaign. Generally used to record the searched keyword or audience details. Example:
|A second sub-category of
utm_campaign commonly used to more explicitly define how the traffic was generated. For example if you have two links in an email, link1 or link2, or in the case of a split test
If you don’t need sub-categories for your campaign, you can skip the
parameters. For instance, if you’re only running ads for Tesla cars and you don’t care about the details of exactly how the click was generated, you can set
“tesla” and ignore the
When you use Facebook’s URL Parameters
, simply use whatever
parameters and data you want, building them as a query string, like this:
Facebook’s Dynamic Parameters
Facebook also has “Dynamic Parameters” such as
that you can use to pull information directly from your ad. For example, if your campaign name was “Electric Cars” and your ad name was “Tesla”, then you could pass that information like this:
The when the ad was clicked on, Facebook would automatically replace
with “Electric Cars” and “Tesla” before redirecting the click to your tracking link.
You can read all Facebook’s Dynamic Parameters on this Facebook support page:
Facebook’s URL Parameters
The Order of
utm Parameters is Important
You can pass
values to ClickMagick in any order and ClickMagick will store the first
value as Sub-ID #1, the second
value as Sub-ID #2, and so on.
For example, if the most important piece of information to you is the
value, make sure you put that first in the list so it will be stored as Sub-ID #1 where you can view it most easily in ClickMagick stats:
Once these values have been passed to ClickMagick through your tracking link, you can pass them on through the Primary URL of that link using ClickMagick’s Sub-ID tokens
, or you can use the explicit tokens
If you want to pass all of the
parameters together through your Primary URL, you can use the
token and ClickMagick will insert the Facebook URL Parameters
into your Primary URL exactly as you entered them in Facebook:
More on ClickMagick Sub-IDs
For more information on Sub-IDs, how to read them in your stats, and how to pass them through your Primary URL, read this article:
How do I use Sub-IDs?
The first part of that article shows the standard, non-Facebook way of passing Sub-IDs to
your tracking links. You can safely ignore that section if you’re only interested in Facebook URL Parameters
The final part entitled “Passing Sub-IDs to your Primary URL
” explains how you pass Sub-IDs from
your tracking links to your Primary URLs no matter where the clicks are coming from—including Facebook.
parameters became an industry-wide standard, ClickMagick supported the 5 parameter names
instead of the
names. ClickMagick will be dropping support for the
parameter names, so switch to using
names as soon as possible. For more information, read this article:
What happened to the Facebook "fbtag" parameters?
Caution: Make sure that the tracking links in your Facebook ads always end with a forward slash “
Article 66 Last updated: 07/08/2020 6:31:16 AM
/”. For example:
If you forget the final “
/”, your link will not work!