UTM to Campaign ID (cid) Mapping in Adobe Analytics

Adobe Analytics BCS 6 years ago (2019-11-15) 7193 Views 0 Comments

Updated: December 11, 2025

UTM parameters are the most commonly used method for tagging traffic sources in the industry, and many websites rely on UTM values to track marketing campaigns. However, Adobe Analytics uses cid (Campaign ID) by default and does not automatically parse UTM parameters. Therefore, if you want to use UTM values in Adobe Analytics reports, you must configure this manually.

Convert UTM Parameters into cid

In Adobe Analytics, you can use the Configure Tracker Custom Code option in the Adobe Analytics Extension to extract UTM values from the URL and write them into s.campaign.

Paste this code here: Adobe Launch → Adobe Analytics Extension → Configure Tracker Custom Code

UTM to Campaign ID (cid) Mapping in Adobe Analytics

This will combine all UTM fields (e.g., utm_source, utm_medium, utm_campaign, etc.) into a single string separated by |, and store it in s.campaign.

 

Create Conversion Classifications

Next, go to Adobe Analytics: Admin → Report Suites → Conversion Classifications → Campaign

Internally, Campaign corresponds to eVar0.

Create five classifications here to store the UTM parameters.

UTM to Campaign ID (cid) Mapping in Adobe Analytics

Note: You may create up to 255 classification fields.

Build Classification Rules (Classification Rule Builder)

This allows Adobe to automatically split the UTM string written in s.campaign into individual classification fields.

Step 1: Create a Rule Set

Go to:Admin → Classification Rule Builder → Add Rule Set

Create a new Rule Set and associate it with:

UTM to Campaign ID (cid) Mapping in Adobe Analytics

Select which report suites and variables you will use for this rule set:

UTM to Campaign ID (cid) Mapping in Adobe Analytics

Step 2: Add Rules

The cid value will follow this format: value1|value2|value3|value4|value5

So you must create regex-based extraction rules. Add a new rule → choose Regex → Use the following pattern: ^(.*)\|(.*)\|(.*)\|(.*)\|(.*)$

UTM to Campaign ID (cid) Mapping in Adobe Analytics

You will need five rules, each mapping one part of the regex to one UTM classification field.

After configuration, the result should look like this:

UTM to Campaign ID (cid) Mapping in Adobe Analytics

 

Step 3: Test the Rule Set

Click Test Rule Set on the right side.

UTM to Campaign ID (cid) Mapping in Adobe Analytics

In Sample Keys, enter: test1|test2|test3

UTM to Campaign ID (cid) Mapping in Adobe Analytics

After running the test, you should see the five values correctly assigned to the five classification fields.

UTM to Campaign ID (cid) Mapping in Adobe Analytics

 

If the test passes, check Rule overwrite any existing values and Activate the rule set.

Data Validation

Once the rule is activated, data should appear in Adobe Analytics reports within approximately 24 hours.

UTM to Campaign ID (cid) Mapping in Adobe Analytics

Verify the following:

  • Whether Campaign (cid) is being written correctly
  • Whether the five UTM classification fields display the correct values
  • Whether campaign reports can be segmented and analyzed using your UTM dimensions

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