Wix · free forever · no signup

Add a free hit counter to Wix

This guide shows how to add a Wix hit counter in about a minute, with no app: you paste one snippet into Settings → Custom Code, placed in Body – end, because an all-time total is a footer artefact — nobody scrolls up to check it. No app from the Wix App Market. Wix renders raw HTML and script tags inside an embed element, so there is nothing to install and nothing to pay for.

What this Wix hit counter shows

The hit counter shows a running total of visits, the classic counter from the early web rebuilt with modern styles. It counts real page loads and filters known bots on the server, so the number isn't padded by crawlers. It suits personal sites, blogs and hobby projects where a visible total is part of the charm.

How to add a hit counter to Wix

  1. 1In the site dashboard go to Settings → Custom Code and click + Add Custom Code.
  2. 2Paste the snippet and set Add Code to Pages to All pages.
  3. 3Under Place Code in, choose Body – end — functional scripts belong there rather than in the head.
  4. 4Apply, then Publish. It now runs on every page of the site, including new pages you add later.
On Wix Studio, or no connected domain yet? No connected domain yet? Drag an Embed a Widget element into the footer area of the Wix Editor instead. The footer is shared across pages, so one paste still covers the whole site.

Where it works best on a Wix site

On Wix, the right spot is Settings → Custom Code, placed in Body – end. An all-time total is something people glance at, not something they look for, so the footer is the right home for it. Pick a theme that matches your site; louder themes suit personal pages, while plainer ones fit business sites.

Wix plan and editor requirements

Wix has two routes. The Embed a Widget element (Add → Embed Code) works on every plan, including free sites, and runs the widget inside its own frame. Settings → Custom Code, which adds a script to every page, only works on a Premium plan with a connected domain. On a free wixsite.com address the Custom Code section is visible but doesn't run, so use the embed element instead.

Three things that trip people up on Wix

Custom Code is gated behind a connected domain

Wix only unlocks Settings → Custom Code on a published site with a connected domain, which in practice means a Premium plan. On a free wixsite.com address the section is there but inert. The embed element has no such requirement, so free sites are not locked out — they just can't use the head position. One more trap: if you later change or reassign the domain, Wix deletes your custom code snippets, so keep the snippet saved somewhere.

The iframe can't resize itself — you set the height

Every Wix embed runs in a sandboxed iframe that cannot talk to the parent page, so auto-resize scripts do nothing. If the widget looks cut off, the widget is fine and the element is too short: drag the blue handles or type a pixel height in the layout panel. Do it again in the mobile editor, because Wix stores mobile sizing separately. Set the height to the tallest the widget will ever get to avoid layout shift.

Nothing exists until you hit Publish

The editor and even Preview mode do not run custom code, and embeds frequently render blank in Preview. Publish, then open the live URL in a normal tab. A widget that 'doesn't work' on Wix is almost always an unpublished change or a Preview-mode check. Also make sure your snippet is HTTPS-only — Wix blocks mixed content outright.

Honest limits

A visit total says nothing about who visited or whether they stayed. For decisions about your site, use your analytics; the hit counter is for showing a number, not analysing one.

What you get, and what it costs

  • Free forever — there is no paid tier, no trial and no card
  • No signup for the badge-style widgets; the live ones create a site ID inline from your URL
  • Async script — it never blocks your page from rendering
  • Works in the Wix Editor, Wix Studio and Editor X, on Wix Blog posts, and on free wixsite.com sites via the embed element
  • Bots filtered server-side on every visitor-counting widget

Wix questions

Do I need an app to add a hit counter to Wix?

No app from the Wix App Market. Wix renders raw HTML and script tags inside an embed element, so there is nothing to install and nothing to pay for. Installing an app for this would mean another dependency and update cycle just to show one widget.

Where exactly does the snippet go on Wix?

Settings → Custom Code, placed in Body – end, because an all-time total is a footer artefact — nobody scrolls up to check it.

Will it slow my Wix site down?

It adds one small script, loaded asynchronously, so it doesn't block your page from rendering. Any third-party script has some cost, so check your page speed before and after adding it. Wix drops the embed into its own sandboxed iframe, so it physically cannot block your page from rendering — the trade-off is that you set the height yourself, because a sandboxed iframe can't tell the parent page how tall it needs to be. There is no cache to purge; the change goes live when you hit Publish.

Does it work with page builders like Wix Editor?

Wix Editor: Add (+) → Embed & Social → Embed a Widget. Wix Studio: Add → Embed → Custom Embeds, same dialog. Editor X: use the HTML iFrame element. Wix Blog: add an HTML block inside the post. Any builder with a raw-HTML or code block will render it.

Does the hit counter count bots?

Known bots and crawlers are filtered out on the server before a visit is counted, so the total reflects real browsers as closely as we can make it.