APIs & Integrations

Not applicable

Current session user lifecycle stage

Hi there,

I’d like to retrieve the lifecycle stage of the current session’s user as they load a page. Prefably via Javascript so that I can use Google Tag Manager to fill a GTM variable with the current lifecycle stage. Does anyone know how I could retrieve the current user’s lifecycle stage?

0 Upvotes
2 Replies 2
Not applicable

Current session user lifecycle stage

Fantastic. Thank you!

0 Upvotes
3PETE
HubSpot Employee
HubSpot Employee

Current session user lifecycle stage

@Hugom You can receive the lifecycle stage by grabbing the user token (“UTK”) from the cookie and making a call to the Contacts API to pull the contact’s information. This call will have to be made server-side.

0 Upvotes