since ‎22-09-2020
‎25-09-2020
tbaker73
Level 1
Re: Javascript - when a tracking call has completed?
Avatar

tbaker73

tbaker73
- Adobe Analytics
@yuhuisg The problem we are trying to solve is that the page calls on our site depend on an ajax call to complete before firing. The new platform we are integrating with requires a link tracker call to record its additional metrics, and this happens asynchronously (we can't control the timing of it - the trigger to it is nested in a callback from a script they load async). At certain times, the s.tl() call for the vendor metrics recording can precede the page tracking call (which corrupts the da...

Views

79

Likes

0

Replies

0
Re: Javascript - when a tracking call has completed?
Avatar

tbaker73

tbaker73
- Adobe Analytics
Thanks @evolytics_brian. We had looked into using registerPostTrackCallback but in this case, the handler needs to make a link tracker call back to our Adobe (using s.tl()). The docs for registerPostTrackCallback warn against this - "Do not call any tracking calls like t() or tl() inside the registerPostTrackCallback variable. Tracking functions in this variable cause an infinite loop of image requests!" Any other thoughts?

Views

120

Likes

0

Replies

0