Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can someone help to query Google analytics to track a specific user behavior and usage pattern?

Currently I pass user id’s to GA as

_setCustomVar(2, 'id', id, 1);

This is session based.

But I am yet to master how I can utilize this to view usage pattern & behavior for the passed id. Say, I need to understand the visualization flow for one id or the page view count for that id etc

Rephrasing, can I filter all existing reports for a specific id that I can select?

share|improve this question
up vote 2 down vote accepted

You could probably use Advanced Segments to filter the reports based on your custom variable. However, unfortunately I think you actually might be breaking the Google Analytics privacy policy by passing a user id to it.

share|improve this answer

No way are you breaking Googles terms...the ID belongs to the website owner and does not disclose any information about an individual that would break in privacy terms.


share|improve this answer
This doesn't answer OPs question. – nathangiesbrecht Apr 24 '13 at 17:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.