Discount Codes
Glancito lets you attach a Discount Offer to any signup form, journey email step, or campaign. Each offer resolves to a discount code at send time — either the same code for everyone (static) or a unique code per member (pool).
Creating a discount offer
Go to Discount Offers in the sidebar.
| Field | Description |
|---|---|
| Name | Internal label — not shown to members |
| Type | Static or Unique pool (see below) |
| Code / Pool | The actual code(s) to send |
| Expiry date | Informational — enforced by your Shopify store |
Static offer
Everyone who qualifies receives the same code (e.g. WELCOME10). Create the code in Shopify → Discounts first, then paste it here. Simple but publicly shareable.
Unique pool offer
Upload a batch of unique codes. Glancito assigns exactly one code per member — guaranteed with a row-level lock so concurrent sends never double-assign. Each code is tracked: you can see who received what on the offer's detail page.
To generate unique codes in Shopify:
- Shopify → Discounts → Create discount → set percentage/amount
- Select Generate codes → set quantity → export CSV
- Paste the codes into the offer's Add codes box in Glancito
:::tip Keep buffer stock Upload at least 20% more codes than your expected audience. Glancito shows a warning when fewer than 10 codes remain. :::
Attaching an offer
Signup form
In the form builder → Behavior tab → Welcome discount code:
- Select an offer from the dropdown
- Toggle Send welcome email with discount code to include the code in the member's welcome email
The discount code appears on the success screen immediately after signup and is included in the signup_welcome email.
Journey step
In the journey editor, on a Send email step, set discount_offer_id in the step config. The code is resolved per member at the time the step executes and passed to the email template as {{ discount_code }}.
To also stamp an email tag (for deduplication), set email_tag in the step config (e.g. "email_tag": "signup_welcome").
Campaign
When creating or editing a campaign, select a Discount offer. Each member in the segment receives their own code (pool) or the shared static code before the email is dispatched.
Deduplication — preventing duplicate emails
If a member joins via a signup form and is enrolled in a "member joined" journey, they could receive two welcome emails. Glancito prevents this with email tags.
How it works
- When a form sends a welcome email, it stamps the tag
signup_welcomeon the member. - Journey steps can declare
"suppress_if_tag": "signup_welcome"in their config. - The journey executor skips that step for any member who already has the tag.
Setting up suppression in a journey
On your "New member welcome" journey's first Send email step, add to the step config:
{
"suppress_if_tag": "signup_welcome",
"email_tag": "signup_welcome"
}
suppress_if_tag— skip this step if the member already received this tagemail_tag— stamp this tag after the email is sent (so future steps can suppress)
This means:
- Member joins via form with welcome email → gets
signup_welcometag → journey's send step is suppressed ✓ - Member joins without a form welcome email → tag absent → journey sends normally ✓
Template variable
All Glancito email templates support the {{ discount_code }} variable. It renders as nothing if no offer is attached. The signup_welcome templates (HTML + plain text) already include a styled discount block that only appears when the variable is populated.
To add a discount block to a custom template:
{% if discount_code %}
<p style="font-size:22px;font-weight:900;letter-spacing:3px;">{{ discount_code }}</p>
{% endif %}