Home > Programming, Servers & Scripts >

Multiple Postbacks - a Script to Do It! (3)


04-07-2014 11:39 AM #1 krisicash (Member)
Multiple Postbacks - a Script to Do It!

Here is how my postbacks are seted up. http://i.imgur.com/j5vcSmG.gif

But that way only Voluums postback fires for conversions, and CPVLAB isnt. Is there anyway for both cpvlab and Voluum pixels to fire, And how i can do it?


04-07-2014 12:18 PM #2 zeno (Administrator)

Are those CPV Lab pixels in the pixel html box? As far as I know that should have them firing fine alongside the postback to Voluum. Could it be the offer itself is causing issues, i.e. they are not allowing pixels other than a postback? Perhaps talk to your AM.

Otherwise, you can fire multiple postbacks if need be. Simple fire back to a script on one of your servers which then fires back to both systems.

E.g.

Code:
http://myserver.com/postback.php?volclickid=#s2#&cpvlabid=#s3#&payout=#price#
Then have postback.php contain

Code:
<?php
$volid = $_GET['volclickid'];
$cpvid = $_GET['cpvlabid'];
$price= $_GET['payout'];
file('http://voluumlink/postback?cid='.$volid.'&payout='.$price);
file('http://cpvlablink/adclick.php?subid='.$cpvid.'&payout='.$price);
?>
and if that doesn't work you could try:

Code:
<?php
$volid = $_GET['volclickid'];
$cpvid = $_GET['cpvlabid'];
$price= $_GET['payout'];

$r = new HttpRequest('http://voluumlink/postback', HttpRequest::METH_GET);
$r->addQueryData(array('cid' => $volid, 'payout' => $price));
try {
    $r->send();
    if ($r->getResponseCode() == 200) {
    }
} catch (HttpException $ex) {}

$s = new HttpRequest('http://cpvlablink/adclick.php', HttpRequest::METH_GET);
$s->addQueryData(array('subid' => $cpvid, 'payout' => $price));
try {
    $r->send();
    if ($r->getResponseCode() == 200) {
    }
} catch (HttpException $ex) {}
?>


04-08-2014 05:25 PM #3 krisicash (Member)

Woah Zeno, the first code worked great now both postbacks are working and registering conversion in my trackers. Thanks man.


Home > Programming, Servers & Scripts >