Přejít k obsahu  Přejít k hlavnímu menu

Blog / Knowledge base

Updated: 13. September 2020

Discount codes

Mailocator allows you to pass discount and promotional codes to email campaigns

How discount codes are processed
You can divide discount codes into sets and use each set for a specific campaign - you can use a different series of codes for exit-intent and another for welcome.
After successfully sending an email address, the discount code is passed to the email tool, which delivers it to the user.
After successful processing, you can have the discount code displayed directly in the thank you message.

Types of discount codes
Unique codes - each customer gets their own unique code.
Daily code - all customers will receive the same code with limited validity within one day.
Codes obtained in real time from an external API - more on this topic

Inserting discount codes into Mailocator

Open Features and Settings.
Select Promocodes and Gift Coupons.

In the Codes manager, select Create new promocode set.

Creating and filling a new code stack

Choose how to assign codes - daily (all users will receive the same code in one day) or unique - (each user will receive their own code).
Name the code stack.
Enter the codes in a valid CSV format.

CSV line format
The line must always contain: code, expiration date in the form YYYYMMDD and text information (discount name, action, ...) separated by a semicolon, UTF-8 character set.
Example: code-123; 20201224; Christmas Code is a code that all customers will receive on December 24, 2020.

Promo codes manager

You see an overview of discount code stacks.
The number shows the number of available unused codes.
You can add or delete sets.

Alert for low codes in the stack
In the Notification settings, you can have a notification message sent to you by e-mail before the tray is empty.

Assign codes to a campaign

In Scenarios, select the campaign and click the gift icon.
The codes can be attached to all campaigns that support email marketing.

Assign the desired tray to the campaign.

Expert settings

By sending a hidden input with the name of the stack, you can dynamically assign stacks to different designs across campaigns - for example during A / B testing:

<input type="hidden" name="opt_promocode_set" value="Unique codes"/>

value must contain a valid stack name.


Scenario in Mailocator

The Mailocator scenario is a key tool for setting up your campaigns to work properly. See everything and how easy it is to set up.

Discount codes

Mailocator allows you to pass discount and promotional codes to email campaigns

Discount codes obtained from the API in real time

In addition to code stacks, Mailocator allows you to read discount codes in real time from an external API, display them in a thank you page and pass them to an email tool.

Transfer of data from Mailocator to ESP

Sometimes it is useful to provide additional information from Mailocator, usually state, gender, favorite categories, discount code or name and surname. How to do it?

Preparation of the winning calendar (Advent calendar)

Mailocator contains pre-prepared templates for action calendars, which reveal to users the winnings for a specific day in exchange for an email address. You can easily prepare an Advent calendar with a discount or an event for each day.

Scratch card

A scratch card is a campaign in which the marketing content (discount, notification, coupon...) is covered by an image that can be wiped with the mouse cursor or a finger on the screen of the smart device. After deleting and revealing the content, you can automatically trigger an action, such as getting an email address.