Skip to main content

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.

 

Hi @garrettTQF,

Thanks for sharing your question with the Klaviyo Community.

There is currently a member of our staff looking into your issue. Please continue corresponding with our staffmember over email for the time being. 

Thanks for being a member of the Klaviyo community.


Reply