The tracking code is a single <script> tag. Paste it into your site's HTML, just before the closing </head> tag, on every page you want to track.
<!-- HitCounters.com --> <script async src="https://hitcounters.com/api/tracker.js?code=YOUR16CHARCODE"></script> <noscript><img src="https://hitcounters.com/api/track.php?code=YOUR16CHARCODE&noscript=1" alt="" style="display:none;"/></noscript>
Replace YOUR16CHARCODE with your actual tracking code from the Sites page.
Detailed step-by-step for the major platforms:
theme.liquid<head> — usually the theme's header.php, layout.html, or a "head injection" plugin.<head> and </head>. Closer to the bottom is fine.No. The script tag uses async, which means the browser fetches it in the background without blocking the page render. The full script is under 25 KB.
No. Modern themes use a single layout/header file that wraps every page — add the snippet there once, and it loads on the whole site automatically.
Each site has its own tracking code. Don't reuse one code across two domains — visits get attributed to whichever site that code belongs to. Add each site separately on the Sites page.