PHP Classes

File: verifyAndLogMagicPixelImage.php

Recommend this page to a friend!
  Classes of Er. Rochak Chauhan   Magic PHP Pixel Tracking   verifyAndLogMagicPixelImage.php   Download  
File: verifyAndLogMagicPixelImage.php
Role: Example script
Content type: text/plain
Description: Sample Script
Class: Magic PHP Pixel Tracking
Track if an email message was viewed or opened
Author: By
Last change:
Date: 4 years ago
Size: 491 bytes


Class file image Download
if( isset($_GET['c']) && !empty($_GET['c']) && isset($_GET['t']) && !empty($_GET['t']) ) {

$phpMagicPixelTracker = new PhpMagicPixelTracker();

$campaign_email_uuid = $_GET['c'];
$tracker_code = $_GET['t'];

$phpMagicPixelTracker->verifyAndLogMagicPixelImage($campaign_email_uuid, $tracker_code);

// log or print any error or a dummy png . This part would not be logged in the DB