Skip to content

Instantly share code, notes, and snippets.

@joubertredrat
Created January 12, 2015 13:17
Show Gist options
  • Save joubertredrat/6b49b07ed460074091a1 to your computer and use it in GitHub Desktop.
Save joubertredrat/6b49b07ed460074091a1 to your computer and use it in GitHub Desktop.
Owa test tracking by image
<?php
/*
Example usage: <img src="http://owa.yourdomain.com/owa_tracker.php?id=6f2a0582ec2512421a91b2ce26164c3b" alt="owa tracker">
*/
if (isset($_GET['id']))
{
require_once(__DIR__.'owa_php.php');
$owa = new owa_php();
$owa->setSiteId($_GET['id']);
// Uncomment the next line to set your page title
//$owa->setPageTitle('somepagetitle');
// Set other page properties
//$owa->setProperty('foo', 'bar');
$owa->trackPageView();
}
header('Content-type: image/png');
readfile('blank.png');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment