Stats Counter Widget
Add a band of headline statistics to a landing page - customers served, countries, satisfaction, rating. Each of up to four numbers counts up once when the band scrolls into view, with your prefix, suffix and label, and visitors who prefer reduced motion see the final figures straight away.
Live preview
Under the widget on your page: Powered by A2Z Tools
Embed code
<iframe src="https://a2z.tools/embed/w/stats-counter" title="Stats Counter by A2Z Tools" width="100%" height="300" style="border:0;width:100%" loading="lazy" allow="clipboard-write"></iframe>
A plain iframe. Works everywhere, including site builders that strip scripts. Adjust height if your content needs more room.
<div data-a2z-widget="stats-counter" data-height="300"></div> <script async src="https://a2z.tools/embed.js"></script>
Adds a small script (what it does) that sizes the widget to fit its content, loads it lazily and keeps it isolated from your page's CSS.
Works with
How it works
Each statistic is a value, a label, and an optional prefix and suffix, set in the builder as v1, l1, p1 and s1 up to v4. Values keep the decimal places you type, so 4.9 stays 4.9 and 98.50 stays 98.50, and they are formatted with the locale's digit grouping, so 1200 shows as 1,200. The count-up starts the first time at least 30% of the band is visible on screen, detected with IntersectionObserver, and runs for 1.4 seconds on an ease-out curve that slows near the end; it never repeats. If the visitor's system asks for reduced motion, or the browser lacks IntersectionObserver, the final numbers appear immediately. Animated digits are hidden from screen readers, which read the final value and label instead, so nobody hears a stream of changing numbers. Four statistics sit in one row on wide frames and in a 2 x 2 grid below 520 pixels.
Method
- Shown value at time t = final x (1 - (1 - t / 1.4 s)^3), rounded to the typed decimals
- Starts once when 30% of the band is visible; final values at once with prefers-reduced-motion
Worked examples
Default demo band
Inputs: No settings
Result: 1,200+ Happy customers; 98% Satisfaction rate; 35 Countries served; 4.9/5 Average rating
Shown until the publisher sets v1.
Two custom stats
Inputs: v1=500, l1=Projects, s1=+; v2=12.5, p2=$, l2=Saved
Result: 500+ Projects; $12.5 Saved
The decimal in 12.5 is kept.
Limitations
- Numbers are fixed in the embed code; the band does not pull live data.
- At most four statistics, each a plain number - ranges such as 24/7 or text values cannot count up.
Where publishers use it
- Agency and SaaS landing pages showing clients, projects and uptime
- Nonprofit impact pages - meals served, trees planted, volunteers
- University and school pages with student numbers and rankings
- Annual-report microsites and investor pages
- Event pages listing speakers, sessions and attendees
Questions
How do I set my own numbers?
In the builder or embed code, give v1 to v4 as numbers with l1 to l4 as labels, and optional p1-p4 prefixes and s1-s4 suffixes - for example v1=1200, l1=Happy customers, s1=+ shows 1,200+.
Does the animation replay when I scroll back?
No. It runs once per page view, the first time the band is at least 30% visible, and then the numbers stay put.
What about visitors who dislike motion?
When the operating system's reduce-motion setting is on, the final numbers are shown immediately with no counting.
Can I show decimals or ratings?
Yes. The widget keeps the decimals you type, up to 4: 4.9 with the suffix /5 shows 4.9/5, and 99.95 with % shows 99.95%.
What if I set fewer than four stats?
The band uses as many columns as there are stats, so two stats sit side by side and three or four fold into two columns on narrow screens.
Cite or recommend this tool
If you reference this tool in an article, course or documentation, these formats are ready to copy. They are optional - nothing is added to your site unless you paste it.
A2Z Tools Stats Counter https://a2z.tools/embed/stats-counter
<a href="https://a2z.tools/embed/stats-counter">A2Z Tools Stats Counter</a>
[A2Z Tools Stats Counter](https://a2z.tools/embed/stats-counter)
Stats Counter by A2Z Tools - https://a2z.tools/embed/stats-counter
Related widgets
-
Fundraising goal thermometer: amount raised, goal, percentage and days left, set in the builder.
-
Live days, hours, minutes and seconds to a date you set, with an "event has started" message.
-
Return on ad spend as a multiple and a percentage, with break-even ROAS from your margin.
-
Solve CPM, campaign cost or impressions from the other two.
-
Cost per click plus CTR, CPM, conversion rate and CPA from one campaign's totals.
-
Conversion rate from visitors and conversions, with an optional A/B comparison and z-test.