I’m trying to implement google analytics code into our system that is mainly ajax driven calls. I have setup $.ajaxSetup to handle some default ajax behaviour and want to pass the requested url to the analytics function, namely pageTracker._trackPageview(“url”); so as to not implement this everywhere a call is made.
Appreciate any help thanks! 😉
Charl.
I think you are probably referring to extending ajax with prefilters.
Prefilters:
Example:
Something like that should work.