UTM tracking in Adobe Analytics | BCS

UTM tracking in Adobe Analytics

Adobe Analytics BCS 8 months ago (11-15) 686 Views 0 Comments

Many people use UTM to track traffic sources, but in adobe there is no UTM-like dimension by default, only one campaign.However,UTM-like effects can be achieved with some settings. Let’s take a look at how to set it up:

Step1、Write UTM information to a cookie

Copy the code below to CONFIGURE TRACKER USING CUSTOM CODE in the Adobe Analytics Extension, the purpose of this code is to write UTM information to the cookie.


/* Plugin Config */
s.usePlugins=true;
s.doPlugins=function(s) {
var utm_param = null;
source = encodeURIComponent(s.Util.getQueryParam("utm_source"));
medium = encodeURIComponent(s.Util.getQueryParam("utm_medium"));
campaign = encodeURIComponent(s.Util.getQueryParam("utm_campaign"));
content = encodeURIComponent(s.Util.getQueryParam("utm_content"));
term = encodeURIComponent(s.Util.getQueryParam("utm_term"));
if(source||medium||campaign||term||content) {
utm_param = [source,medium,campaign,term,content].join('|');
var cookieName='s_campaign';
var cookieValue=utm_param;

var date= new Date();
cookieName+’=’+cookieValue+’;expires=’+expirationTime+’;path=’+cookiePath;
date.setMonth(date.getMonth() + 6);
var success = s.Util.cookieWrite(cookieName, cookieValue, date);
}
s.campaign=s.Util.cookieRead(“s_campaign”);
}

 

 

 

UTM tracking in Adobe Analytics

Let’s do a test and see the UTM information written in the cookie or not, First release the launch configuration, then access the link with the UTM parameters, such as https://www.bbccss.com/?utm_source=test1&utm_medium=test2&utm_campaign=test3,Finally, look at the s_compaign inside the cookie whether there are parameters for storing UTM.

UTM tracking in Adobe Analytics

As you can see, the UTM parameter information was successfully written to the cookie.

%7C indicates that the URL is transcoded,test1|test2|test3|| After transcoding, it is test1%7Ctest2%7Ctest3%7C%7C

Step2、Conversion Classifications

Find the Conversion Classifications of your report suite, and then add the UTM parameters. The function of this is to split the Campaign into multiple fields for storage, and the corresponding field is UTM.

UTM tracking in Adobe Analytics

step3、Classification Rule Builder

Create a Rule Builder and configure matching rules:

UTM tracking in Adobe Analytics

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

UTM tracking in Adobe Analytics

 

Add a rule and match a condition to a classification, then specify the action to take. You can use regular expressions to match consistently formatted string values with a classification.

Create a Rule and select the Regular Expression ^(.*)\|(.*)\|(.*)\|(.*)\|(.*)$:

UTM tracking in Adobe Analytics

Create 5 rules, and finally configure it as:

UTM tracking in Adobe Analytics

 

The next step is test rule set:

UTM tracking in Adobe Analytics

 

Copy test1|test2|test3|| to Sample Keys and click run test:

UTM tracking in Adobe Analytics

You can see that the UTM parameters are split into the corresponding fields, indicates that the set classification is valid, return to rule set,Check Rule overwrite any existing values:

UTM tracking in Adobe Analytics

 

This is the rule for applying backtracking data to the past.

Finally click on activate.The Rule Set is now active and will process within the next 24 hours. The data can be seen in the Campaign report, as shown below, the corresponding UTM dimensions are here:

UTM tracking in Adobe Analytics


If you don't understand, You can leave a comment below or email me (haran.huang@ichdata.com).
Like (2)
Post my comment
Cancel comment
Expression Texture Bold Strikethrough Center Italic Sign in

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

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