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?

2 Answers 2


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.


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.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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