I'd like to add offline support for the tracker.
I think this can be added with an onerror callback on the image load. Would it make sense to push this through the a "setBeaconError" for the tracker, or would you prefer a different approach?
// in initialization
_snaq.push(['setBeaconError', function() { ... } ]);
...
// Added to tracker
setBeaconError: function( onError ) {
configBeaconError = onError;
}
..
// In getImage.
if( configBeaconError ) {
img.onerror = configBeaconError;
}
I'd like to add offline support for the tracker.
I think this can be added with an onerror callback on the image load. Would it make sense to push this through the a "setBeaconError" for the tracker, or would you prefer a different approach?