Simple JavaScript trick to boost Christmas conversions by 10% – Code Included!

Hot off the conversion press and just-in-time for Christmas.

Last year we posted about our Merry Christmas v. Happy Holidays test we ran for one of our clients. This year we decided to create a Christmas timer that you could download and instantly implement on your site!

If you’ve followed our blog before, you know that creating a sense of urgency for your users to act usually increases conversions. Since we practice what we preach, we decided to run a headline on one of our client’s websites doing just that. We tested a headline that reminds them how near Christmas is. We came up with 2 variations of this headline: one that just states the days, and another that states the days, hours, minutes, and seconds and counts down in real time.

The test:

Here’s the countdown:
[iframe src=”” height=”80px”]

And here’s a larger version:
[iframe src=”” height=”160px”]

Validity notes: This test ran on a site that gets more than 4,000 conversions a day. It was declared a winner with over 95% confidence in less than a week. Additionally, conversions are actual end-goals, not just clicks to the next page.

Why does this work?

It emphasizes the urgency.

Here’s a simple experiment to make the point. Try to do any task in one minute. Now try to do the same task while having your friend audibly countdown the time left for you every second. The latter scenario is far more stressful. Your heart starts pumping, sweat starts beading on your forehead, and adrenaline starts coursing through your veins. While we’re not trying to invoke stress in our users, we do want them to notice the urgency. Typically conversions increase when your users have slight pressure to make a time-sensitive decision as soon as possible.

For years advertisers have known that it pays to announce “Limited time offer!” We’re taking that same concept to the next level.

It catches their eye.

Remember those early banner ads that caught your attention by flashing bright colors at you? Same thing here. Although we’d like to think we’re being a little more polite.

Things that move catch your attention. It’s a science fact. What do camouflaging animals do when they are trying to hide from their predators in plain sight? They hold still. Not moving allows things to blend in and be overlooked. And the opposite holds true too.

The Downside to this test: Depression sinks in the day after Christmas… You’ll have to turn this winning variant off and it’s back to the baseline.

Here’s our Christmas gift to you

If you’d like to use this on your site, just customize the following code snippet. Here’s the HTML that will display the countdown:

<span id="xmascounter"></span> until Christmas.


Here’s the JavaScript that will keep it ticking:

function calculateXmasCounter() {
    var now = new Date();
    var xmas = new Date(2012, 11, 25, 0, 0, 0, 0); //Xmas 2012 (be careful: 11 is December)
    var hoursleft = 23 - now.getHours();
    var minutesleft = 59 - now.getMinutes();
    var secondsleft = 59 - now.getSeconds();
    var daysleft = Math.floor((xmas - now) / (1000*60*60*24));
    //format 0 prefixes
    if (minutesleft < 10) minutesleft = "0" + minutesleft;
    if (secondsleft < 10) secondsleft = "0" + secondsleft;
    document.getElementById('xmascounter').innerHTML = daysleft + " days, " + hoursleft + ":" +minutesleft + ":" + secondsleft;
setInterval(calculateXmasCounter, 1000);

Download the source files right here!
[CSSBUTTON target=”” color=”ff0000″ float=”left”]Download[/CSSBUTTON]


Contact us today to increase your Conversion Rate . . .

We put our money where our mouth is – click here to contact us today and learn how we can drastically increase your website conversion rate for no money up front, and backed by our $10,000 guarantee!


Talk to a conversion rate expert now

Contact Us

2 thoughts on “Simple JavaScript trick to boost Christmas conversions by 10% – Code Included!

  1. Awesome. Looks really nice too. Wow, only 13 days until Christmas — I better hurry up and implement this! 😉

    Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *