Help

How to email shoppers the codes they win

Send every popup winner their discount codes by email, from your own Klaviyo or Mailchimp, with your branding and a button that applies each code.

Shoppers close the popup and forget the code. An email with their codes, sent from your own email tool, gives every win a second chance to become an order.

TL;DR

Open Integrations and connect Klaviyo or Mailchimp. Click Send a test, then build one flow in your email tool from our ready-made email. Finally, open your popup's code settings and turn on Email the codes to shoppers. Nudgesmart passes each winner's codes to your email tool, and your flow sends the email. It takes about 10 minutes, once.

How it works

Codes a shopper wins can be emailed to them through your own Klaviyo or Mailchimp. Nudgesmart passes the codes to that tool, and your own flow sends the email. Nudgesmart never emails shoppers itself.

That means the email comes from your account, with your logo, your sender name and your unsubscribe link.

Step 1 · Connect your email tool

In Nudgesmart, open Integrations and click Klaviyo or Mailchimp. Follow Connect Klaviyo (paste your private key) or paste your Mailchimp API key, and pick the list or audience shoppers should join.

  • Klaviyo: your private key needs Full access for Profiles, Lists, Subscriptions and Events. Klaviyo keys can't be edited, so if yours is missing Events, create a new key.
  • Mailchimp: create a key in Mailchimp under your profile, Extras, API keys, and pick the audience your Shopify store already syncs into.

The full connection steps are in Connect Klaviyo and Connect Mailchimp.

Step 2 · Send a test

Click Send a test with your own email address.

This adds the trigger your flow needs: Nudgesmart Codes Won in Klaviyo, or the nudgesmart_codes_won event in Mailchimp. Your email tool only offers it as a flow trigger after it has received it once.

Step 3 · Build the email

Copy our email template from the integration page, then build one flow in your email tool.

In Klaviyo: Flows → Create flow → Build your own. Set the trigger to Nudgesmart Codes Won, add an email, paste the template and change the colour to yours. Don't add a "subscribed only" filter. Set the flow to Live.

In Mailchimp: Automations → Create flow, trigger API & Integrations → Event API → nudgesmart_codes_won. Add an email, choose Code your own, and paste the template. Turn on Contacts can re-enter flow, so a shopper who wins again gets their new codes, then turn the flow on. Mailchimp flows need Essentials or above. Mailchimp can't repeat a block for each code, so build one flow per number of codes your campaigns give.

Each code in the email has a button that opens your store with the code applied.

Prefer us to build it? Click Email us on the integration page and we'll build the flow and email for you. Setup help is part of the product.

Step 4 · Turn it on in your campaign

Open your spin wheel, scratch card, pick-a-present or other code popup. In its code settings, turn on Email the codes to shoppers and save.

Under the switch you'll see whether it's ready, for example "Codes are emailed from Klaviyo." If something is missing, it says what, such as Connect Klaviyo or Mailchimp first. For Mailchimp, Copy email template for this campaign copies the template with the right number of codes.

Using both Klaviyo and Mailchimp

You can connect both. New contacts go to both, and one of them sends the code emails, so a shopper never gets their codes twice. Choose which on the tool's page with Send code emails from this tool. If neither is chosen, no code emails are sent.

Shoppers who don't join your list

If your popup has a marketing consent box, it starts unticked. Shoppers who leave it unticked still get their codes on screen, but they aren't added to your Klaviyo or Mailchimp and aren't emailed their codes.

If your popup has no consent box, shoppers join your list when they submit it. Say so near the email field, for example "Sign up for our emails and get your codes."

Common pitfalls

  • No email arrives. Check the flow is live, Email the codes to shoppers is on in the campaign, and, on Mailchimp, your plan is Essentials or above.
  • A shopper got no email. Shoppers who unsubscribed from your emails before aren't re-subscribed, and email tools don't send them flow emails. They still see their codes on screen.
  • A returning winner got no new email. The email goes once per win. A shopper who comes back and sees the code they already won isn't emailed again.
  • The trigger isn't in my email tool. Click Send a test first. The trigger only appears after your tool has received it once.