I’m trying to use the Klaviyo server API to create events for a Shopify app integration. The event creation is triggered from browser activity calling my backend.
Sometimes I have an email address which I can pass through to Klaviyo and all is good. Sometimes I don’t -- calling klaviyo.identify() or _learnq.identify() I’ll often get a CID value which I can base64 decode into a GUID looking value. I’m guessing I can pass that GUID somehow to Klaviyo’s server event API in the profile, but I’m struggling making it work. I’ve tried using id and _kx attributes in the profile wither with the CID or the base64 decoded CID, but it’s been unsuccessful in creating something that ends up in the Klaviyo activity log.
Any help appreciated.
Thanks.

