I am trying to display Klaviyo profile name based off of __kla_id cookies. I cannot seem to find any information on how to do this on our site. I have been able to get profiles info if use email address but I want to use __kla_id
Can this be done?
I am trying to display Klaviyo profile name based off of __kla_id cookies. I cannot seem to find any information on how to do this on our site. I have been able to get profiles info if use email address but I want to use __kla_id
Can this be done?
Is this correct method?
__kla_id
CookieUse JavaScript to retrieve the __kla_id
cookie and decode it to obtain the _kx value.
Make a POST request to Klaviyo’s /api/v2/people/exchange
endpoint with the _kx value to retrieve the profile ID.
Use the GET /api/profiles
endpoint with the profile ID to fetch the profile data, including the first name.
Once you get the first name from the API, update the HTML element with the user's name.
__kla_id
and send it to your server.This method ensures you're identifying users securely and dynamically displaying their names.
I did find this
But still not clear if it possible to get username on a webpage
It looks like this conversation continued to resolution in the thread you linked above,
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.