Is it possible to manually end a Google Analytics Session?

Viewed 9046

I would like to divide the traffic between registered and unregistered users with a custom variable. The Analytics documentation suggests to use a session-level custom variable for this purpose.

However, what is very common for our users is to log out when they are done using our service, because they are often working on shared computers. At log out, the session-level custom variable would be overwritten by 'unregistered', because this happens in the same session.

Is it somehow possible to end the Google Analytics session when a user logs out and start a new session?

3 Answers
Related