mixcloud/django-experiments — pull request #87 by fmoga (2012-12-06 14:57:35+00:00)
Title: Improve reporting goals via cookie

* Monitor for elements with the `data-experiments-goal` attribute rather than scanning for them on `$(document).ready`
* Set the cookie in the capture phase of event handling so that they'll already be set in the bubbling phase which might generate requests. IE8 will fallback to the current approach, setting the cookie in the bubbling phase which does not guarantee that the cookie will be set by the time the first request is issued. However, subsequent requests (if any) will pick it up.
* Add support for recording multiple goals on the same element via cookie.