abba icon indicating copy to clipboard operation
abba copied to clipboard

Add callback to .complete()

Open typpo opened this issue 12 years ago • 1 comments

Add a callback to Abba.complete() that fires when tracking image has loaded.

Use case: you want to record a completion when user clicks something. In many cases (eg. signup or purchase button) this links to a different page, but you don't want to navigate away until the completion was recorded.

typpo avatar Mar 26 '13 23:03 typpo

The reason I haven't done this in the past is that I think a timeout is much better for situations like this. Yes, you may not record every conversion properly, but it provides a much better user experiences.

In situations where people control the landing page (I think probably the majority), an anchor fragment is much more preferable: https://github.com/maccman/abba#links

maccman avatar Mar 27 '13 16:03 maccman