Draw a random discount code
Do you need to draw a random win or a code to gamble popup? Mailocator allows you to easily set the probability to one hundredth of a percent, randomly select a win and deliver it to the email tool.
When to use the winning code draw?
In gamification tools, where the amount of winnings is not determined in advance by another methodology.
Click on the gift code icon and select Random code based on given probability rate.
-* Click Manage to continue.
In the Probability in % column, specify the probability of winning for a given group of codes.
The mechanism of daily and unique codes, or codes from the API, can be applied.
Valid probability range is from 0.001 to 99.999%.
If the sum of the probabilities does not reach 100%, you will be notified.
If the sum of probabilities does not reach 100%, the draw will take place in the interval of the sum of probabilities.
How to pass discount codes to the email tool?
promocode
But if you need to change the property name, it's easy:
Simply add this mask to the HTML code of the hidden input to the value attribute:
{{PROMO_CODE}}
<input type="hidden" name="opt_wincode" value="{{PROMO_CODE}}">
Use a mask to pass the name / text information listed next to the code:
{{PROMO_CODE_TEXT}}
<input type="hidden" name="opt_wincode_name" value="{{PROMO_CODE_TEXT}}">
Functionality verification
The process of awarding the prize can be found in PROMO_CODE_RAND.