Created
July 28, 2011 22:14
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.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