Email Your Popup Discount Code with Shopify Flow

Each popup sign-up starts a Shopify Flow trigger with the new customer and the discount code, so Flow can send the code, tag the lead or tell your team.

You will be redirected to the Shopify app store.

Short answer: Pop Up Discount adds a Shopify Flow trigger called Customer created by MITS. It starts every time the app turns a popup sign-up into a Shopify customer and passes your workflow the customer and the popup's discount code. Add the Send marketing email action, and the subscriber gets the code by email after signing up.

A visitor who closes the popup before copying the code has nothing to come back with. With Shopify Flow the same code also goes out by email, and the lead is already a Shopify customer with email marketing set to subscribed. The details below come from the Pop Up Discount code, including the cases where the trigger does not start.

The Shopify Flow trigger Pop Up Discount adds

ItemValue
Trigger name in FlowCustomer created by MITS
When it startsRight after the app creates a Shopify customer from a popup sign-up
Data it passesThe customer (email, phone, name, tags and other customer fields Flow can read), discountCode, the code that visitor got, and popupName, the name of the popup they signed up in
Tags already on the customerPopupMits, PopupMits: <popup name>, PopupMits: <discount code>
Consent already setEmail marketing subscribed when an email is given, SMS marketing subscribed when a phone is given (single opt-in)

When the trigger does not start

  • The email already belongs to a customer. The popup shows the message you wrote for existing customers and creates nothing, so Flow gets no event.
  • The plan's customer limit is reached. New sign-ups wait as pending in the app. When you release them with the one-time purchase, each one becomes a customer and starts the trigger at that moment, with its code.
  • The visitor left only a phone number. The trigger starts, but a marketing email has no address to go to. Use a condition on the customer's email, or send the code through your SMS app.

How to email the popup discount code with Shopify Flow

  1. Create the discount code. In Shopify admin, go to Discounts and create the code your popup offers, for example 10% off the first order.
  2. Add the code to your popup. In Pop Up Discount, open the popup, enter the same discount code and give the popup a clear name, such as Welcome 10.
  3. Open Shopify Flow. Open the Shopify Flow app from Apps in your admin and create a new workflow.
  4. Pick the trigger. Choose the trigger Customer created by MITS. It carries the new customer and the discount code.
  5. Add the action. Add Send marketing email, write the message and insert the discount code and, if your popup asks for it, the first name.
  6. Test with your own email. Turn the workflow on, sign up once through the popup on your storefront and check that the email arrives and the customer has the PopupMits tags.

Prefer to watch? The video tutorial walks through the same trigger and the Send marketing email action, including the discount code and the first name in the email.

The Flow trigger works on every plan, including the free one; paid plans start at $3.99/month.

Install Free on Shopify

Workflows you can build on this trigger

GoalFlow setup
Email the codeTrigger, then Send marketing email with the discount code in the message
A different email per popupCondition on the customer's tags (for example PopupMits: Exit offer), then one email per branch
Tell your teamSend internal email to your own address with the customer's email, the popup name and the code: get an email about every popup sign-up
Feed another appUse an action that another installed app adds to Flow, such as your email, SMS or CRM app

Send internal email goes to the address you type in the action, not to the customer, so the message to the subscriber goes through Send marketing email. Shopify's marketing automations send only to customers subscribed to marketing by default, and Pop Up Discount records that consent when the visitor signs up.

What Pop Up Discount leaves to Flow

  • It sends no emails or texts itself. Shopify Flow, Shopify's email tools or your email and SMS app send them.
  • It passes the code the visitor got: the code you entered in the popup, or a single-use code issued to that visitor when the popup gives unique codes.
  • It has one trigger. There are no Pop Up Discount actions in Flow, and no events for popup views or closes.

Related guides

Frequently Asked Questions

Does Pop Up Discount work with Shopify Flow?

Yes. The app adds a Shopify Flow trigger called Customer created by MITS. It starts each time the app creates a Shopify customer from a popup sign-up and passes the customer and the popup's discount code to your workflow.

How do I email the popup discount code to a new subscriber?

Create a workflow in Shopify Flow, pick the trigger Customer created by MITS, add the Send marketing email action and insert the discount code from the trigger into the email. Our video tutorial shows the same steps.

Why did my Flow workflow not run after a sign-up?

The trigger starts only when the app creates a new customer. It does not start for an email that is already a customer, or for a sign-up kept as pending after the plan's customer limit; pending sign-ups start it when you release them. Check that the workflow is turned on.

Can Shopify Flow send the code by text message?

Pop Up Discount sets SMS marketing to subscribed when a visitor gives a phone number, and the customer carries the PopupMits tags. An SMS app that syncs Shopify customers or offers Flow actions can send the code from there; the app itself sends no texts.

Do I need to code to connect Pop Up Discount and Shopify Flow?

No. Flow workflows are built from a trigger, conditions and actions in the Flow editor. The trigger appears in Flow once Pop Up Discount is installed.

Ready to grow your Shopify store?

Install Pop Up Discount by MITS and launch your first popup in minutes. Free plan available.

You will be redirected to the Shopify app store.