To get the Logged in People report | Community
Skip to main content
Level 4
January 10, 2024
Question

To get the Logged in People report

  • January 10, 2024
  • 1 reply
  • 1376 views

Hi Everyone,

I have a page where the I need to get the no of logins, So, I have pagenames which I can say if pagename starts with this specific page name , ID can say it's  logged in and I have hashed unique I after login , this eVar  will reflect in all the page navigate same as it starts with.

So I have made a segment but  not sure will the below segment will give me exact total logins .

VISIT Container[

Pagename.    Starts with.      A

AND

Hashed Unique ID exists 

]

 

So, My report will be 

Day in dimension and Above segment filter by Visits in metrics .

 

Can anyone tell me is this the right way to get the logins and will this satisfy if the single login is being persisting for 2 session?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
January 10, 2024

Without knowing how your site works, that is hard to say... 

 

You said you have a hashed value in the URL for logged in users? What happens if I take that URL and load it in my browser? Will I be logged in? Will I be redirected to another page without that hash telling me that I am not logged in?

 

Typically what I do is I have a HIT level variable (either a prop or an eVar) that tracks "login status"... depending on the complexity of the site, I can either read from cookies/session variables to determine if the user is logged in.. or if there is additional logic to the site (such as there is code that checks for a valid authentication token to fully determine the logged in state), I then ask the developers to add a login status into my data layer (true/false, yes/no, userId exists / doesn't exist)... whichever method makes the most sense for the implementation, then I track on each page if the user is logged in or not... then I can create segments based on that.

 

Since you don't have a dimension at this point, creating a proxy is a good alternative, but you really have to understand your site behaviour to understand if there is a possibility that someone could have a hashed value and not be logged in..... 

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
January 10, 2024

I should also say, that if you are doing a segment, keep in mind that using a VISIT scope like that will return all pages in the visit, even ones before the user logged in, and pages after where they may have logged out... it won't just return the page as specified... 

 

All pages within visits that contain that page.