Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards
SOLVED

How do I correctly use the tracking code dimension for campaigns?

Avatar

Level 3

Hi!

I admit "correctly" can mean different things depending on the use case. For my team, we want to understand a basic set up to use the tracking_code dimension to measure:

  1. Clicks (how many people clicked the link)
  2. How far did the user drill into our website (specifically, page views and what pages did the user look at after the initial click)

Some background on our setup:

  1. We are using the ?cid= approach today in our emails, and are able to see how many people click a link using the Campaign Click Through metric. 
  2. We are not sure how to determine what the user does next after an initial click. Do we need to store the CID value on our data layer and pass into an evar? Or, can we do this in default reporting by using other dimension/metrics?
  3. In our Admin set up, I noticed that the Tracking Code dimension is set to Expire After "Hit." Should this be extended to 1 week (or more) in order to see where the user is visiting on our site after clicking a ?cid= link?
  4. From this post, I too learned that we do not have the Tracking Code Instances enabled. Is this something we would need? https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/tracking-code-campaign-va...

Happy to review any docs/videos that you suggest! I've tried going through some of the documentation and posts, but looks like there might be a few ways to do this. What have others done or are doing?

Thank you!

Curtis

Basically, we want the ability to use the Tracking Code dimension to attribute click success and page depth for analyzing campaign success. 

Will using Tracking Codes properly help us reach this goal, or is there some other

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor and Adobe Champion

Hi Curtis,

 

Tracking Code or Campaign Click Throughs are the same thing, it's just that older suites have the older name, and newer suites have the newer name.. both are registered as the standard eVar0. All eVars (including the eVar0) have an instance metric associated to them, it's likely called Campaign Click Through Instances (basically the name of the dimension plus "Instances"). It's not actually possible to disable these instances, they are part of the core behaviour of eVars.

 

So normally the Tracking Code (whatever it's called) has a 1 week attribution.. while you are free to change this, I would not go any lower than Visit which I will explain below.

 

For this example, let's pretend we have a Visit expiry (I am going to use eVar0 to avoid potential naming confusion)

 

  • User clicks on Marketing Email link
  • Page A (?cid=x)
    • eVar0 set to "x"
    • eVar0 instance triggered
  • Page B
    • eVar0 persists value "x" (due to visit level expiry)
    • eVar0 instance not triggered
  • Page C
    • eVar0 persists value "x" (due to visit level expiry)
    • eVar0 instance not triggered
  • Order (Action)
    • Purchase event triggered
    • eVar0 persists value "x" (due to visit level expiry)
    • eVar0 instance not triggered
  • Second Marketing Email (during the same visit)
  • Page D
    • eVar0 set to "y"
    • eVar0 instance triggered
  • Page E
    • eVar0 persists value "y" (due to visit level expiry)
    • eVar0 instance not triggered
  • Order (Action)
    • Purchase event triggered
    • eVar0 persists value "y" (due to visit level expiry)
    • eVar0 instance not triggered

 

In your current set up, you will see the values against Page A only.. you won't see the persistence through the visit, or see the association to the order made as a results of the marketing email... Now, you can apply custom attribution to the Order to see the last touch campaign was "x", but you cannot apply custom attribution onto the Page View metric.. so to get the page you would need to create a visit level segment.. but even this gets messy with multiple campaigns in a visit...

 

In my scenario though, I have everything I need without having to create fancy logic.

 

The Campaign Instance will apply only to Page A (with the value x) and Page D (with the value y)... these are the "direct links". I can pair the Campaign Dimension with the Instance to get the number of direct links, or with Page Views to get all the pages during that visit associated to the campaign (i.e. for Campaign X that would be Page A, B and C, plus the first order; and for Campaign Y that would be Page D and E and the second order) or with Unique Visitors to get the number of users, etc.

 

To get an average Pages per Campaign, I can create a calculated metric for PVs/Instances.

 

        Instance Page View Orders
Campaign       2 5 2
  X     1 3 1
    Page   1 3 1
      A 1 1 0
      B 0 1 0
      C 0 1 1
  Y     1 2 1
    Page   1 2 1
      D 1 1 0
      E 0 1 1

 

Now, it what expiry you set for your Campaigns is up to you... I have both the default 1 week on the tracking code, but because we use UTMs; I set up a conjoined value to pass to the default Tracking Code, but then I also set up individual eVars for the combined value and for each UTM with Visit level attribution.. for our needs, we use the Visit far more often than the 1 week version, but both have their place, and we use the most appropriate dimension for different use cases.

 

 

However, even with a single default 1 week setup, you can always use a segment to isolate visits that contain the instance of the eVar, so there are lots of options available.

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor and Adobe Champion

Hi Curtis,

 

Tracking Code or Campaign Click Throughs are the same thing, it's just that older suites have the older name, and newer suites have the newer name.. both are registered as the standard eVar0. All eVars (including the eVar0) have an instance metric associated to them, it's likely called Campaign Click Through Instances (basically the name of the dimension plus "Instances"). It's not actually possible to disable these instances, they are part of the core behaviour of eVars.

 

So normally the Tracking Code (whatever it's called) has a 1 week attribution.. while you are free to change this, I would not go any lower than Visit which I will explain below.

 

For this example, let's pretend we have a Visit expiry (I am going to use eVar0 to avoid potential naming confusion)

 

  • User clicks on Marketing Email link
  • Page A (?cid=x)
    • eVar0 set to "x"
    • eVar0 instance triggered
  • Page B
    • eVar0 persists value "x" (due to visit level expiry)
    • eVar0 instance not triggered
  • Page C
    • eVar0 persists value "x" (due to visit level expiry)
    • eVar0 instance not triggered
  • Order (Action)
    • Purchase event triggered
    • eVar0 persists value "x" (due to visit level expiry)
    • eVar0 instance not triggered
  • Second Marketing Email (during the same visit)
  • Page D
    • eVar0 set to "y"
    • eVar0 instance triggered
  • Page E
    • eVar0 persists value "y" (due to visit level expiry)
    • eVar0 instance not triggered
  • Order (Action)
    • Purchase event triggered
    • eVar0 persists value "y" (due to visit level expiry)
    • eVar0 instance not triggered

 

In your current set up, you will see the values against Page A only.. you won't see the persistence through the visit, or see the association to the order made as a results of the marketing email... Now, you can apply custom attribution to the Order to see the last touch campaign was "x", but you cannot apply custom attribution onto the Page View metric.. so to get the page you would need to create a visit level segment.. but even this gets messy with multiple campaigns in a visit...

 

In my scenario though, I have everything I need without having to create fancy logic.

 

The Campaign Instance will apply only to Page A (with the value x) and Page D (with the value y)... these are the "direct links". I can pair the Campaign Dimension with the Instance to get the number of direct links, or with Page Views to get all the pages during that visit associated to the campaign (i.e. for Campaign X that would be Page A, B and C, plus the first order; and for Campaign Y that would be Page D and E and the second order) or with Unique Visitors to get the number of users, etc.

 

To get an average Pages per Campaign, I can create a calculated metric for PVs/Instances.

 

        Instance Page View Orders
Campaign       2 5 2
  X     1 3 1
    Page   1 3 1
      A 1 1 0
      B 0 1 0
      C 0 1 1
  Y     1 2 1
    Page   1 2 1
      D 1 1 0
      E 0 1 1

 

Now, it what expiry you set for your Campaigns is up to you... I have both the default 1 week on the tracking code, but because we use UTMs; I set up a conjoined value to pass to the default Tracking Code, but then I also set up individual eVars for the combined value and for each UTM with Visit level attribution.. for our needs, we use the Visit far more often than the 1 week version, but both have their place, and we use the most appropriate dimension for different use cases.

 

 

However, even with a single default 1 week setup, you can always use a segment to isolate visits that contain the instance of the eVar, so there are lots of options available.

Avatar

Level 3

Thank you @Jennifer_Dungan ! We were able to take your steps and get this set up correctly in a Dev environment. I appreciate your help with all the details you provided!

 

Avatar

Community Advisor and Adobe Champion

You're very welcome.