Search code examples
tagsanalyticsadobe-analytics

SiteCatalyst image request onreadystatechange



Is there any possibility of "listening" to the state of GET SiteCatalyst image requests ?
I'd like to run a callback function only when the requests are over, to be more clear when they receive the 200 status code and I'm sure they're done.

I'm confident no "built-in" method is available and maybe I should hack the core s.track.s.t() function...?

Thanks a lot.


Solution

  • You are right, there is no global "built-in" callback method for when the Adobe Analytics request is complete.

    A couple notes I should mention to you about attempting to hack the core code:

    1) If you are using the AppMeasurement library version 1.4.1+, in some circumstances, a POST request may be made instead of an image request.

    2) Responses that are not 200/OK or otherwise completed/successful does not necessarily mean the data failed to be sent to Adobe. Most common scenario is a NS_BINDING_ABORTED error returned.