We recently started tracking whether our visitors are logged-in or not (a typical question, mentioned also as a use-case of custom dimensions and custom variables). Now, when looking at the reports, it seems to me that visits are considered logged-in/anonymous based on the first page-view. This would mean, that an anonymous visitor that logs-in, is still only counted as “anonymous” in this custom dimension. Thus, we cannot reliably tell, if a visitor that opened a certain protected page, saw the page as shown to anonymous visitors or to logged-in visitors.
Is this assumption correct? If so: Is there another way of tracking logged-in vs. anonymous? Would custom variables help me here, because they are also applied to page views?
Thanks for any help, suggestion!