Hi,
We have a custom Klaviyo integration using the PHP API. Our developer has the code working perfectly on his local machine but the exact same code when deployed on our development site/server does not trigger the event in Klaviyo.
I chatted with support and they suggested adding:
## Whitelist Klaviyo
if ($http_user_agent ~* (Klaviyo)) {
set $magestack_protect_api false;
set $magestack_bot_type "Good";
}
to the nginx file. This did not solve the issue however.
I attached some code. The try loop at the bottom returns ‘New User info sent to Klaviyo’ in our sites activity feed but the profile is never created in Klaviyo. It only works when running on our developers local machine.