With Countdown Timer you add a countdown to a date in your communications: the end of a promotion, the start of an event, the last day to sign up. The countdown is an image that updates every time the contact opens the email, so it always shows the time that is really left. Once the end date has passed, it can show a sentence of your choice instead of the numbers at zero.
Before the end date
After the end date
For example, for your end of season sale add a countdown to the newsletter that reaches zero at midnight on the last day of discounts. Whoever opens the email as soon as it arrives sees four days, whoever opens it on the last day sees a few hours, and whoever opens it after the sale finds an invitation to discover the new collection instead of the countdown.
How the countdown works
magnews creates the countdown image when the contact opens the email and counts the time from that moment to the end date. If you show days, hours or minutes, the image is static; if you add seconds, it becomes an animated GIF where the seconds tick by.
The end date can be the same for all contacts, different for each contact (taken from a contact field, such as the renewal date of a subscription) or set in the communication, for example three days after sending. If the end date is more than 100 days away, the countdown shows 99.
To use the countdown, install the Countdown Timer app from the App Center.
Add a countdown to a communication
You can add a countdown to any image block in the editor of communications and transactional messages.
- Go to Journey Lab > Communications, open the communication and click Design.
- Select the image block where you want the countdown. If it already contains an image, remove it from the panel on the right.
- Click Browse image and then Create a Countdown, at the top right.
- Set up the countdown in the Date and duration, Appearance and Labels tabs, checking the preview.
- Click Create.
The countdown goes into the communication like any other image: you can link it and reuse it in other communications. If you want to prepare it in advance and use it in several communications, you can also create it from the library: go to Journey Lab > Library > Media, click Add media, choose Create a Countdown and click Create media.
Choose when the countdown ends
In the Date and duration tab, give the countdown an Internal name, which only helps you recognize it, and choose in End date where the end date comes from.
The same date for everyone
With Fixed date you set in Date and time the moment the countdown reaches zero. It is the right choice for an end date that applies to everyone, such as the end of a promotion or the start of a webinar.
A different date for each contact
With From a contact field the end date is the value of a contact date field, so each contact sees their own countdown. In Expression write contact.values.ENDDATE, replacing ENDDATE with the name of your field. You can also shift the date: with fn.dateadd(contact.values.ENDDATE, -7, 'day') the countdown reaches zero seven days before the date saved in the field.
To check the result, turn on Use a contact for the preview and choose a contact: the preview shows the countdown calculated on their date. If the field is empty or the expression does not return a date, the preview tells you and shows an example.
A date set in the communication
With From the communication you write the end date in the communication code, adding to the image placeholder the expiredate parameter with the date in milliseconds (Unix timestamp):
[image:countdown_1558693205375.png from=newsletter w=273 h=64 url.expiredate='1420123803000']
It is useful when the end date depends on the sending, for example an offer valid for three days from when the contact receives the email. In this case, first calculate the date with a temporary variable:
<meta mn:tempvar mn:name="deliverydateplus3" mn:value="fn.datetostr(fn.dateadd(message.deliverydate, +3, 'day'),'unix_timestamp')" />
and use it as the parameter value:
[image:countdown_1558693205375.png from=newsletter w=273 h=64 url.expiredate=temp.deliverydateplus3]
The expiredate parameter works with every countdown: if you add it to the placeholder of a countdown with a fixed date or a contact field, its date replaces the one set in the countdown.
Days, hours, minutes and seconds
In Units to show select what appears in the image among days, hours, minutes and seconds, for example only days and hours for a distant end date, or seconds too to create urgency in the last hours. With seconds, set in Number of seconds how long the animation lasts, from 1 to 120: the GIF contains one frame per second, so the more seconds you choose, the heavier the image and the slower the email opens.
Show a sentence after the end date
Once the end date has passed, the countdown stays at zero. A stopped countdown, though, tells nothing to those who open the email late: in the After the end date section of the Date and duration tab you can replace it with a message that points them elsewhere, such as "The offer has ended. Discover the new collection!".
Turn on Show a text instead of the countdown at zero, write the sentence in Text or sentence to show and choose font, size, text color and background color, or a transparent background. In the preview you find both images, Before the end date and After the end date.
The sentence takes up the same area as the countdown, so the email layout does not change. The text wraps automatically and, if it does not fit, the font gets smaller: if the sentence becomes too small to read well or gets cut off, the preview tells you. In that case, shorten it.
Customize the appearance
In the Appearance tab you adapt the countdown to the style of your email. In Style choose the basic look: Clock with the digits in rectangles, Boxes in boxes, Bubbles in circles and Candy in ovals. Then choose font and font size and the colors of the background, of the shape behind the numbers, of the numbers, of the labels and, if you like, of the colon.
A transparent background helps the countdown blend into emails read in dark mode. If you use it together with seconds, check the preview carefully, because some details may not display correctly in an animated GIF.
Edit the labels
In the Labels tab you decide whether the words days, hours, minutes and seconds appear above the numbers, under them or not at all, and you can change their text, for example for a communication in another language. You only find the labels of the units you chose to show.
Speed up loading with the cache
With the cache on, magnews creates the countdown image once a minute and shows the same image to every contact who opens the email in that minute. Images load faster, especially in sendings with many opens close together. The cache is on by default.
To change it, go to App Center > Countdown Timer > Settings and click Settings: you can turn it on or off separately for countdowns with seconds and without. With the cache on, seconds can lag behind by up to a minute: if accuracy to the second matters to you, turn it off for countdowns with seconds.
Frequently asked questions
Can I edit a countdown that has already been sent?
Yes. The image is created at every open, so your changes also apply to emails already sent. Be careful with style, font and font size: they change the size of the image, and in communications already sent the countdown would look distorted.
Why can't I save the countdown?
The countdown has a maximum weight, usually 300 KB. If your setup exceeds it, reduce the font size or the number of seconds of the animation.
What do contacts see if they open the email after the end date?
The countdown at zero, or the sentence set in After the end date if you turned it on.
Why does the countdown show 99?
The end date is more than 100 days away and there are not enough digits to show it. Show days too, or bring the end date closer.