Skip to content

Instantly share code, notes, and snippets.

@perifer

perifer/track.js

Created Mar 2, 2013
Embed
What would you like to do?
Track virtual page views in Google Analytics if (window._gaq) { window._gaq.push(['_trackPageview', window.location.pathname + href]); }
if (window._gaq) {
window._gaq.push(['_trackPageview', href]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment