Support » Plugin: Subscribe2 » [Plugin: Subscribe2] Tracking parameter is not added to URLs

  • Resolved jeremyschultz


    We just upgraded Subscribe2 to the paid version in order to add our own HTML template to emails, but since then our tracking parameter has not been added to any URLs on test emails.

    Here’s the format of our parameter:


    And the email template uses typical HTML tables and is set up to be a weekly digest. I won’t include it all here but the posts excerpts and links are generated by the {POSTTIME} tag.

    The parameter was added to URLs up to now so it’s either a bug with the paid plugin or something is bad with the HTML template. I also sent a test email with no HTML and it failed there too.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @jeremyschultz,

    There is an omission in the HTML code regarding the tracking parameter. I’ll get it fixed for the next vernon but in the meantime if you want a fix now look in the class-s2-core.php file in the wp-content/plugins/subscribe2/classes folder.

    Around line 1503 you’ll fined these 2 lines:

    $message_post .= "<a href=\"" . get_permalink($post->ID) . "\">" . $post_title . "</a>";
    $message_posttime .= "<a href=\"" . get_permalink($post->ID) . "\">" . $post_title . "</a>";

    Replace these with:

    $message_post .= "<a href=\"" . $this->get_tracking_link(get_permalink($post->ID)) . "\">" . $post_title . "</a>";
    $message_posttime .= "<a href=\"" . $this->get_tracking_link(get_permalink($post->ID)) . "\">" . $post_title . "</a>";

    I revised the core.php file and it’s working now. Glad it was a known bug and not much trouble to resolve. Thank you!

    Arthur Klein


    where can i find docs on all the tracking options and the short codes or however implemented.


    Try Google. The tracking parameters are not defined in Subscribe2, the plugin simply allows you to add tracking details as defined elsewhere.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Subscribe2] Tracking parameter is not added to URLs’ is closed to new replies.