• Resolved savinus

    (@savinus)


    How to block cookies before the user click accept button as GDPR ask?
    I mean cookies like Google Analytics or other cookies.
    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter savinus

    (@savinus)

    Maybe I have to insert some script in the plugin to block cookies?
    Please do you have a tutorial about how to insert this scripts? I mean for example Google Analytics o other cookies?
    Thank you

    Can you add code of google analytics manual in box and disable code from any other plugins.

    Hi Chisdj.

    Please can you explain how you “disable code from any other plugins”?

    At present I only seam to be able to embed code like anaytic, and have had to disable anaytics plugins and live chat etc for code as I see no other way.

    Please could you assist me?

    MA

    (@gasparnemes)

    Hi there,

    Thanks for your comments. You can disable the scripts with this plugin if you add the GA snippet to the plugin settings. Unfortunately you can’t block the plugins with this, but there are some hooks created to add custom scripts based on the GPDR settings. Please try to find a hook in the thrid-party plugins and add them to the custom function in your functions.php
    The example below extends the 3rd party footer scripts:

    add_action('moove_gdpr_third_party_footer_assets','moove_gdpr_third_party_footer_assets');
    function moove_gdpr_third_party_footer_assets( $scripts ) {
    	$scripts .= '<script>console.log("third-party-hook");</script>';
    	return $scripts;
    }

    The full list of hooks:

    moove_gdpr_third_party_header_assets

    moove_gdpr_third_party_body_assets

    moove_gdpr_third_party_footer_assets

    moove_gdpr_advanced_cookies_header_assets

    moove_gdpr_advanced_cookies_body_assets

    moove_gdpr_advanced_cookies_footer_assets

    I hope this helps.

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

The topic ‘Block cookies’ is closed to new replies.