Conferences
Online
03-04
July
11-13
July
St. Petersburg, Russia
11
July
Amsterdam, Netherlands
16
July
Amsterdam, Netherlands
16-19
July
Moscow, Russia
17
July
Dubai, UAE
23-25
July
New York, USA
29-30
July
San Jose, Costa Rica
05-06
August
Kazakhstan
25-26
August
Ibiza, Spain
31-02
August -
September
Online
01
September
Budapest, Hungary
04
September
Budapest, Hungary
05-06
September
Bucharest, Romania
12-15
September
Bucharest, Romania
12-15
September
Prague, Czech Republic
16-19
September
Cebu, Philippines
17-19
September
BIG
Belgrade, Serbia
20
September
Ibiza, Spain
21-23
September
Ibiza, Spain
21-23
September
Lisbon, Portugal
24-26
September
Budapest, Hungary
30
September
17-18
October
29-31
October
Marsa, Malta
11-14
November
Bangkok, Thailand
01
December
Tashkent, Uzbekistan
03-04
December
Dubai, UAE
23-25
February

Facebook pixel auto-forward to ‘Thank You’ page


If you work with a large number of accounts at once (especially if you work via Dolphin), you can face the problem of placing each Facebook pixel code on the “Thank you” page. If you enter it manually, you will have to prepare separate flows for each account and spend a lot of time.

We need to configure everything so that the pixel is written on the “Thank you” page automatically. We used a bunch of Keitaro (using the CPARIP promo code) and KMA.biz affiliate, so let’s look at the example. Pre-landing and Landing are uploaded locally and the transfer of leads to the affiliate is done via API.

Forwarding a pixel via Keitaro

It all comes down to the fact that the pixel ID is passed via the incoming URL as a GET parameter.

We will get the pixel number by adding &fbp=pixel_number to the ad link.

  • In the tracker, we add the &fbp={fbp} offer parameter in the affiliate network settings. This is necessary for the forwarding from pre-landing to the landing page.

  •  Next, the pixel number received in the link will be forwarded through the order form, which is processed by the success.php file
  • To do this, add the following line to the order form <input type="hidden" name="fbp" value="{fbp}"/>

  • Keitaro will automatically substitute the pixel received in the link instead of {fbp} and then it will go to the handler. The only thing to do is to take it and add it to the thank you page.
  • In the api/success.php file add the line $_SESSION['fbp'] = $fbp; as in the screenshot:

  • Next, in the api/template/success.php file add the line $fbp = isset($_SESSION['fbp']) ? $_SESSION['fbp'] : '-';

  • In api/template/success.php we use the cut-down Facebook pixel <img height="1" width="1" src="https://www.facebook.com/tr?id=PIXEL_NUMBER&ev=Lead&noscript=1"/> We need to insert our received pixel number with the help of <?= $fbp ?>.

Done. Now each account will have its pixel number on the “Thank You” page.

Let’s consider a few more variants

The general principle is clear. Depending on the way of connecting landings on Keitaro and the peculiarities of realizing the transfer of leads in each affiliate, the methods of transfer will differ.

The same but without Keitaro

  • In the same way, we forward the pixel to the landing page in the ad link &fbp=pixel_number
  • To pull the pixel from the link to the very beginning of the landing index.php file add:
<?php

$fbp = (isset($_GET['fbp'])) ? trim($_GET['fbp']) : '';

?>
  • And add to the order form:
<input type="hidden" name="fbp" value="<?=$fbp?>" />
  • Further, as in the case with Keitaro, we pass the success.php to the “Thank you” page.

If the forwarding to the “Thank you” page is done via redirect

When the “Thank you” page is connected as a regular URL and the redirects go to it, the pixel should be passed as a parameter, and on the Thank you page we should pull it out of the URL and put it into the pixel code.

  • We need to add the received pixel to the redirect link:
https://domain/success.php?fbp=<?=$fbp?>
  • and get it again from the link on the thank you page:
<?php

$fbp = (isset($_GET['fbp'])) ? trim($_GET['fbp']) : '';

?>
  • and add it to the pixel code:
<img height="1" width="1" src="https://www.facebook.com/tr?id=<?=$fbp?>&ev=Lead&noscript=1"/

CPARIP


Like it? Share with your friends!
0 Comments
Affiliate - Our assessment
Verticals
Min. sum
Site
CLICKLEAD review
CPA network in the gambling and betting verticals with 200+ offers available, including exclusives such as Olymp Casino, Elon, etc. It receives traffic from 40+ GEOs. Clicklead cooperates using the CPA model: FTD, FTD + KPi, QFTD.
$100 pay
фото
фото
фото
фото
фото
CatAffs review
CatAffs is an affiliate program in the gambling vertical. It has been on the market since 2021. CatAffs started working after the launch of the CatCasino brand, but now it is a direct advertiser of 5 gambling projects: R7, KENT, Daddy, Gama and CatCasino. It accepts all kinds of traffic, except for fraud. The main geos it works with are Russia, Germany, Canada, Brazil, Turkey, Portugal, and Kazakhstan. Now there is an increased demand for traffic from Kazakhstan.
€50 pay
фото
фото
фото
фото
фото
It’s the affiliate program by Pin-Up Casino and Pin-Up Bet. They work on RevShare (30% to 50%) and CPA models. CPA payments depend on GEO. A hybrid engagement model is also available upon request.
$50 pay
фото
фото
фото
It’s our affiliate program with gambling and nutra offers. We are currently in beta but we accept traffic.
$20 pay
фото
An affiliate program from the direct advertiser Mostbet.com. They accept gambling and betting traffic worldwide. CPA on popular GEO is $20-50, Revshare - from 30% to 70%. They share apps and deeplinks upon request. They also offer a large selection of proxies.
$50 pay
фото
фото
фото
фото
фото
Affiliate network in the iGaming vertical. They work only with direct advertisers, and the lion's share of offers are presented exclusively. Huffson has individual conditions, own platform, detailed statistics, PWA applications, and custom promo.
$100 pay
фото
фото
фото
фото
фото
фото
фото
фото
фото
V.Partners review
It’s a direct advertiser of the popular European casino “Vulkan Vegas” established back in 2016. They operate in the gambling vertical within CPA, RevShare, and Hybrid partnership models.
€100 pay
фото
фото
фото
фото
фото
фото
A CPA network that has been on the market since 2013. They have over 1500 offers and offer dynamic bids. Key GEOs: CIS, Europe, and LatAm, Africa. They also have a loyalty program with bonuses for leads.
$50 pay
фото
фото
фото
фото
фото