Current session user lifecycle stage

contacts

#1

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?


#2

@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.


#3

Fantastic. Thank you!