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

Avatar

Avatar
Applaud 5
Level 1
ivanlorenzo
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Applaud 5
Shape 1
View profile

Avatar
Applaud 5
Level 1
ivanlorenzo
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Applaud 5
Shape 1
View profile
ivanlorenzo
Level 1

25-06-2021

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,

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Affirm 50
MVP
evolytics_brian
MVP

Likes

80 likes

Total Posts

170 posts

Correct reply

54 solutions
Top badges earned
Affirm 50
Applaud 25
Establish
Seeker
Give Back
View profile

Avatar
Affirm 50
MVP
evolytics_brian
MVP

Likes

80 likes

Total Posts

170 posts

Correct reply

54 solutions
Top badges earned
Affirm 50
Applaud 25
Establish
Seeker
Give Back
View profile
evolytics_brian
MVP

28-06-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";

 

Avatar

Avatar
Applaud 5
Level 1
ivanlorenzo
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Applaud 5
Shape 1
View profile

Avatar
Applaud 5
Level 1
ivanlorenzo
Level 1

Likes

0 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Applaud 5
Shape 1
View profile
ivanlorenzo
Level 1

25-06-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.