URL parameters are simple name/value pairs used to store or pass data in the “query string” of a URL.
The query string of a URL begins with a question mark. So in the example URL below, everything before the question mark is the URL itself and everything after the question mark is the query string:
Multiple name/value pairs are separated by an ampersand (&), so this query string actually has two parameters:
cmc_goal=e
and …
cmc_ref=signup
And you can probably guess at this point that when using a URL Parameter the name is the value on the left, followed by an equals sign (=) and then the value of the parameter on the right.
Caution: When adding parameters to a URL, first notice if the URL already contains a question mark / query string or not.
If it does, the first new parameter you add should be preceded by an ampersand. In this case, you are adding new parameters to an existing query string.
If it doesn’t, the first parameter should be preceded by a question mark. In this case, you are creating the query string and then adding your parameters.
Remember, the question mark denotes the start of the query string and a URL can only have one query string.
If you build a URL with two question marks in it, it won’t work properly.
Article 955 Last updated: 01/06/2025 12:56:16 PM https://www.clickmagick.com/kb/?article=955