Skip to content

tagr/Google-Analytics-Event-Tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

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


About

A method to add event tracking with Google Analytics to links, using CSS class names.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages