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
BedrockMission!

Learn More

View all

Sign in to view all badges

Page Load Rule and s.clearvars Question

Avatar

Avatar
Give Back
Level 1
scottt23929401
Level 1

Like

1 like

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Give Back
Validate 1
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Give Back
Level 1
scottt23929401
Level 1

Like

1 like

Total Posts

11 posts

Correct Reply

1 solution
Top badges earned
Give Back
Validate 1
Boost 1
Applaud 5
Affirm 1
View profile
scottt23929401
Level 1

18-02-2020

I have a rule that sets variables for adobe analytics on my global page load rule on page top. then I set the s.t() beacon on windows loaded because I have Dun and Bradstreet firing data API collection in between. What would happen if I remove the s.clearvars after the s.t() beacon fires on windows loaded? 

 

The reason I ask is because another extension (Qualitrics) needs access to the global variables here: s_c_il[1].eVar1 but since I clearvars they are undefined after windows loaded.

 

Questions:

  1. Do I even need clearvars after I send a beacon for page load collection? wont the values get overwritten on the next page with the new values anyway? I dont have SPA pages so that is not a concern.
  2. Can I set clearvars at the beginning of the next page instead of clearing vars after the beacon?

 

I just want to better understand the potential impacts before making changes.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
Level 2
Haran_Huang
Level 2

Likes

15 likes

Total Posts

53 posts

Correct Reply

6 solutions
Top badges earned
Establish
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Establish
Level 2
Haran_Huang
Level 2

Likes

15 likes

Total Posts

53 posts

Correct Reply

6 solutions
Top badges earned
Establish
Validate 1
Boost 5
Boost 3
Boost 10
View profile
Haran_Huang
Level 2

20-02-2020

No need.

Clearvars are generally used when the data element is none, and you need to actively clear it to avoid using the previous value, so generally do not choose the type of none when setting the data element.

Qualitrics uses global variables, which can be placed in the same rule, and Actions can be side by side.

Answers (1)

Answers (1)

Avatar

Avatar
Boost 1
Level 1
Kranthi_Mortha1
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
Kranthi_Mortha1
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
Kranthi_Mortha1
Level 1

20-02-2020

No need to set clearvars on Page Loads (Before or After)

Regards,

Kranthi