• Resolved shopstudio

    (@shopstudio)


    Hello,
    first of all I want to thank you for the great plugin!

    However, we have encountered a problem with the double opt-in process, which is well solvable.

    Namely, the plugin currently sends the entries like this:

    $request = wp_remote_retrieve_body(wp_remote_post( “https://a.klaviyo.com/api/v2/list/”.$list_id.”/members”, [
    ‘headers’ => [‘content-type’ => ‘application/json’],
    ‘body’ => json_encode($klaviyo_data)
    ]));

    However, the double opt-in process is not triggered this way. We talked to support and learned that we should do it this way instead:

    $request = wp_remote_retrieve_body(wp_remote_post( “https://a.klaviyo.com/api/v2/list/”.$list_id.”/subscribe”, [
    ‘headers’ => [‘content-type’ => ‘application/json’],
    ‘body’ => json_encode($klaviyo_data)
    ]));

    Therefore, you just need to replace the URL. We have already tested this and it works so far.

    Is there a possibility to create an option for changing the endpoint? This would be awesome!

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author thongnguyenminh

    (@thongnguyenminh)

    Hi there, thanks you for using my plugin. I don’t have intent to enable this function for my plugin. Because other users may confuse about these settings and make bad review on my plugin(before i have this function on my plugin, but then i have 1 star review because user set this up wrong, so i disabled it).

    But if you need this function, i can help to enable it just for you only. Just confirm this, then i will send you a special plugin version with this function for you. Then all you need is install it and enjoy!

    Thread Starter shopstudio

    (@shopstudio)

    Hey,
    thank you for the fast response!

    Hmm, I understand, but it makes it really hard for us EU customers to handle the double opt in. Is it really not possible via a simple option? This is something Klaviyo suggests too for EU customers (to use this endpoint).

    Other question if you don’t want to add an option: Is it possible to make the URL filterable via WP filters?

    Kind regards
    Alexander Barton

    Plugin Author thongnguyenminh

    (@thongnguyenminh)

    Thanks for your suggestion. Using filter is a very good ideal and help to improve the plugin alot. I have released a new version with this function added.

    To change the API endponit in your case, please add this code to your theme’s functions.php:

    add_filter( 'include_klaviyo_action', 'custom_klaviyo_action');
    
    function custom_klaviyo_action(){
        return 'subscribe';
    }
    Thread Starter shopstudio

    (@shopstudio)

    Thank you very much! It is working so far ??

    Hi

    Can you send the special plugin version with the function that trigger the opt-in?

    Plugin Author thongnguyenminh

    (@thongnguyenminh)

    Hi @neta2021 the plugin have a filter to enable the double opt-in. Make sure you update to the newest version then add these line of code to the bottom of your theme’s functions.php file:

    add_filter( 'include_klaviyo_action', 'custom_klaviyo_action');
    
    function custom_klaviyo_action(){
        return 'subscribe';
    }

    [redacted]

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    @thongnguyenminh I’ve deleted your offer to login to your user’s site. I’m am 100% sure you mean well but please never ask for credentials on these forums.

    https://www.ads-software.com/support/guidelines/#the-bad-stuff

    Now for the why: The internet is a wonderful place full of very nice people and a few very bad ones. I’m sure everyone here is very nice however, by giving some ones keys to your house you are trusting they wont steal anything. Likewise the person who takes the keys is now responsible for the house FOREVER.

    If something was to go wrong, then you the author may well legally become liable for damages, which they would not normally have been as their software is provided without warranty.

    Please be aware that repeatedly asking for credentials will result in us escalating this to the plugins team.

    It’s never necessary to do that. Here’s why.

    There are many ways to get information you need and accessing the user’s site is not one of them. That’s going too far.

    You get the idea.

    Volunteer support is not easy. But these forums need to a safe place for all users, experienced or new. Accessing their system that way is a short cut that will get you into real trouble in these forums.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘GDPR compliance with double opt in’ is closed to new replies.