Currently in my website, I used HTML5’s pushState() and popState in links to increase the speed. However, this doesn’t really change the real URL and it looks like it will affect and mess up the Google Analytics‘s code. (doesn’t show a url change) Is there a possible solution for this? Thanks,
Currently in my website , I used HTML5’s pushState() and popState in links to
Share
If you are using the newer
analytics.jsAPI, Google’s documentation requires the following code to trigger the event:If you are using the older
ga.jsAPI, David Walsh suggests AJAX websites to use the_gaq.pushmethod: