• Plugin Name: Pronamic Cookies
    Plugin URI: https://pronamic.eu/wordpress-plugins/pronamic-cookies/
    Version: 0.3.1

    Thanks for this nice plugin.

    In our sites we noticed some problems with de cookie wall. After accepting the cookies we tryed to add an article to google plus. We got the message that a cookie wall is used and the article cannot be shown.

    I made the next changes:
    File: \classes\class-pronamic-cookies.php
    row 10 included :
    ,’facebot’, ‘twitterbot’ , ‘Google (+https://developers.google.com/+/web/snippet/)’,’AddThis.com’

    row 93 changed:
    Old:
    return array_search( $_SERVER[‘HTTP_USER_AGENT’], $this->spiders ) !== false;

    New:
    $botcheck=false;
    foreach($this->spiders as $spidername){
    if (strpos($_SERVER[‘HTTP_USER_AGENT’], $spidername) !==false){
    $botcheck=true;
    break;
    }
    }
    return $botcheck;

    Result:
    The user still get the cookie wall to accept.
    In google plus the article is shown.
    The googlebot can collect informatie from the site.

    https://www.ads-software.com/plugins/pronamic-cookies/

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘facebook, google plus, addthis etc’ is closed to new replies.