Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.23 KB

README.md

File metadata and controls

38 lines (28 loc) · 1.23 KB

Google Analytics Event Tracking Plugin for jQuery

GAEvent is a small plugin (<600B minified & compressed) that enables event tracking in Google Analytics (by ga.js or the newer Universal Analytics)

GAEvent uses jQuery, so the syntax to start tracking is very simple:

$('.yourElements').gaEvent();

If you want to customize the data sent to Google, just add the options like so:

$('.yourElements').gaEvent({
  action: 'tap',
  category: 'Google Analytics Event Tracking Category',
  label: 'Custom Label',
  value: 1.25
});

Author

Andy Merhaut: Twitter- @foobarjs Site-[https://andymerhaut.com]

I am a web developer in Clearwater, Florida, USA

References