Adobe Launch. Setting s.prop with custom code. Strange behaviour. | Community
Skip to main content
New Participant
June 25, 2021
Solved

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

  • June 25, 2021
  • 2 replies
  • 2301 views

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,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Brian_Johnson_

@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";

 

2 replies

Brian_Johnson_
Brian_Johnson_Accepted solution
New Participant
June 28, 2021

@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";

 

New Participant
June 28, 2021
Thanks evolytics_brian!
New Participant
June 25, 2021

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.