WordPress.org

Ready to get started?Download WordPress

Forums

Subscribe2
[resolved] Tracking parameter is not added to URLs (5 posts)

  1. jeremyschultz
    Member
    Posted 2 years ago #

    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:

    socsrc=bhgblogcentsationalstyle

    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.

    http://wordpress.org/extend/plugins/subscribe2/

  2. mattyrob
    Member
    Plugin Contributor

    Posted 2 years ago #

    @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>";
  3. jeremyschultz
    Member
    Posted 2 years ago #

    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!

  4. Arthur Klein
    Member
    Posted 2 years ago #

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

  5. mattyrob
    Member
    Plugin Contributor

    Posted 2 years ago #

    @pursuitofhappinessyoga,

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags