WordPress.org

Ready to get started?Download WordPress

Forums

MailPoet Newsletters
[resolved] [Plugin: Wysija Newsletters] FIX - Unsubscribe link does not work with Google Analytics (1 post)

  1. Chandle
    Member
    Posted 2 years ago #

    wysija-newsletters/helpers/mailer.php

    Move:

    $Wysijaurls=array();
                    $Wysijaurls["action=unsubscribe"]="[unsubscribe_link]";
                    $Wysijaurls["action=subscriptions"]="[subscriptions_link]";

    After:

    $urlreuse=$url;

    Find:

    if( isset($email->params['googletrackingcode']) && trim($email->params['googletrackingcode']) ){

    Replace with:

    if( !in_array($url, $Wysijaurls) && isset($email->params['googletrackingcode']) && trim($email->params['googletrackingcode']) ){

    Remove:

    $coreUrl=false;

    (obsolete line)

    http://wordpress.org/extend/plugins/wysija-newsletters/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic