Skip to main content

How to insert a countdown timer

Add a live countdown timer to your popup to create urgency.

Written by Rob D

A countdown timer adds urgency to your offer. Alia has a Countdown element you can add anywhere in your popup.

Add a countdown

  1. In the popup editor, find where you want the timer in the element tree.

    • To show it on one step on both mobile and desktop, use that step's own content ("Content unique to this step").

    • To show it on every step, use the template. Templates are separate for mobile and desktop, so add it to both.

  2. Select + (Add child element) on the container.

  3. Choose Countdown under Content in Add element.

Choose how it counts down

Select the countdown and choose a type in its Countdown section:

  • Fixed duration: counts down a set time, such as 30 seconds or 24 hours, from when the timer first appears. It starts again if the page is reloaded.

  • To date: counts down to a date and time you pick, such as the end of a sale.

  • To end of: counts down to the end of the current Minute, Hour, Day, Week, Month, or Year, in the visitor's own time.

💡 Note: A countdown only shows time. When it reaches zero, it doesn't close the popup or expire the discount. To expire the discount, set an expiration on the reward.

Format it

  • Format: Letters (1d 2h 30m) or Colons (01:02:30).

  • Units displayed: any of Days, Hours, Minutes, and Seconds.

To change how it looks, use the Text section in Styles for font, size, weight, color, and alignment.

Put a countdown inside text

To show a timer inside a sentence, such as "Offer ends in 09:59", use an expression instead. Select the text, select the Insert an expression icon, and choose Countdown.

💡 Tip: Lia, Alia's built-in AI assistant, can add a countdown for you. Ask in the Lia chat in the popup editor. See Getting started with Lia.

Frequently asked questions

My countdown shows on mobile but not desktop. Why?

You added it to the mobile template. Add it to the desktop template too, or move it into the step's own content so it shows on both.

Can I style the countdown differently on desktop?

Yes. In Styles, choose Desktop only and change the text settings.

Why does the timer start over?

With Fixed duration, the timer restarts when the page reloads. Use To date or To end of for a deadline that stays the same.

Still have questions?

Start a chat from inside the Alia app, or use the chat in our Help Center.

Did this answer your question?