• Resolved diedesigner

    (@diedesigner)


    Hey Guys,

    I hope you are all well. I use Hustle pro.
    Is there any progress to deactivate the cookies? I have not yet found an option here in your plugin.
    We have a customer who has now been warned because a cookie was set in advance.
    We have to disable all cookies for the users who want it, and they must not be set in advance, so it writes the EU legislator.
    Is there a code snippet on how I can disable it?

    With pleasure I expect a feedback, best regards,
    Max

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @diedesigner

    I hope you are doing good today.

    Some of Hustle modules require cookies so that this module could work on the site in a correct way. However, I pinged our Hustle Team is there any solution for that. We will post an update here as soon as more information is available.

    Kind Regards,
    Kris

    Hi @diedesigner

    Could you try this code as a mu-plugin:

    add_action('wp_print_scripts', 'wpmudev_hustle_disable_cookie');
    function wpmudev_hustle_disable_cookie(){
    	ob_start();
    	?>
    	if( window.Optin && window.Optin.cookie ){
    		window.Optin.cookie.set = function( name, value, days ){
    			return false;
    		}
    	}
    	<?php
    	$custom_script = ob_get_clean();
    	wp_add_inline_script( 'optin_admin_scripts', $custom_script );
    	wp_add_inline_script( 'hustle_front', $custom_script );
    }

    You can install this code as a mu-plugin following this guide:
    https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    Kind Regards,
    Kris

    Thread Starter diedesigner

    (@diedesigner)

    Hey Kris,

    I hope you are well.

    Thank you for the replies.

    Will try it out, thank you very much for the quick support 💪

    Have a nice day!
    Best regards,
    Max

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @diedesigner ,

    We haven’t heard from you for several days now, so it looks like you don’t have more questions for us.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Tracking disabled, but cookie is persistent’ is closed to new replies.