Skip to content
Жёлтый веб

Автоматизация и арбитраж трафика

Поиск
English
Русский
Categories
  • Браузеры
  • Домены
  • Клоакинг
  • Креативы
  • Ленды-Проклы
  • Перевод
  • Aff. Networks
  • Скрипты
  • Советы-Полезности
  • Софт
  • Трекеры
  • Facebook
  • Финансы

Build a Universal Thank-You Page

2 comments / Ленды-Проклы, Скрипты

Hello, affiliates! How are you filling it? Is traffic flowing? But don’t feed Yellow bread, let him optimize something. Today we’ll look at a handy thing — a “Thank you” page for any topic and (almost) any GEO.

Personally, I’m quite tired of fiddling with pages. Thanks from affiliate network: either they are not in the geo language, but stupidly in English or Russian and you need to translate, then a pixel needs to be added to each of them, then the design is super poor, etc. And for this reason, I decided to create a universal option in order to once and for all forget that such a thing as a “Thank you” page even exists.

The full solution code is on GitHub, download for now, and I’ll tell you what’s what.

List of features

First, let’s go through the set of functions:

  • Support for various design templates
  • Automatic translation of page text
  • Facebook Pixel Insertion
  • Selecting a Pixel Event
  • Caching translated pages to avoid interrupting the translator

Now let’s go step by step and figure out how to work with it.

Working with Templates

A template is essentially a folder that stores 2 files:

  • html filet.html— here is the page design
  • text filetext.txt— all the text is here
There are 2 templates on the screen: m1 and shakes

How to create a template? Easy: create a subfolder with the name you want within the foldertemplates, throw in the html file of the Thank you page from affiliate network or your own and rename it tot.hml.
Note:If the CSS styles for your Thank You are in a separate file, then copy them and put them INSIDE t.hml. To do this, create a tag<style></style>immediately after<body>and paste what you copied there.

Now you need to create a file in the same foldertext.txt. What should I write there? Open the HTML of your Thank You in any text editor (I prefer Notepad++) and look for all text pieces in it: sentences or individual words. In short, everything that will change depending on GEO.

Each found piece of text is copied to a NEW line of the text.txt file. And instead of the copied text in the HTML file, write the following construction:{T1}— for the first piece,{T2}— for the second, etc. If the pieces are the same, then the replacement will be the same (see{T1}on the screenshot below).

Yes, the text language of ALL your templates MUST BE THE SAME for auto-translation to work correctly. The default is English, but you can change it to, say, Russian by changing en to ru in the filetemplate.php

Now that we’ve sorted out the creation of templates, let’s move on to working with automatic translation.

Auto page translation

Automatic translation of the Thank you page is carried out using as many as three services: Google Translate, Deepl orLibreTranslate. If you use Deepl, open the file translators/deepl.php for editing and add your API key there. It supports working with both paid and free APIs.

You can look at the set of languages ​​that are supported by each translator inside the translator file. Google Translate works through a hack — i.e. not through the official API, so it does not ask for money) Default (if the target language is supported) Google is used, then Deepl and at the very end LibreTranslate. You can change this order by editing the translator.php file.

All translation services use a two-letter language designation,A complete list of two-letter abbreviations can be found here.
Note:If you suddenly choose an unsupported language, then the universal Thank you will show the page in English.

By default, the universal Thank you has caching enabled: why pull the translator service for each user from the same GEO? It’s easier to receive the translation once and then use the already saved version. For this, my Thank you creates a foldercache, where, depending on the template and language, it saves the desired html page with translation.

Connecting a universal Thank you page

First of all, create on yourhostingthankyou folder and upload all the code from Github + your templates into it, if you managed to make them for yourself. Personally, in Keitaro, I took the standard folder where Keitaro uploads all the damn lands and it was in it that I made the thankyou folder.

Well, let’s go, let’s look at two standard connection methods:

  • redirect
  • including page code. Thanks via include

As you can probably imagine, «calling» the Thank You page is usually done from a lead submission PHP script likeorder.php. And one of the most common options for connecting to the Thank You page is a redirect.

This looks like a call to the header function in the lead sending file code:

As a parameter, this function first has the string Location: after which comes the address of the file to which we are redirecting and then parameters are attached to it.

How to register a redirect address? If your lead submission file is located in the same folder as the index file of your landing page, then it turns out that the index.php file of our universal Thank You is located one level higher in the thankyou folder:

../thankyou/index.php

Next, let’s look at what parameters we have:

  • px — responsible for transmitting the Facebook pixel identifier
  • pixelevent — pixel event (default — Lead)
  • lang — the language in which Thank You should be shown (default — en)
  • template — template (by folder name, for example shakes. By default, if the parameter is not specified, a random template is selected)

All parametersexcept pixelYou don’t have to write it, default values ​​will be used.

The total result is something like this:

An example for setting up a redirect is in the fileexampleredirect.php

What if we don’t want to do a redirect, but want to use include?

Then we proceed something like this:

How to make settings for this type of connection should be clear from the screenshot, I’ll just draw your attention to the fact that when connecting via include, you can change the name of the tag in which the Facebook pixel is transferred to your lead sending script.

An example for configuration via include is in the fileexampleinclude.php

That’s all the possibilities, that’s enough for me for now!

I think I’ll add this universal Thank you to my freeclo, well, I wish you to be a plus and write me feedback in PMs and comments!

What to read next

Open the full traffic arbitrage hub →

An IFrame That Fully Covers a Site Builder Page A technical trick for covering a site-builder page with an iframe when the default builder output gets in the way. Callbacker Script for Your Landing Pages A callbacker script for landing pages, with practical notes on where it helps conversion and how to deploy it cleanly. Check Phone Numbers Worldwide with Google’s Solution How to validate phone numbers worldwide using Google’s tooling when verification quality matters in operational flows.
Навигация по записям
← Previous Post
Next Post →

2 comments “<trp-post-container data-trp-post-id='517'>Build a Universal Thank-You Page</trp-post-container>”

  1. Rlmoura
    2024-04-02 в 07:53

    Your projects are excellent! I recently met your cloaker and I’m delighted! I hope you continue to evolve with this project! Sorry for my English.

    Reply
    1. Yellow Web
      2024-04-02 в 13:19

      Thanks for your kind words. Yep, the cloaker is evolving right now, new version is coming soon this year.

      Reply

Write a comment Отменить ответ

Your email address will not be published. Require fields marked as *

  • Полезные ссылки
  • Реклама
  • Rider
  • VK
  • Telegram
  • YouTube
Copyright © 2026 Любое копирование информации без активной ссылки на источник запрещено!
Русский
Русский
English