Visitor counter for Wix
Wix places embedded code in a separate frame. The counter works there, but it often sees the address of that frame instead of your page – that is why statistics from Wix sites can show addresses ending in filesusr.com.
Step by step
- Pick a design on Stats4U and copy the code from the HTML tab.
- In the Wix Editor click Add Elements → Embed Code → Popular Embeds → Embed HTML. In Wix Studio: Add Elements → Embed & Social → Embed Code.
- Choose “Code”, paste the counter code and click Update.
- Drag the frame to the size of the counter and publish the site.
The code
Tab for this platform: HTML
<script src="https://www.stats4u.net/s4u.js"
data-id="12345" data-style="3903" async></script>In this example the counter number is 12345 and the design is a sample. The wizard gives you your own number and the design you pick.
Good to know
- Wix only displays embedded content served over https. The Stats4U code always uses https.
- The frame is a fixed box. If the counter is cut off, make the box bigger; if there is empty space around it, make it smaller.
- Because of the frame, the list of pages in your statistics may show the frame address instead of your page names. Visitors and countries are counted normally.
Guides for other platforms
- WordPressA Custom HTML block on your own WordPress; the HTML <img> tab on the free WordPress.com plan.
- BloggerThe HTML/JavaScript gadget puts the counter on every page of the blog.
- Google SitesInsert → Embed → Embed code in the new Google Sites.
- chomikuj.plThe profile description accepts pictures but no scripts – so the HTML <img> version goes in.
- GitHub PagesStraight into the HTML file or the Jekyll layout – Markdown pages work too.
- JimdoThe Widget/HTML element in Jimdo Creator – and why the newer Jimdo website builder has no place for it.
- NeocitiesInto the HTML of your page, with 88×31 buttons for your button wall.
- Forums & profilesBBCode for forum signatures and game profiles, HTML <img> where HTML is allowed.