Using Google Analytics to Track User Session
NickName:user277813 Ask DateTime:2010-03-11T19:45:53

Using Google Analytics to Track User Session

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.

Copyright Notice:Content Author:「user277813」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/2424584/using-google-analytics-to-track-user-session

Answers
chris.f.jones 2010-08-05T18:05:45

I believe the best way to do this is via a custom variable:\n_setCustomVar(index, name, value, opt_scope)\n\nIt would be up to you to identify the 'value' as a unique session id for the user.\nThe scope in your case would be either session(2) or visitor(1) depending on how you want to track it.\nhttp://code.google.com/intl/en/apis/analytics/docs/tracking/gaTrackingCustomVariables.html#setup",


More about “Using Google Analytics to Track User Session” related questions

Using Google Analytics to Track User Session

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 ...

Show Detail

Is it possible to track session duration for each user on Google Analytics?

I'm using Google Analytics to track user behavior. In order to get actionable insights, one thing I have to track is the session duration for users. Is it possible to track session duration for eac...

Show Detail

Google analytics track user behavior. Or possible?

I am searching for a way to track user behavior on my website. I want to know if it is possible to get a table with data looking something like this: +------+---------------+-----------------+----...

Show Detail

How google analytics track session if user force remove the android app

if user press device home button and remove app from recent app how google analytics track user's that session.

Show Detail

Google Analytics: Track events per user per session

I set up google analytics for an (unity) mobile app and everything works fine so far. Now I'm starting to look into how to track different user interactions and am not really sure what's the best w...

Show Detail

Can I track session duration of a specific user-id via Google Analytics?

I have an iOS app with Google Analytics to track engagement/retention, and I have been trying to set up a way to track the session durations of specific users. I followed all of the steps to send the

Show Detail

How does Google Analytics track session expiration?

The GA documentation, which was updated quite recently clearly states that GA uses a _utmb cookie, which is set by default to 30 minutes to track when a session expires: https://developers.google....

Show Detail

Track user activity using google Analytics

I am new to Google Analytics. We would like the analysis of our data data to focus on specific brand promotion, in my application I have the data from twitter, facebook and instagram. I would like...

Show Detail

Track user with google analytics

is there a way in google analytics that we can retrieve user information, like ip, time browse etc? I need to track specific user on our website but it seems it was impossible

Show Detail

Google analytics - Store event when GA session ends?

Is it possible to tell Google Analytics to do something when the user's session ends? (NOT a local session, but a Google Analytics session). According to this: https://support.google.com/analytics/...

Show Detail