I've been looking into the Capture User State via Snapshots documentation, and I can check you use Tealium to capture this type of information.
If I create a
snapshot will I be able do collect the user login time? I need to know how often our users login. Can I do this with Heap or do I have to integrate our Web App with Tealium too?
Best answer by jonathanView original
The more general answer, is if you wanted to add some value from a JS object to all events, then 1) you’ll need to expose that data somewhere consistent and 2) either use addEventProperties API or a snapshot on an “any page” event. This will attach to every event the current logged in status of the user.
Whether this solves your problem depends on exactly what outcome you need, and how your product works.
If you want a clean “user transitioned from logged out to logged in at this specific time” then emitting a “Login” event is the best approach.
If you have product urls that are easily targetable as being “logged in”, you could use that as a proxy for “user had a session in our app”. We do that in Heap, as between the domain (heapanalytics.com) and the path structure (starts with /app/) it’s easy to tell what activity is while logged into the app and what is not logged in.
And if you want to know the current state of the user, attaching a general property to all events is the way to go. You could use this in a funnel to show users logging in (pageview where loggedin_status = false > pageview where loggedin_status = true) or as a count of users who had a session while logged in (number of sessions with pageviews where loggedin_status = true).