Skip to content

Instantly share code, notes, and snippets.

@lancebecker
Created August 21, 2013 14:16
Show Gist options
  • Save lancebecker/6295014 to your computer and use it in GitHub Desktop.
Save lancebecker/6295014 to your computer and use it in GitHub Desktop.
GAQ in one data prop
<a href="#" data-track='{"category":"categoryName", "action":"click", "label":"labelName"}'>
TrackingManager.prototype._standardGaq = function(o) {
return _gaq.push(['_trackEvent', o.category, o.action, o.label]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment