"How does Heap keep track of users who are logged in?"

  • 21 October 2023
  • 1 reply


"I have Heap tracking activated on my website, and it distinguishes between user access levels based on whether someone is logged into an account or is a guest. For instance, specific content is exclusively accessible to logged-in users.

Where does Heap record the user's session property related to their login status? I'm examining page views and other session events and need to verify whether the user is currently logged in during that session or not."




Best answer by Christy H 25 October 2023, 19:26

View original

1 reply

Userlevel 4
Badge +3

Hi @zain ,

In order to capture this information, you will likely want to add a pageview property which will capture a user’s current logged in state when taking actions on your site similar to our addEventProperties API example.

Take a look and see if that will meet your needs!