Hi, I want to get the email of the user on login, so I can pass the info to Klaviyo as an event. I can do this in Klaviyo with _learnq.identify().$email
Using API to Access Cookies
Using API to access cookies is useful if you want the information that Klaviyo gathers for different purposes other than what we do automatically. You can do this by running JavaScript and typing in _learnq.identify(). Our __kla_id cookie, which collects emails, is accessible using this formula.
If you want to see a user's email, type out and run: _learnq.identify().$email. This will generate the email address that was acquired from that cookie.
I want to do something similar, so when an user logs in, I can pass the event to Klaviyo and identify active users vs non active, so we can design engagement campaigns.
Is this posible?