Add the desired tracking code to a URL

Once you have the desired tracking code value, you can add it to any links that you post online, such as advertisements, social media, or email. Adding these tracking codes typically take place in a link’s query string. Which query string parameter you use depends on your organization’s tracking requirements; a common query string parameter is cid (short for campaign ID). Some organizations who also use Google Analytics might already have multiple campaign query string parameters like utm_source, utm_medium, and others.

Adding query strings to a link in an email would look similar to the following:

https://example.com?cid=EM989027

Include campaign variables in your implementation

Adobe Analytics has a dedicated Tracking code dimension that you can use to measure various marketing efforts across your organization. However, different organizations might have different tracking requirements. It is important to reference your organization’s Solution design document to consistently track the right values in the right variables.

If your organization has not yet set up campaign tracking, you can adjust your implementation to set the campaign variable. See the getQueryParam method to learn how you can collect query string parameter values specific to your organization’s implementation.

If your organization collects utm query strings, you can choose to either:

  • Send all utm query strings into the Tracking Code dimension as concatenated values. You can then use Classification rules to create additional dimensions that focus on each utm parameter. This method has a more complex learning curve, but does not use any extra eVars.
  • Send each utm query string into a separate eVar. This method is more simple to implement overall, but requires the use of extra eVars.