Solved

How does Heap track logged in users?

  • 29 August 2023
  • 1 reply
  • 129 views

Badge

I have Heap tracking enabled on my website and there are different levels of access associated with if a user is logged into an account versus if they are a guest. For example, certain content is only available if a user is logged in.

 

Where does Heap track that user property for a session? I am looking at page views and/or other events during a session and want to confirm if the user is currently logged in for that session or not.

 

Any help is appreciated, thanks!

icon

Best answer by ALabs I Bhupender 4 September 2023, 12:01

View original

1 reply

Userlevel 3
Badge +1

Hi,

Heap won’t capture the state of the user by default under it’s autocaptured properties. However, you can add the properties using the Heap’s “addEventProperties” API. Please find more details on the same below:

https://help.heap.io/getting-started/setting-up-heap/enrich-your-dataset-via-apis/#custom-event-properties

 

https://developers.heap.io/reference/addeventproperties

 

Note: The data captured via API, won’t be retroactive and hence, you will be able to do the analysis for the time period post API implementation.

Reply