Support Forum Support Forum GDPR Cookie Compliance Problem with GDPR Cookie Compliance plugin in WordPress

Topic Resolution: Resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Avatardiegorot
    March 10, 2020 @ 12:07 pm

    Good morning,

    We have just installed your plugin on our website and I have detected an incompatibility problem. We also have a well-known SEO plugin on the web (All in one SEO Pack, https://es.wordpress.org/plugins/all-in-one-seo-pack/ ) that apparently installs google analytics cookies by force. We indicate that 3rd party cookies are disabled by default and include the google analytics script but they are installed anyway.

    We have tried to disable the plugin and then it works correctly so it is a compatibility problem.

    Can you help us see how we can fix this incompatibility problem?

    Moove AgencyMoove Agency
    March 10, 2020 @ 12:50 pm

    Hi diegorot,

    Thanks for using our plugins.

    You can try the following code snippet to block AIOSP analytics script until cookies are not accepted. Code snippet should be added to functions.php

    add_action( 'aiosp_google_analytics', 'maybe_consent_aiosp_google_analytics', 99, 1);
    function maybe_consent_aiosp_google_analytics( $analytics ) {
    	if ( function_exists( 'gdpr_cookie_is_accepted' ) ) :
    	  /* supported types: 'strict', 'thirdparty', 'advanced' */
    	  if ( gdpr_cookie_is_accepted( 'thirdparty' ) ) :
          return $analytics;
        endif;
      endif;
      return '';		
    }

    Hope this helps.

    Avatardiegorot
    March 10, 2020 @ 1:53 pm

    Thanks, it works!

Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.