Demonstration and documentation

You'll be able to see how users are clicking in the various areas, and on which specific links — not based just on the target URL.

When you load and invoke foundationExtendEBI.js, the script will check if you use Google Analytics and, if so, provide deeper insight into link clicks and certain key combos.

These events will be sent as JS Events to your Google Analytics account.

Here's the abilities you get:

If you're not seeing the events in your account:

If you'd like to extend the code, copy the code from ebiGaIndicateLoaded() and add events in the fashion of:

jQuery("body.google-analytics-loaded .my-custom-area").on('mousedown', 'a, button', function(e) {
    analyticsTrackInteraction(e.target,'Custom tracked area');
  });

If you don't use Google Analytics and use a different solution (suchas Piwik) this method should be easy to adapt.