Order of execution of _satellite.track

Avatar

Avatar
Validate 1
Level 1
divyatej_akella
Level 1

Likes

2 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
divyatej_akella
Level 1

Likes

2 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
divyatej_akella
Level 1

07-09-2017

Hi Team,

I am working on a POC in launch where I am calling different direct call rules in a for loop.

Ex: rules.forEach(function(rule){
     _satellite.track(rule);
});

I am interested to know how this execution will happen. Right now I tested it for 3 rules. I am observing that rules triggered message but the execution of the contents of rule is a bit delayed than the rule fired message.

The reason for doing this experiment is having the ability to add all rules that should be non blocking as direct cal rules and start calling them at the end of the page. I think this will give the current DTM behaviour of third party scripts as async.

Can you please let me know the steps in execution of direct call rules and how custom scripts that we added in direct call rule will execute?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 5
Employee
Aaronius9er9er9
Employee

Likes

34 likes

Total Posts

44 posts

Correct reply

16 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile

Avatar
Boost 5
Employee
Aaronius9er9er9
Employee

Likes

34 likes

Total Posts

44 posts

Correct reply

16 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile
Aaronius9er9er9
Employee

08-09-2017

Hi there.

When you call _satellite.track(), the actions for the rule will be triggered immediately. The actual task that the action performs may be asynchronous though. It sounds like you're dealing with rules using the Custom Code action. If the rules use a Page Top or Page Bottom event, the custom code will already be embedded in the Launch library and will run immediately. If the rules use an event that is NOT Page Top or Page Bottom, the custom code will be loaded asynchronously as separate files.

This may be helpful for you to read: Load Order for Rules :: DTM vs. Launch

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 1
divyatej_akella
Level 1

Likes

2 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
divyatej_akella
Level 1

Likes

2 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
divyatej_akella
Level 1

10-09-2017

Thanks for the reply. This answers the questions that I have.