Skip to content

Instantly share code, notes, and snippets.

@gjohnson
Created July 28, 2011 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gjohnson/1112707 to your computer and use it in GitHub Desktop.
Save gjohnson/1112707 to your computer and use it in GitHub Desktop.
fun with jquery, functions, and being too lazy to track google analytic events
$.ga
('use')
('setAccount', 'UA-83919101')
('trackPageview')
('trackPageLoadTime')
('setCustomVar', 1, 'OrderID', 1)
('events')
('click', 'h2', ['Label 1', 'Action 1', 'Value 1'])
('click', '#breadcrumbs', function(){ return ['Label 1', 'Action 1', this.value]; })
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment