Home > General > Affiliate Marketing Forum

How to Trigger Multiple Pixels? (12)


08-27-2012 02:42 AM #1 getgreen (Member)
How to Trigger Multiple Pixels?

I've had a few people tell me I can code one main file with all the pixels I want to fire INSIDE the file - but no one can explain to me how to do this. Does anyone know how I can setup a file that will trigger multiple pixels?


08-27-2012 03:58 AM #2 constantin (Member)

can do it automatically in CPVlab...not a huge help if you dont have it i know.


08-27-2012 03:58 AM #3 getgreen (Member)

Yeah unfortunately I do not.


08-27-2012 10:10 AM #4 tap1on (Member)

Lets say the first pixel would be site.com/pixel.php

Then in that file you would just have
<img src="site.com/pixel2.php>
<img src="site.com/pixel3.php>


08-27-2012 04:52 PM #5 getgreen (Member)

So that's all you have to do? Make a .php file with the pixels inside it? Any other code at all that needs to go inside?


08-27-2012 07:48 PM #6 bbrock32 (Administrator)

Yep , just put all in there.


08-28-2012 01:45 PM #7 nils (Member)

So after I put all the img pixels inside the .php file can I just insert the url (domain.com/pixels.php) as a postback url inside the affiliate network (direct track)?


08-30-2012 02:29 AM #8 zeno (Administrator)

I imagine this works provided the placed PHP/HTML file is loaded by the client on the offer page, but probably wouldn't work if conversions were triggered between the offer <-> network/you by server2server calls. In that instance you can do it easily with postbacks - i.e. postback 1 from network/offer -> PHP file on your server which then fires multiple postbacks from there, with subid info passed through. You could use code like this:

[PHP]
<?php

$subid1 = $_GET['subid1']; //or whatevs, get yo subids in check
$subid2 = $_GET['subid2'];

// postback declaring conversion
$r = new HttpRequest('http://pixellocation.com/filename.php', HttpRequest::METH_GET); //whatever you would normally have up until the ? point
$r->addQueryData(array('something' => $subid1,'somethingelse' => $subid2)); //adds ?value=something&value2=somethingelse to URL above

//overall this will call the URL http://pixellocation.com/filename.php?something=$subid1&somethingelse=$subi d2

// send request
try {
$r->send();
if ($r->getResponseCode() == 200) {
// do nothing, this means the conversion has been counted properly
}
} catch (HttpException $ex) {
// do nothing or log that the call failed
}

// second postback declaring conversion yet again
$r = new HttpRequest('http://pixellocation2.com/filename.php', HttpRequest::METH_GET);
$r->addQueryData(array('something' => $subid1,'somethingelse' => $subid2));

// send request
try {
$r->send();
if ($r->getResponseCode() == 200) {
// do nothing, this means the conversion has been counted properly
}
} catch (HttpException $ex) {
// do nothing or log that the call failed
}

?>
[/PHP]

Works flawlessly for me, server2server ftw.


09-04-2012 04:56 PM #9 getgreen (Member)

Hey guys just to clarify, is this what my PHP file should look like if I'm trying to trigger POF pixel + Prosper pixel (hosted on my domain)?

<?php

<img height="1" width="1" border="0" style="display: none;" src="http://www.PROSPERDOMAIN.com/tracking202/static/gpx.php?amount=" />
<img src="http://t.ads.pof.com/cc.aspx?a=eG94f61oa2XqbWFsZmpuY2to" style="display:none">

?>


09-04-2012 05:12 PM #10 hummer (Member)

I think with prosper atleast. You still need to get the subid and append it to the url.

So something like this:

[PHP]
<?php

$subid = $_GET['subid'] ? $_GET['subid'] : '';

?>

<img height="1" width="1" border="0" style="display: none;" src="http://www.PROSPERDOMAIN.com/tracking202/static/gpx.php?amount=&subid=<?php echo $subid ?>" />
<img src="http://t.ads.pof.com/cc.aspx?a=eG94f61oa2XqbWFsZmpuY2to" style="display:none">
[/PHP]


09-04-2012 05:51 PM #11 Mr Baffoe (Veteran Member)

Quote Originally Posted by getgreen View Post
Hey guys just to clarify, is this what my PHP file should look like if I'm trying to trigger POF pixel + Prosper pixel (hosted on my domain)?
Just wondering,

is there a particular reason why you did't use the built-in prosper202 feature to do this? It can currently trigger one additional pixel including the Prosper202 pixel.


09-04-2012 07:25 PM #12 getgreen (Member)

Quote Originally Posted by Mr Baffoe View Post
Just wondering,

is there a particular reason why you did't use the built-in prosper202 feature to do this? It can currently trigger one additional pixel including the Prosper202 pixel.
Yeah mate, remember I PM'd you about this? The iframe issue? You said the network would have to support iframes in order for the 3rd party pixel to fire using the smart universal pixel, which Maxbounty doesn't support.


Home > General > Affiliate Marketing Forum