Install the tracking code
The tracking code is a small script that records each visit. Paste it once into the template that all your pages share, so that it is on every page.
- A page of your site
- The Histats code
- Histats servers
- Your statistics
Step by step
Open “Counter CODE”
In your site statistics, click “Counter CODE” and choose a counter. The code is in the “standard” tab.
Copy the code
Select the whole code, from the first to the last line, and copy it.
<!-- Histats.com START (aync)--> <script type="text/javascript">var _Hasync= _Hasync|| []; _Hasync.push(['Histats.start', '…']); _Hasync.push(['Histats.fasi', '1']); _Hasync.push(['Histats.track_hits', '']); (function() { … '//s10.histats.com/js15_as.js' … })();</script> <noscript>…</noscript> <!-- Histats.com END -->Shortened example: copy the complete code, with your site number, from the control panel.
Paste it just before </body>
Put it in the template shared by all pages (usually the footer), not in a single page. If your site uses several templates, repeat this in each one.
Publish and check
Open your site in another tab, then open “Users online” in your statistics: your visit should appear.
Important: Do you use a cache or an optimisation plugin? Clear it after adding the code, otherwise pages saved earlier stay without it.
Tip: Exclude your own IP address in “IP exclusion”, so that your visits are not counted.