Can I use Facebook’s URL Parameters as Sub-IDs?

Absolutely!

If you have lots of Facebook ads and don’t want to have to append Sub-IDs to the URL for each ad individually, you can use Facebook’s Optional URL Parameters.

 
Caution: To use this feature, make sure that the tracking links you use in your Facebook ads always end with a forward slash /. For example:

http://$linkdomain/myfacebookad/

If you forget the final /, your link will not work!


To pass a Sub-ID, enter the following in the Optional URL Parameters field:

fbtag1=subid

Whatever you include where it says subid will be converted to a ClickMagick Sub-ID when someone clicks your link on Facebook, and you’ll be able to view detailed stats broken down by Sub-ID just as if you had set up all your Sub-IDs manually the traditional way.

Just make sure to enter the following tokens to the end of your primary URL under the tracking link which you want to promote on Facebook:

/[s1]

Depending on how many Facebook Optional URL Parameters you are using, you can add more of these tokens simply by separating them with a ‘/’.

So if you have five URL Parameters and want to use all five Sub-IDs, you would add the following to your primary URL of the Facebook tracking link:

/[s1]/[s2]/[s3]/[s4]/[s5]

If you want to see all the data in one Sub-ID, you can simply separate the tokens with a dash instead, like so:

/[s1]-[s2]-[s3]-[s4]-[s5]

So if your primary URL for the Facebook tracking link which you are trying to promote looks like this: 

http://$linkdomain/myfacebookad/

then it would look like this with the Sub-ID tokens added:

http://$linkdomain/myfacebookad/[s1]-[s2]-[s3]-[s4]-[s5] 

Or, if you prefer to separate out each Sub-ID individually it would look like this:

http://$linkdomain/myfacebookad/[s1]/[s2]/[s3]/[s4]/[s5]

You can add up to a total of five Optional URL Parameters …

Just add as many name=value pairs as you need, separated by an ampersand (&) like this:

fbtag1=subid1&fbtag2=subid2&fbtag3=subid3&fbtag4=subid4&fbtag5=subid5

 
Note: To learn more about URL parameters, in general, you might want to read our FAQ on the topic:
 
  What is a “query string”?