• Resolved willemb2

    (@willemb2)


    I am evaluating the MailPoet plugin, free version for the moment. Much to my regret it creates tracking links to record if a subscriber has opened the message or clicked on a link. And it stores and displays this in the status list for each individual subscriber.

    How can I disable this? It makes Outlook issue privacy warnings, I personally find it indecent and most important: it is against the law in my country (The Netherlands).

    https://www.ads-software.com/plugins/wysija-newsletters/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi! It’s possible to disable tracking links and stats on MailPoet, but it’s not an easy task. For further assistance, please get in touch with us on support.mailpoet.com

    Thread Starter willemb2

    (@willemb2)

    How can I get in touch? The contact form says “Submit disabled, only Premium Users can use this form!” Even if I lie about the version I’m using.

    Thread Starter willemb2

    (@willemb2)

    @valerio Vaz: please publish the steps to disable tracking here, because I cannot get access to support.mailpoet.com as you suggested. The contact form is locked like a fortress!

    Hi,

    Sorry for the confusion. Just save this code into a .php file, zip it up and upload it as a plugin:

    <?php
    /*
    Plugin Name: MailPoet Remove tracking
    Plugin URI: https://www.mailpoet.com/
    Description: Extended functionalities to the free version.
    Version: 1.0
    Author: MailPoet
    Author URI: https://www.mailpoet.com/
    License: GPLv2 or later
    Text Domain: wysija-newsletters
    */

    /*
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    as published by the Free Software Foundation; either version 2
    of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    */

    /**
    *
    * @param string $site
    */
    add_action(‘wysija_replaceusertags’, ‘wysija_remove_tracking’,1,2);

    function wysija_remove_tracking(){
    remove_all_actions( ‘wysija_replaceusertags’, 11 );
    add_action(‘wysija_replaceusertags’, ‘wysija_tracker_replaceusertags’,13,2);
    }

    function wysija_tracker_replaceusertags($email,$user){
    $urls = array();
    $results = array();// collect all links in email
    if(!preg_match_all(‘#href[ ]*=[ ]*”(?!mailto:|\#|ymsgr:|callto:|file:|ftp:|webcal:|skype:)([^”]+)”#Ui’,$email->body,$results)) return;

    $modelConf=WYSIJA::get(‘config’,’model’);

    foreach($results[1] as $i => $url){

    if( !in_array($url, array( ‘[unsubscribe_link]’, ‘[subscriptions_link]’ , ‘[view_in_browser_link]’ ) ) ){
    continue;
    }

    $email_url = $url;

    $args = array();
    $args[’email_id’] = $email->email_id;
    $args[‘user_id’] = $user->user_id;
    if(empty($user->user_id)) $args[‘demo’]=1;
    $args[‘urlpassed’] = base64_encode($email_url);
    $args[‘controller’] = ‘stats’;

    $page_id = $modelConf->getValue(‘confirm_email_link’);
    //if it’s a system url that needs privacy we hash it
    if(strpos($email_url, ‘[unsubscribe_link]’)!==false){
    $args[‘hash’]=md5(AUTH_KEY.'[unsubscribe_link]’.$args[‘user_id’]);
    $page_id = $modelConf->getValue(‘unsubscribe_page’);
    }

    if(strpos($email_url, ‘[subscriptions_link]’)!==false){
    $args[‘hash’]=md5(AUTH_KEY.'[subscriptions_link]’.$args[‘user_id’]);
    $page_id = $modelConf->getValue(‘subscriptions_page’);
    }

    $args[‘action’] = ‘analyse’;
    $args[‘wysija-page’] = 1;

    $mytracker=WYSIJA::get_permalink($modelConf->getValue($page_id),$args);

    $urls[$results[0][$i]] = str_replace($url,$mytracker,$results[0][$i]);
    }
    $email->body = str_replace(array_keys($urls),$urls,$email->body);

    }//endfct

    Thread Starter willemb2

    (@willemb2)

    @mailpoet staff: Thanks! That was pretty easy and my first impression is that it works fine.

    Cool!

    Matthias Pabst

    (@matthiaspabst)

    Hello,

    looks like this Plugin doesn’t work with the current version 2.6.19. There are still two personalized URLs:

    • The “View in browser” link
    • The tracking pixel at the end of the message

    Can you update the plugin, please? Would it be possible to upload this plugin to the official repo? I think a lot of german users would be interested in.

    Best,
    Matthias

    AndyL99

    (@andyl99)

    I have just tried this plugin using 2.6.19 and I confirm it doesn’t work. A test user was tracked on opening the email generated by a WP post. I’m not sure if it was from the image on the post or something else.

    Is there an update to this plugin?

    In November I asked the MailPoet Premium support about disabling the tracking and linked to this thread. This is what the answered:

    MailPoet is distributed as is, we’re sorry but we can’t provide further support on this extra feature.
    For now, the only option you have to not track stats is explained on the link you have referred.

    However, we’re rebuilding our plugin from scratch, and this will be under our radar of improvements in the future.
    You can read more about the new version here – https://www.mailpoet.com/blog/

    After this message I disabled the tracking image manually in the plugins file /helpers/mailer.php and this seems to help, that no more new email newsletters are tracked. But the problem is, that old emails still contain personalized URLs and the tracking pixel. So you can’t stop the tracking 100% at the moment.

    I kicked out the tracking and the unsubscribe link, and send the mail to only one address, namely of our mailman emaillist. Thats working fine.

    Thanks @matthias Pabst for the update.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘how to disable tracking’ is closed to new replies.