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

DTM add s.clearVars() to rules

Avatar

Avatar
Give Back 3
Level 9
MichaelWon
Level 9

Likes

446 likes

Total Posts

91 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Ignite 5
Ignite 3
Give Back
Ignite 1
View profile

Avatar
Give Back 3
Level 9
MichaelWon
Level 9

Likes

446 likes

Total Posts

91 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Ignite 5
Ignite 3
Give Back
Ignite 1
View profile
MichaelWon
Level 9

25-05-2017

It would be great to add an s.clearVars(); option to each rule. We are moving toward a single page app framework with multiple events firing on a page. It would be nice to have the option to either globally or locally set s.clearVars to rules. As of now we are manually adding it at the top of custom code in each rule where it is required.
2 Comments

Avatar

Avatar
Establish
Employee
ericmatisoff
Employee

Likes

156 likes

Total Posts

287 posts

Correct reply

79 solutions
Top badges earned
Establish
Give Back 200
Give Back 100
Give Back 50
Coach
View profile

Avatar
Establish
Employee
ericmatisoff
Employee

Likes

156 likes

Total Posts

287 posts

Correct reply

79 solutions
Top badges earned
Establish
Give Back 200
Give Back 100
Give Back 50
Coach
View profile
ericmatisoff
Employee

30-05-2017

Hi there - My recommendation is to include s.clearVars() in the callback function (s.registerPostTrackCallback). Some details on using it are here: https://marketing.adobe.com/resources/help/en_US/sc/appmeasurement/release/c_release_notes_mjs.html

 

I do believe this functionality will be a built-in feature coming soon to Adobe Launch.

Avatar

Avatar
Give Back 200
Community Advisor
Stewart_Schilling
Community Advisor

Likes

348 likes

Total Posts

279 posts

Correct reply

85 solutions
Top badges earned
Give Back 200
Ignite 5
Ignite 3
Give Back 100
Give Back 50
View profile

Avatar
Give Back 200
Community Advisor
Stewart_Schilling
Community Advisor

Likes

348 likes

Total Posts

279 posts

Correct reply

85 solutions
Top badges earned
Give Back 200
Ignite 5
Ignite 3
Give Back 100
Give Back 50
View profile
Stewart_Schilling
Community Advisor

15-06-2018

I've used that on SPA's and it works like a charm.

Just drop this into your AA Tool custom code (outside of doPlugins)

/****************** Clear vars after each beacon  *******************/

s.registerPostTrackCallback(function(){

  _satellite.notify("s.registerPostTrackCallback - calling s.clearVars()");

  s.clearVars();

});