The New 'Universal' Google analytics script on an AJAX based website
问题 Google analytics now comes in two options: 'Classic' and the new 'Universal' which has more features. (Actually the 'Universal' analytics has been available to paying customers for a while, but now its available for free!) With the 'Classic' analytics, which looks like this: <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXX-Y']); _gaq.push(['_trackPageview']); (function() { SOME MORE CODE })(); </script> I have found from much googling that to track