Knowledge Base         


How do I use UTM parameters with ClickMagick?


If all you want to do is pass all the utm parameters that are sent to your tracking link on to the link set as your Primary URL, you simply add “?[query_string]” to the end of your Primary URL.

For example, if you had this Primary URL ...

https://golfproducts.com

… you would change it to this:

https://golfproducts.com?[query_string]

To see this in action, if this is how the ad network redirected to your tracking link ...

https://link-domain.com/golf?utm_source=facebook&utm_medium=banners&utm_campaign=golfclubs

… then your Primary URL would be redirected like this:

https://golfproducts.com?utm_source=facebook&utm_medium=banners&utm_campaign=golfclubs

The [query_string] token would be replaced by all of the utm values sent to your tracking link each time a click is processed.

Using the [query_string] token is the simplest and most common way to handle utm values.

If that doesn’t meet your needs, read on...


Using UTM values with Sub-IDs

If the request to your tracking link or rotator contains any of the following UTM parameters, ClickMagick will automatically convert them and store them as Sub-IDs:
 
utm_source    Sub-ID 1 / [s1]
utm_medium   Sub-ID 2 / [s2]
utm_term   Sub-ID 3 / [s3]
utm_content   Sub-ID 4 / [s4]
utm_campaign   Sub-ID 5 / [s5]

If you’re not familiar with how Sub-IDs work within ClickMagick, read this article:
 
  How do I use Sub-IDs with my ClickMagick tracking links?

 
If you need to pass your UTM parameters on to your landing page (your Primary URL), you can easily do that by using ClickMagick’s UTM tokens in your Primary URL as explained here:
 
  What data can I pass to the URLs I promote?
 
 
Important: If you use both Sub-IDs and UTM parameters with your tracking links, you can only use up to a maximum of 5 values between the two. So for example if you pass in 2 Sub-IDs, ClickMagick will only record up to the first 3 UTM parameters for a total of 5 Sub-ID values.

There’s rarely a reason to use both Sub-IDs and UTM parameters, especially more than 5, so this shouldn’t pose any problems for you – but if it does please let us know and we’ll see if we can help you with a solution.


Article 201 Last updated: 04/25/2020 7:15:10 PM
https://www.clickmagick.com/kb/?article=201