Random offer generation and the use of spintax
Table of Contents
The random offer distribution functionality allows you to automatically distribute traffic between multiple offers using a macro.
This is convenient for:
- A/B testing;
- uniform distribution of users;
- automation of work with multiple communication channels.
In the spot settings, you can configure random offer generation. The system will automatically select one of the added offers each time the {offer} macro is used.
The choice is made with equal probability:
- with two offers - 50/50;
- in case of several - according to the 1/N principle.
How to set up
- Go to spot settings.
- Open the "Deals" tab.
- Add multiple offers.
- Click the “Make changes” button.
How to use
- Use the
{offer}macro - the system will insert a random offer from the list. - Use macros from the Deals section (e.g.
{link1}) to substitute a specific offer.
Peculiarities
- Any number of offers is supported.
- The distribution is always uniform.
- Spintax (separator
|) is supported for flexible message customization.
Examples of use
1. Random offer via macro {offer}
Setting:
2 offers added:
https://site.com/offer1https://site.com/offer2
Welcome message text template:
Click the link:{offer}
Result:
Click the link: https://site.com/offer1
or
Click the link: https://site.com/offer2
(each option has a 50/50 chance of happening)
2. Example of using more than 2 offers (uniform distribution)
Setting:
3 offers:
offer1offer2offer3
Text template:
Your link: {offer}
Result:
One of the options:
Your link: offer1
Your link: offer2
Your link: offer3
(the probability of each is ~33%)
3. Use in buttons
Button template when using Inline keyboard:
👉 Go to: {offer}
Result:
The button leads to a random offer from the list by spot.
4. Using Spintax
Sample:
{Go to|Click here|Try}: {offer}
Result:
Go to: https://site.com/offer1
or
Click here: https://site.com/offer2
or
Try: https://site.com/offer1
5. How to divide traffic into personal messages?
Specify links to the desired channels using the | symbol inside curly brackets in the text or in the button, and they will be randomly inserted in the welcome message/button:
{https://t.me/person1|https://t.me/person2}
Result:
The user will see one of the options:
https://t.me/person1or
https://t.me/person2Conclusion
Random offer distribution functionality allows for flexible traffic distribution management without the need for additional logic or manual intervention.
Using the {offer} macro and spintax simplifies working with multiple offers, helps distribute the load evenly, and speeds up test launches.
Thanks to its ease of setup and versatility, the functionality can be applied in a variety of scenarios—from distributing users among managers to A/B testing of offers and communication channels.