Start tracking your visitors adding our counter code in your website
New We’re improving several parts of the site. See what’s new
Mail:
Password:
LOST PASSWORD
Getting started · 4 of 5

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.

  1. A page of your site
  2. The Histats code
  3. Histats servers
  4. Your statistics
Every page that loads the code records a visit. Pages without the code are not counted.

Step by step

  1. Open “Counter CODE”

    In your site statistics, click “Counter CODE” and choose a counter. The code is in the “standard” tab.

  2. Copy the code

    Select the whole code, from the first to the last line, and copy it.

    HTML
    <!-- 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.

  3. 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.

  4. 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.

Instructions for your platform

Histats.com © 2005-2026 - PRIVACY POLICY - COOKIE POLICY - histats widget opt-out - histats widget policy - wisecode srl unipersonale