E-commerce Optimization

Show Every Shopper Their Own Discount Code and the Time It Has Left

A shopper who wins a code from your popup and keeps browsing can forget it. A countdown bar that shows that shopper their own code and its real time left, on every page, gives the code a far better chance of reaching checkout.

Denzil Sequeira
6 min read
Live exampleFashion — Countdown SalinaInstall free
On this page

Important Notice: This content is for educational purposes only. Results may vary based on your specific business circumstances, industry, market conditions, and implementation. No specific outcomes are guaranteed.

The code that gets forgotten

Your popup works. A shopper enters their email, wins a discount, and sees the code. Then they close the popup and keep browsing, which is exactly what you want. Ten minutes later they're at checkout and the code is gone from their screen and their memory. Some go hunting in their inbox. Some pay full price and feel cheated. Some leave.

The countdown bar keeps the code in view. It shows each shopper who got a code from one of your popups that code and its real time left, on every page, until they use it or it expires.

Watch the bar

Below is a live countdown bar, as a shopper with a code would see it. The code and the time left belong to that one shopper. Another shopper who played at a different time would see a different code and a different deadline.

Try it

The countdown bar a shopper sees after winning a code

Only shoppers who got a code from one of your popups see it, with their own code and its real time left, on every page. Everyone else sees nothing. The code and time here are samples.

Your code WINTER-7K2P23:59:41 left

Reloading or coming back in the same browser shows the same time left. The bar closes 30 seconds before the code expires.

How it is different from a sale countdown

A sale countdown ticks down to one moment for everyone. This bar counts down to the moment this shopper's code expires, and it is honest about it.

  • The time is real. Reloading the page or coming back in the same browser shows the same time left, not a fresh start.
  • Only shoppers with a code see it. Everyone else sees nothing, or an optional invite to one of your popups, so the bar needs no targeting.
  • It looks like your popup. By default it takes the look of the popup that gave the code, or you can switch it to your theme's.
  • It gets out of the way. It closes 30 seconds before the code expires.

A fake timer that restarts every visit teaches shoppers your deadlines mean nothing. A real one is a reminder they can trust.

What you need first

  • A popup that asks for an email and gives a code. A scratch card, spin wheel, pick-a-present, dart game or email signup popup with a discount code all work.
  • One code per shopper. It is switched on for you while a countdown exists. It's what stops the timer restarting: a shopper who comes back with the same email gets the same code and deadline they were first given.
  • The Nudgesmart site widgets app embed switched on in your theme editor, which is what shows the bar.

Add it in a few clicks

  1. Open your code popup. In the editor, click the scratch card, wheel, present, dart board or coupon element and find the Code section.
  2. Set the deadline. Set Code expires after. This is the time the bar counts down.
  3. Add the countdown. In the Add a countdown to your store card, leave Top bar ticked and click Add.
  4. Turn on the embed. In the theme editor, under App embeds, turn on Nudgesmart site widgets and save.

You can also find it in Store Widgets as the Countdown bar. The help article on adding a countdown bar that shows each shopper their own code has every option, and if you'd rather show the code under the price on product pages, see the shopper's code timer.

Where it sits

The bar sits above your header by default. You can make it a small pill at the top or bottom of the screen, or a bar along the bottom. The top bar suits most themes. On stores with a busy header, a bottom pill is quieter.

Choose a deadline that is fair

The bar is only as useful as the deadline behind it. Too short, and shoppers feel rushed. Too long, and the reminder carries no weight. How long a popup code should last walks through the choice, and the discount code countdown bar tool lets you try the wording.

For shoppers who leave the site altogether, the codes they win can also be emailed to them through your own Klaviyo or Mailchimp; Nudgesmart passes the codes to that tool and your own flow sends the email. Emailing shoppers the code they won shows how.

Check it like a shopper

  1. Open your store in a private window and win a code from your popup.
  2. Browse to a product, a collection and the cart, and watch the bar follow you with the same code.
  3. Reload the page and confirm the time left carries on rather than starting again.
  4. Use the code at checkout to make sure it works.

Five minutes of this tells you more than any setting screen.

Frequently asked questions

Does the timer reset if the shopper reloads?

No. Reloading, or coming back in the same browser, shows the same time left.

What do shoppers without a code see?

Nothing, unless you choose to show them an invite to one of your popups.

Can a shopper get a second code to restart the clock?

Not with the same email. One code per shopper gives them the same code and deadline, and once it is used or expired the popup gives them nothing new.

Does it work on phones?

Yes, on every page. Check your choice of position on a phone, where screen space is tightest.

Next step

Open the code popup you already run, set a deadline you're comfortable with, and add the countdown bar from its Code section. Then win a code yourself in a private window and browse a few pages to see it follow you. More is in what's new in Nudgesmart.

Tags

  • discount-codes
  • countdown
  • popups
  • abandoned-cart
  • shopify

Written by

Denzil Sequeira

Founder of Nudgesmart, the Shopify app he builds, and the person who answers its support email.

Put it into practice

Popups built for this

Each one is running live. Open one to see it on desktop, or install free and it is waiting in your template library.

Browse all templates
  • Notification Bars · pets

    Vet-Formulated — Trust Bar
    Loading…

    Vet-Formulated — Trust Bar

    Notification Bars · pets

    Demo only — nothing is saved, no code issued.

    Desktop view
    Loading…

    Vet-Formulated — Trust Bar

    Notification Bars · pets

    Demo only — nothing is saved, no code issued.
    Install free
  • Countdown Timers · beauty

    While the Dew Lasts — Countdown
    Loading…

    While the Dew Lasts — Countdown

    Countdown Timers · beauty

    Demo only — nothing is saved, no code issued.

    Desktop view
    Loading…

    While the Dew Lasts — Countdown

    Countdown Timers · beauty

    Demo only — nothing is saved, no code issued.
    Install free
  • Notification Bars · fashion

    The Drop Is Live — Black
    Loading…

    The Drop Is Live — Black

    Notification Bars · fashion

    Demo only — nothing is saved, no code issued.

    Desktop view
    Loading…

    The Drop Is Live — Black

    Notification Bars · fashion

    Demo only — nothing is saved, no code issued.
    Install free
Free tools

Work out the numbers first