Skip to content

Instantly share code, notes, and snippets.

@mavimo
Created July 2, 2012 10:03
Show Gist options
  • Save mavimo/3032420 to your computer and use it in GitHub Desktop.
Save mavimo/3032420 to your computer and use it in GitHub Desktop.
GA tracking async
Galleria.get()[0].bind('image', function(e) {
_gaq.push(['_setCustomVar', 1, 'Galleria', window.location.href, e.index]);
_gaq.push(['_trackPageview']);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment