Forum Moderators: DixonJones

Message Too Old, No Replies

Google Analytics and XMLHttpRequest

Can my Ajax calls also be tracked?

         

karaokeyoga

6:20 pm on Aug 8, 2006 (gmt 0)

10+ Year Member



I recently changed my site to not serve a new page in many cases. Instead, I use XMLHttpRequest and update the existing page.

Is there any way to include these Ajax-style pseudo-page serves in my Google Analytics stats?

I'm assuming that I can make a call to urchinTracker() whenever I call XMLHttpRequest() but I'm wondering if I also have control of the referrer?

Conceptually, I guess I want to do something like this:

urchinTracker( '/please/track/this' );

Ideas?

karaokeyoga

7:59 pm on Aug 8, 2006 (gmt 0)

10+ Year Member



Yes, it's easy:

[adwords.google.com...]