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? – Stephen Ostermiller Dec 30 '15 at 14:04

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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