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