tags:

views:

20

answers:

1

I have a PHP (5+) based website.

I want to track registered users of my site using Google Analytics. I basically just wish to grab their session id (or some way to identify each specific user)and view their movements and site usage from my Google Analytics dashboard.

Can this be done? If so, any guidance would be most welcome.

GF

A: 

I believe the best way to do this is via a custom variable: _setCustomVar(index, name, value, opt_scope)

It would be up to you to identify the 'value' as a unique session id for the user. The scope in your case would be either session(2) or visitor(1) depending on how you want to track it. http://code.google.com/intl/en/apis/analytics/docs/tracking/gaTrackingCustomVariables.html#setup