Expand my Community achievements bar.

SOLVED

Adobe Launch. Setting s.prop with custom code. Strange behaviour.

Avatar

Level 2

Hi.

This is the question. In Adobe Launch I've created a rule using Adobe Client Data Layer Extension so that, when pushing a custom event into the adobeDataLayer, it fires the clearing of variables, the setting of some variables and launches the beacon. One of these variables is set through custom code, like this:

s.prop7 = "RandomText3";

, but when the rule is properly fired, prop7 is not set.

However, just to test a hypothesis, I created another rule to fire on DOM Ready which sets the same variable in two different ways.

First case - It sets prop7 using the standard menu.

Second case - It sets prop7 using the custom code s.prop7 = "RandomText3";

In the first case, after firing the rule associated to DOM Ready, I fire the second rule with a custom event and prop7 is set.

In the second case, following the same procedure, prop7 is not set.

I've been thinking and trying different things by I can't find the reason for this strange behaviour.

Any ideas?

Thanks in advance.

IL.

PS: I've just edited the post. Sorry,

1 Accepted Solution

Avatar

Correct answer by
Level 8

@ivanlorenzo 

I know you posted that you found a solution, but I wanted to call out that if you wanted to use s.tl() instead of s.t(), you can. You'll have to make sure to include prop7 in s.linkTrackVars, though:

s.prop7 = "RandomText";
s.linkTrackVars += ",prop7";

 

View solution in original post

3 Replies

Avatar

Level 2

Ok. Solved. I answer myself.

The problem was that I was using the wrong beacon: 

s.tl(): Send data to Adobe Analytics and do not treat it as a page view

, instead of:

s.t(): Send data to Adobe Analytics and treat it as a page view.

IL.

Avatar

Correct answer by
Level 8

@ivanlorenzo 

I know you posted that you found a solution, but I wanted to call out that if you wanted to use s.tl() instead of s.t(), you can. You'll have to make sure to include prop7 in s.linkTrackVars, though:

s.prop7 = "RandomText";
s.linkTrackVars += ",prop7";