Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

ACDL tracking Adobe Analytics variables

Avatar

Level 1

Working with the adobe client data layer. I see only some variables being passed back in the beacon. Not all.

 

The variables are set in the data layer. I am setting these in Adobe Analytics set variables (custom code):

The structure where the component is found:

 

5.
component:
   form-container-123456:
        formId: "form-container-123456"
        formName: "main contact"
        formType: "contact us"
        pageOfForm: "home"

 

 

How I am setting the variables. 

 

Tags > rule > actions (formStart) > AA set variables custom code:

 

 

s.linkTrackVars = "events,eVar10,evar33,eVar83,prop10";
s.linkTrackEvents = "event12";

var myComponentPath = event.message.eventInfo.path;
var acdlComponent = window.adobeDataLayer.getState(myComponentPath);

s.eVar10 =acdlComponent['formId'];
s.eVar83 =acdlComponent['formType'];
s.eVar33 =acdlComponent['pageOfForm'];
s.prop10 =acdlComponent['formName'];

s.events = "event12";
s.tl(true,"o","Contact Us Start");
s.clearVars(); 

 

 

I seem only pick up 3. eVar10, prop10 and eVar83. Missing eVar33.

 

Not sure what might be the cause of this. I also tried using s.apl() but that didn't work.  If anyone has any guidance/insight it's appreciated!

 

1 Accepted Solution

Avatar

Correct answer by
Level 4
s.linkTrackVars = "events,eVar10,evar33,eVar83,prop10";

You have a lower case v for evar33 and it should be eVar33

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4
s.linkTrackVars = "events,eVar10,evar33,eVar83,prop10";

You have a lower case v for evar33 and it should be eVar33

Avatar

Level 1

thanks for catching it - :magnifying_glass_tilted_right: need one of these here at my desk lol