Docs/Developers

Website widget

Show the same live timer or counter on your website, ticking every second.

The widget puts your timer on a web page: a landing page, a product page or a store banner. On a website it ticks continuously, and it always matches the timer in your emails.

Add it to a page

  1. Open the timer and go to the Embed tab.
  2. Choose On a website.
  3. Copy the code and paste it into an HTML or Embed block on your page:
<div data-inboxclock="TIMER-ID"></div>
<script src="https://inboxclock.com/widget.js" async></script>

You can put several timers on one page. Add the script once, and one div per timer.

How it behaves

  • It fills the width of its container, up to the width you set for the timer.
  • Changes you make in Inboxclock appear on the page the next time it loads.
  • Evergreen timers start the first time each visitor sees them, and remember that in the visitor’s browser.
  • If the timer has a click-through link, the widget links to it.
  • Page views are counted under Website widget in Stats.

The widget is about 5 KB and loads its fonts from Inboxclock. It does not set cookies.