Created
March 6, 2013 18:59
-
-
Save Majkl578/5102017 to your computer and use it in GitHub Desktop.
nette.ajax.js + Google Analytics
This file contains hidden or 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
// push new URL into GA pageview tracker | |
$.nette.ext('ga', { | |
success: function (payload) { | |
if (payload.url) { | |
_gaq.push(['_trackPageview', payload.url]); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment