Adobe Analytics UTM Tracking: Convert UTM to Campaign ID (cid)

Adobe Analytics BCS 7 years ago (2019-11-15) 8049 Views 0 Comments

Updated: March 26, 2026

UTM parameters are a common way to identify marketing traffic. A typical campaign URL might contain:

utm_source=google
utm_medium=cpc
utm_campaign=summer_sale
utm_content=blue_banner
utm_term=running_shoes

The challenge is that Adobe Analytics does not automatically turn these UTM parameters into separate reportable dimensions. Adobe Analytics uses the Campaign variable—commonly represented by s.campaign or v0—for tracking codes.

How the Data Flow Works

The implementation follows this pattern:

Landing-page URL————>UTM parameters————>s.campaign / Tracking Code————>Classification Set————>Separate UTM dimensions in Adobe Analytics

For example, the URL parameters can be stored as:

google|cpc|summer_sale|blue_banner|running_shoes

Classification rules then map each position to a separate classification:

utm_source | utm_medium | utm_campaign | utm_content | utm_term

 

Step 1: Capture the UTM Parameters in s.campaign

In Adobe Analytics, click Adobe Launch → Adobe Analytics Extension → Configure Tracker Custom Code, use the following code:

Adobe Analytics UTM Tracking: Convert UTM to Campaign ID (cid)

The code always writes values in the same order:

utm_source|utm_medium|utm_campaign|utm_content|utm_term

For this URL:

https://example.com/?utm_source=google&utm_medium=cpc&utm_campaign=summer_sale&utm_content=blue_banner&utm_term=running_shoes

Adobe Analytics receives:

google|cpc|summer_sale|blue_banner|running_shoes

 

Step 2: Create a Classification Set

In Adobe Analytics, go to「Components」——「Classification sets」——「New」:

Adobe Analytics UTM Tracking: Convert UTM to Campaign ID (cid)

Key Fields

  • Name:Typically follows: Report Suite + Variable + Classifications
  • Notify of issues:The owner responsible for managing the set
  • Subscriptions:Select at least one report suite and the classification variable

Save after configuration.

 

Step 3: Add Classification Fields (Schema Setup)

Split s.campaign into utm_source、utm_medium、utm_campaign、utm_content、utm_term

Open the Classification Set,click「Schema」——「Add」,and create each UTM field

Adobe Analytics UTM Tracking: Convert UTM to Campaign ID (cid)

Repeat until all required UTM dimensions are added,final effects:

Adobe Analytics UTM Tracking: Convert UTM to Campaign ID (cid)

 

Step 5: Configure Classification Rules

Click 「Rules」,Drag Regular Expression into the workspace,set as follows::

Adobe Analytics UTM Tracking: Convert UTM to Campaign ID (cid)

These rules use regex to split the pipe-delimited string and assign values to each classification.

Click Save Rules after setup.

 

Step 5: Test the Rules

Before activating the rules, test a sample campaign value.

User google|cpc|summer_sale|holidy|shoe,Click Test Rule Set.

Adobe Analytics UTM Tracking: Convert UTM to Campaign ID (cid)

If configured correctly, each value will mapping correct.

Step 5: Data Validation

Testing the rule set proves that the classification logic works with a sample value. It does not prove that your website is sending the expected campaign value.

Summary

Adobe Analytics does not automatically parse UTM parameters into separate dimensions. To make UTM data reportable, capture the parameters in a consistent order, store them in the campaign variable, and use a Classification Set to split the value into individual classifications.

Like (4)
Post my comment
Cancel comment
Expression Bold Strikethrough Center Italic

Hi, you need to fill in your nickname and email!

  • Nickname (required)
  • Email (required)
  • Website