Embed script v13

Our public script is now at v13. You get it automatically with latest.js. If you use SRI, update to the v13 script and hash.

Improvements

The automated events script now also collects:

  • Clicks on links added after the page loaded, like in single-page apps or content that loads later.
  • Clicks before the page finished loading, once both scripts have loaded.
  • Clicks on links where your own code calls stopPropagation() on an element inside the link. This doesn’t apply to links with data-simple-event: their inline event isn’t sent when the click is stopped.

It reads a link’s href, title and data-simple-event at the moment of the click, so a link that changed after the page loaded is collected as it is then. Event names and metadata stay the same.

If you are a developer you might want to see what changed in our open-source repository.