• Resolved chrisallenreach

    (@chrisallenreach)


    Is there a way to turn off or remove scripts when using other plugins.
    For example we use Google Analytics Dashboard, but I dont know how to switch this off if I disable 3rd party cookies
    If there isn’t a way is it something you’ll be looking at in the future?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I think there is for now no way to work with other plugins. I like to see this also as feature in this great app!

    @chrisallenreach, for now you can put youre Google Analytics trackingcode in the GDPR Cookie plugin and it will work great! Don’t forget to disable de Google Analytics Dashboard before you testing it.

    • This reply was modified 6 years, 9 months ago by Dennis van Welie. Reason: I did forget one more line, before posting
    MA

    (@gasparnemes)

    Hi There,

    Thanks for your comments.

    We have implemented hooks to implement custom scripts by php based on the user preferences, check the hooks below:

    HOOK to GDPR custom 3RD-PARTY script by php – HEAD

    add_action('moove_gdpr_third_party_header_assets','moove_gdpr_third_party_header_assets');
    function moove_gdpr_third_party_header_assets( $scripts ) {
    	$scripts .= '<script>console.log(“third-party-head”);</script>';
    	return $scripts;
    }

    HOOK to GDPR custom 3RD-PARTY script by php – BODY

    add_action('moove_gdpr_third_party_body_assets','moove_gdpr_third_party_body_assets');
    function moove_gdpr_third_party_body_assets( $scripts ) {
    	$scripts .= '<script>console.log(“third-party-body”);</script>';
    	return $scripts;
    }

    HOOK to GDPR custom 3RD-PARTY script by php – FOOTER

    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-footer”);</script>';
    	return $scripts;
    }

    HOOK to GDPR custom ADVANCED-PARTY script by php – HEAD

    add_action('moove_gdpr_advanced_cookies_header_assets','moove_gdpr_advanced_cookies_header_assets');
    function moove_gdpr_advanced_cookies_header_assets( $scripts ) {
    	$scripts .= '<script>console.log(“advanced-head”);</script>';
    	return $scripts;
    }

    HOOK to GDPR custom ADVANCED-PARTY script by php – BODY

    add_action('moove_gdpr_advanced_cookies_body_assets','moove_gdpr_advanced_cookies_body_assets');
    function moove_gdpr_advanced_cookies_body_assets( $scripts ) {
    	$scripts .= '<script>console.log(“advanced-body”);</script>';
    	return $scripts;
    }

    HOOK to GDPR custom ADVANCED-PARTY script by php – FOOTER

    add_action('moove_gdpr_advanced_cookies_footer_assets','moove_gdpr_advanced_cookies_footer_assets');
    function moove_gdpr_advanced_cookies_footer_assets( $scripts ) {
    	$scripts .= '<script>console.log(“advanced-footer”);</script>';
    	return $scripts;
    }

    I hope this helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using this with other plugins’ is closed to new replies.