Disable Open Tracking Pixel

Open the file above and look for this code:
PHP:
if ($appendBeacon && !empty($subscriber->subscriber_id)) {
    $beaconUrl = $options->get('system.urls.frontend_absolute_url');
    $beaconUrl .= 'campaigns/' . $campaign->campaign_uid . '/track-opening/' . $subscriber->subscriber_uid;
    $beaconImage = CHtml::image($beaconUrl, '', array('width' => 1, 'height' => 1));
    $content = str_ireplace('</body>', $beaconImage . "\n" . '</body>', $content);
}

and make it:
PHP:
if (false && $appendBeacon && !empty($subscriber->subscriber_id)) {
    $beaconUrl = $options->get('system.urls.frontend_absolute_url');
    $beaconUrl .= 'campaigns/' . $campaign->campaign_uid . '/track-opening/' . $subscriber->subscriber_uid; 
    $beaconImage = CHtml::image($beaconUrl, '', array('width' => 1, 'height' => 1));
    $content = str_ireplace('</body>', $beaconImage . "\n" . '</body>', $content);
}
basically you just add false && in the if statement.
 
Back
Top