Skip to main content

Landing and pre-landing pages for sending leads via API, method 2 (php)

PHP is used for uploading in different sources, such as Google Ads and Facebook

Updated over 2 weeks ago

The new loading mechanism simplifies preparing landing and pre-landing pages for deployment on the hosting. The uploaded archive in ZIP format will contain the code of promo materials maximally prepared for hosting.

Currently, there are two types of loading realizing two methods of sending leads:

  • The first — getting landing and pre-landing where the index-file is in html format. All the details in the article.

  • The second — in php format.

Landing and pre-landing pages for sending leads via API, method 2 (php)

PHP is used for promoting in different sources such as Google Ads and Facebook. To get permission to send a lead using this method, contact the support chat and wait for approval.

This type of landing page is available for downloading from the website of our partner program only from the list of streams.

Loading from the list of streams

In order for the leads to get directly to your personal account, we create a stream using any method in the affiliate program. Next, select STREAMS from the menu. It opens the page with a list of the streams you have created.

Example (see the picture below):

On this page, you can download the ZIP archive containing all the landing and pre-landing pages of this stream at once. The stream, opposite which there is a download button (in the figure above, arrows 1), is available for download (an archive with all the landing and pre-landing pages of this stream).

When clicking on the download button, a menu will appear with two buttons: one labeled HTML, the other labeled PHP.

To download the archive, click the PHP button in the pop-up menu next to the desired stream in the list of your streams and get the ZIP archive file.

The downloaded archive will contain all the landing and pre-landing files (if specified when creating the stream) that are needed for hosting. The landing page will be inside the archive in the lands/lp subfolder, and the pre-landing page in the lands/prelp subfolder.

The user's api token and the hash of the stream (campaign) should already be set automatically in the lead submission file lucky.php.

Example (see the picture below):

In the file index.php, all lines where the search found <form> should automatically be supplemented with the following data in all order forms:

action="lucky.php "

method="POST"

Example:

If there are no such additions, then you should contact the support service with an indication that the archive generation is not working correctly. Otherwise, you can add this data to the file yourself in a text editor.

SubID and UTM tags and pixels

Currently, the setting of subids and utm tags is not implemented using the php method. If tags are used in the address bar, then when sending the lead, these tags will be filled in the statistics of the partner program.

We need to open index.php in a text editor, and do the following:

  • Write in the form (using “<form”) after the line containing name ="phone", the following lines in all the forms where we wrote lucky.php:

<input type='hidden' name='utm_source' value='<?=$_GET['utm_source']?>' />
<input type='hidden' name='utm_content' value='<?=$_GET['utm_content']?>' />
<input type='hidden' name='utm_campaign' value='<?=$_GET['utm_campaign']?>' />
<input type='hidden' name='utm_term' value='<?=$_GET['utm_term']?>' />
<input type='hidden' name='utm_medium' value='<?=$_GET['utm_medium']?>' />
<input type='hidden' name='subid' value='<?=$_GET['subid']?>' />
<input type='hidden' name='subid1' value='<?=$_GET['subid1']?>' />
<input type='hidden' name='subid2' value='<?=$_GET['subid2']?>' />
<input type='hidden' name='subid3' value='<?=$_GET['subid3']?>' />

Example:

  • Using the Facebook pixel or any other metric, we should write to the file confirm.php in <head>.

In order to check if your hosting archive works, we recommend making test leads so that they are displayed in the statistics.

Did this answer your question?