Purchase OIOpublisher now for just $47.

Take control of your ad space.

Click here to purchase

    • CommentAuthorxiaan
    • CommentTimeAug 26th 2012
     

    I am running a very high traffic site with 150K pageviews a day. So as tracking impression with stat tracker will make the database screwed. So I want to track only clicks with the stat tracker. Means I want to disable the impression tracking so that it won't write to db every time but click can be tracked.

    How can I do that?

    Thanks in advance.

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeAug 26th 2012
     
    Project Admin

    Assuming you're using the latest version of OIO, you just need to make the following change:

    1.) OPEN the OIO file "/modules/tracker/oiopub-load.php".

    2.) FIND the following line of code.

    function tracking_code($echo=true) {

    3.) Add directly below it, this line of code.

    return;

    That will stop the tracking of impressions, but shouldn't affect clicks.

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorxiaan
    • CommentTimeAug 26th 2012 edited
     

    Hello Simon,

    Thanks for your reply.


    function tracking_code($echo=true) {
    return; // added to stop tracking impression
    global $oiopub_set;
    //tracker enabled?
    if($oiopub_set->tracker['enabled'] != 1) {
    return;
    }
    //are the IDs in an array?
    if(!isset($oiopub_set->pids) || !is_array($oiopub_set->pids)) {
    $oiopub_set->pids = array();
    }
    //anything in the array?
    if(empty($oiopub_set->pids)) {
    return;
    }
    .....................................

    With your instruction I have added like the code above (commented line)

    // added to stop tracking impression

    is it ok?

    Will it totally stop impression to track? and will not write any impression data to database?

    Thanks.

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeAug 26th 2012 edited
     
    Project Admin

    That's correct - obviously I'd recommend running a quick test (by placing one purchased ad and then checking the 'live stats' section of Ad stats), but that code change should stop everything related to impressions.

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthormmsadmin
    • CommentTimeJan 10th 2013 edited
     

    hi simon, does this method to stop tracking impressions still work? we are recording around 500K impressions a day and it's definitely causing strain on our disk access, occasionally building up enough to bring the site down.

    (edit - i went for it and it does indeed work :)

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeJan 11th 2013
     
    Project Admin

    Thanks for the update, glad it worked.

    Need help?  Quick start guide | Troubleshooting | All help topics