views:

20

answers:

1

Hi,

I've read about Google and Google's possibility to crawl ajax pages using hash followed by a exclamation mark in the url, #!

( http://code.google.com/web/ajaxcrawling/docs/getting-started.html )

I have changed my website and I was wondering about Google Analytics. How do I track my visitors ajax requests?

Thank you in advance!

A: 

Google Analytics has a _trackPageview function that you can call when you load content via AJAX to record a pageview. There's details in this Google Analytics Help topic and undoubtedly more in the GA docs.

Jordan
Can I include a hash char in the line, something like pageTracker._trackPageview('/page#!something'); ?
Erik
I'm not sure. Give it a try and find out?
Jordan
I sure will. Thanks for the help! :)
Erik