Support » Plugin: WP DoNotTrack » Twitter Button (via Rotating Tweets Plugin)

  • Hi,

    I have installed the plugin “Rotating Tweets (Twitter widget & shortcode)”, which fetches tweets to display them in a widget. Unfortunately, Ghostery finds a twitter button on my blog (https://platform.twitter.com/widgets.js). There is no visible twitter button and I also cannot find anything related when opening the html source via the browser. Nevertheless, Ghostery finds this tracker, even when I do not use the widget at all, but simply have the “Rotating Tweets” plugin activated.

    Even with DoNotTrack in whitelist and super clean mode, I couldn’t get rid of the supposed twitter button that Ghostery indicates. Is there a way to solve this with DoNotTrack?

    Thanks and regards

    Ira

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Frank Goossens

    (@futtta)

    hmmm … depends on how the twitter-widgets-JS is called. do you have a URL where I could have a look?

    frank

    https://planit.legal/

    Since I activated “Rotating Tweets”, the code is present throughout the site, even on pages without the widget (like https://planit.legal/kontakt/).

    Thanks for having a look.

    Ira

    Plugin Author Frank Goossens

    (@futtta)

    ok, found the reason; rotating tweets’ JS file (wp-content/plugins/rotatingtweets/js/rotating_tweet.js) has code in it that loads the twitter widgets script (no idea why). because the JS is loaded from within JS, it cannot be caught by wp dnt (yet).

    frank

    Great, I just commented that line in rotating_tweets.js (and inserted some spaces as Ghostery simply scans the whole source code and counts commented urls as trackers). Ghostery now shows no trackers and the Rotating Tweets plugin still seems to work so far.

    Thanks a lot for your help!

    Ira

    Plugin Author Frank Goossens

    (@futtta)

    one of the next couple of days/ weeks I’ll probably have a new of wp dnt which will use CSP to block such requests as well (only if you’re on whitelist though).

    Have added some code to the development version of Rotating Tweets to ensure that if Do Not Track is not enabled then the Twitter script is not called….

    
    if(navigator.doNotTrack != 1) {
       //  The Twitter code
    };
    

    Seems to work in Chrome…

    Will that solve the problem? Or do I need to use something like this.

    This is working for Ghostery in Chrome…

    Martin

    After some checking with other browsers, it now reads:

    
    if(navigator.doNotTrack != 'yes' && navigator.doNotTrack != 1 && window.doNotTrack != 1 && navigator.msDoNotTrack != 1) {
       //  The Twitter code
    };
    
    Plugin Author Frank Goossens

    (@futtta)

    should work Martin 🙂

    Cool. It’s live now.

    Will having the Twitter code in there mean it clashes with your plug-in at some point?

    Is there any other flag or tag that it should be looking out for? 🙂

    Plugin Author Frank Goossens

    (@futtta)

    well, it’s not a matter of clashing plugins, but of users of both our plugins wondering why the twitter-widgets code is loaded by your plugin and why my plugin does not stop that from happening 🙂

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Twitter Button (via Rotating Tweets Plugin)’ is closed to new replies.