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

DTM add s.clearVars() to rules

Avatar

Avatar
Validate 1
MVP
MichaelWon
MVP

Likes

434 likes

Total Posts

91 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Validate 1
MVP
MichaelWon
MVP

Likes

434 likes

Total Posts

91 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile
MichaelWon
MVP

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
Coach
Employee
ericmatisoff
Employee

Likes

151 likes

Total Posts

275 posts

Correct Reply

77 solutions
Top badges earned
Coach
Contributor
Shape 10
Shape 1
Ignite 5
View profile

Avatar
Coach
Employee
ericmatisoff
Employee

Likes

151 likes

Total Posts

275 posts

Correct Reply

77 solutions
Top badges earned
Coach
Contributor
Shape 10
Shape 1
Ignite 5
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
Springboard
MVP
StewSchilling
MVP

Likes

339 likes

Total Posts

276 posts

Correct Reply

85 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Establish
Contributor
View profile

Avatar
Springboard
MVP
StewSchilling
MVP

Likes

339 likes

Total Posts

276 posts

Correct Reply

85 solutions
Top badges earned
Springboard
Bedrock
Validate 1
Establish
Contributor
View profile
StewSchilling
MVP

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();

});