UTM Parameter Order Importance | Community
Skip to main content
ChristinaZuniga
New Participant
August 17, 2016
Solved

UTM Parameter Order Importance

  • August 17, 2016
  • 1 reply
  • 4697 views

If I create a link with UTM parameters that have utm_campaign, utm_medium and utm_source does it matter what order I put them in? I found a site that helped create them that recommended campaign then medium then source but another site created a link with source then medium then campaign.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

As long as you have only one query parameter of each name (one utm_medium, one utm_source, etc.) the order makes no difference.

When you have duplicate query params (a bad idea unless you know exactly why you're doing it) then a given parser might take the first one only, the last one only, or all of them combined into a list/array. There's no actual standard for which one "wins" (in fact there isn't even a general standard that requires query strings to be considered name-value pairs at all, except for form posts... but that's another matter).

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
August 18, 2016

As long as you have only one query parameter of each name (one utm_medium, one utm_source, etc.) the order makes no difference.

When you have duplicate query params (a bad idea unless you know exactly why you're doing it) then a given parser might take the first one only, the last one only, or all of them combined into a list/array. There's no actual standard for which one "wins" (in fact there isn't even a general standard that requires query strings to be considered name-value pairs at all, except for form posts... but that's another matter).

ChristinaZuniga
New Participant
August 18, 2016

Thank you Sanford!