Skip to main content
Skip table of contents

Facebook Pixel

Bundle: Prelanding - Landing - Success

Open the index.html file, to prepare the pre-land for the transition to the offer, you need to find links (they are sewn into buttons, hypertext, etc.) so that the user, when clicked, goes to the page with the offer (land).

Instead of the phrase #PASTE_URL or # (the value may differ on different pre-landers), set a link to the landing or tracker macro, for example, in keitaro - {offer}.

Add the value to the end of the macro:&fbpxl={fbpxl}

This should be done for all links. If you do not use preland, go to the Land - Success

Bundle: Landing - Success

In the index.php file, find the <head> tag, it is located at the very top of the document. We recommend to indent the line after this tag and insert the following code

CODE
<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=<? echo trim($_GET['fbpxl'], " ");?>&ev=View&noscript=1">   

In the same file, find the <form> tag, for a quick search, we recommend using the Ctrl + F combination, put <form in the search query. Оndent one line and paste the following code:

CODE
<input type='hidden' name='fbpxl' value='<?= $_GET['fbpxl'];?>'>

On the Thank you page (success.php), you need to put the code in the <head> in the same way as the first step:

CODE
<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=<? echo trim($_GET['fbpxl'], " "); ?>&ev=Lead&noscript=1">  

For the code to work correctly, you need to set the variable value and the pixel value from the FB back office at the end of the campaign URL fbpxl=123123123

CODE
http://domain.com?fbpxl=123123123
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.