How can I track logged in vs non logged in users in Google Analytics?

  • What do you mean by "track"? Do you want a count of how many of each there are or do you want to see the different behavior of the two types of users? Commented Dec 30, 2015 at 14:04

1 Answer 1


The recommended approach is to use custom dimensions and metrics. You would need to modify the tracking script to include these additional fields with each hit, which will provide you with the ability to segment the data based on the values of those fields. The example use case that Google Developers provides in the documentation is this same scenario.

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.