How to verify the Hitsteps tracking script on your website

November 29, 2026 13 min read News

You paste one line of code into your site and the numbers start showing up: visitors, pages, referrers, live views. Most site owners never look behind that line again. If you are choosing a tracking tool, or you need to answer a security reviewer who asks what script your visitors actually run, there is one check worth doing. It takes about ten minutes, needs no account, and you can repeat it any time.

Here is the short version. Your page loads a small script from a Hitsteps host. Inside that script lives the shared tracking engine, as one contiguous block of bytes, with a site-specific settings block in front of it and a short trailing section after it. Hitsteps publishes a fingerprint file for every release. You save the exact response your page fetched, download the engine file that the fingerprint describes, and check that those engine bytes appear, byte for byte, inside your saved response. When they do, the bytes in the response your page fetched embed exactly the engine Hitsteps published.

What your page actually loads

The tracker installs as one script tag. On most sites it points to an address like https://edgecdnplus.com/code?code=... (the same script is served through the Hitsteps delivery network, for example from log.hitsteps.com). The tag creates the request for you, so you rarely see this address in your own code.

The response has this shape:

  • a site-specific settings block, which differs from site to site;
  • the shared tracking engine file (track-script-min.js), as one contiguous run of bytes;
  • a short trailing section after the engine.

Sites that turn on single page app tracking (spa=1) receive one more file inside the same response: the small SPA add-on (track-spa.js), placed immediately after the main engine, with no bytes in between. Those two engine files are shared by every Hitsteps site and come from one version-controlled source. The settings block is your site’s own.

The fingerprint file

Hitsteps keeps a small, human-readable file at https://www.hitsteps.com/tracker-manifest.json. For every release it lists the SHA-256 fingerprint and the byte size of the engine files: track-script-min.js for regular websites and track-spa.js for single page apps. The file is generated from the release itself, and older releases stay listed in its engine history.

One detail matters later: the fingerprint stays identical when a release does not change the engine, so the same hash can appear in several consecutive releases.

Step 1: find the script your page fetched, and save it

  1. Open your website in Chrome or Edge.
  2. Open the developer tools with F12 (on a Mac: Command+Option+I).
  3. Switch to the Network tab.
  4. Reload the page, then find the request named code?code=... coming from edgecdnplus.com or log.hitsteps.com.
  5. Right-click that request and choose Copy, then Copy response. Chrome and Edge copy the exact response body to your clipboard. This is the documented, supported way to get the bytes your browser received.
  6. Paste the clipboard into a plain text editor and save the file as tracker-response.js with UTF-8 encoding, no BOM, and with the editor set not to convert line endings. A single trailing newline added by the editor at the end is harmless, because the engine sits in the middle of the response; converting line endings or re-encoding the text inside the response would change the bytes and break the comparison (the check below will then correctly report a mismatch).

Remember which folder you used, because the next step needs this exact file.

The worked example at the end records the capture method, the response length, the engine offset and the result for this exact path. If you prefer a command line route instead, you can re-fetch the same URL and save its output straight to tracker-response.js (for example curl -sS "URL" -o tracker-response.js). That route downloads a fresh copy from the Hitsteps delivery network at that moment, through the same kind of caching that applied to the original request. Technically it is a fresh replay of the URL, not the captured response, so it checks the current serving path rather than the earlier response. Keep any such file labeled as a replay, and scope the result to the engine bytes it contains, as the worked example does.

Step 2: run the two checks

The method has two parts, and both are needed to draw the conclusion.

Check 1: the reference file matches the manifest

Download the engine file exactly as served: https://www.hitsteps.com/track-script-min.js. Then compute its fingerprint:

  • On macOS or Linux: shasum -a 256 track-script-min.js
  • On Windows PowerShell: Get-FileHash .\track-script-min.js -Algorithm SHA256
  • Or use a reputable online SHA-256 tool that accepts an uploaded file.

A SHA-256 fingerprint is always 64 hex characters. Compare it with the sha256 value for track-script-min.js in the manifest, and compare the file size with the manifest’s bytes value for the same file. A match means this downloaded reference is the exact engine the manifest describes.

Check 2: the reference bytes are inside your saved response

The tracker response contains the engine as one contiguous block. The rigorous way to confirm it is to look for the exact reference bytes inside the saved response. Save the short script below in the same folder as your files (a normal Python 3 installation is all it needs, on any operating system) and run it:

#!/usr/bin/env python3
"""Verify a saved Hitsteps tracker response against the public manifest.

Usage (exactly 4 or 7 arguments):
  python3 verify-hitsteps.py RESPONSE.js REFERENCE.js REFERENCE_SHA256 REFERENCE_BYTES
  python3 verify-hitsteps.py RESPONSE.js REFERENCE.js REFERENCE_SHA256 REFERENCE_BYTES SPA.js SPA_SHA256 SPA_BYTES

What this checks:
  1. The reference file(s) match the manifest (SHA-256 and byte size).
  2. The main engine bytes appear as one contiguous block inside the saved
     tracker response; when you request the SPA check, the SPA add-on appears
     immediately after the main engine (adjacent, with no bytes in between).
  It prints the byte offset of the engine and, for every reference file it
  finds inside the saved response, the SHA-256 of those exact engine bytes.
  The slice hash is printed only when the supplied reference file was found
  inside the response. If a reference is not present (for example you check a
  response that contains an older listed engine while supplying today's file),
  the script prints no slice hash and reports a failed check. A historical
  match therefore needs the older reference verified against that history
  entry (hash and byte size), or an engine slice you isolate from the response
  and hash yourself.

RESPONSE.js  the tracker response from Step 1 (saved with Copy > Copy response,
             or an HTTP replay written straight to a file)
REFERENCE.js track-script-min.js from https://www.hitsteps.com/track-script-min.js
SPA.js       track-spa.js from https://www.hitsteps.com/track-spa.js (single page apps only)
REFERENCE_SHA256 and REFERENCE_BYTES are the values listed for the file under
"files" in https://www.hitsteps.com/tracker-manifest.json.
"""
import hashlib, sys

def digest(data):
    return hashlib.sha256(data).hexdigest()

def check(name, path, expected_sha, expected_bytes, resp, must_follow=None):
    data = open(path, "rb").read()
    sha = digest(data)
    meta_ok = (sha == expected_sha) and (len(data) == expected_bytes)
    print(f"[{name}] file   {path}")
    print(f"  sha256 {sha}  expected {expected_sha}")
    print(f"  size   {len(data)} B  expected {expected_bytes} B  -> {'OK' if meta_ok else 'FAIL'}")
    pos = resp.find(data)
    if pos >= 0:
        after = len(resp) - pos - len(data)
        adjacent = (pos == must_follow) if must_follow is not None else True
        line = f"  inside response at byte offset {pos}; {after} bytes after it"
        if must_follow is not None:
            line += "  (immediately after the main engine? " + ("YES -> OK" if adjacent else "NO -> FAIL") + ")"
        print(line)
        print(f"  sha256 of those bytes: {digest(resp[pos:pos + len(data)])}")
    else:
        adjacent = False
        print("  inside response: engine bytes NOT found as a contiguous block -> FAIL")
    return meta_ok and pos >= 0 and adjacent

def main():
    args = sys.argv[1:]
    if len(args) not in (4, 7):
        sys.stderr.write(__doc__)
        sys.exit(2)
    resp = open(args[0], "rb").read()
    print(f"response {args[0]}  {len(resp)} bytes")
    main_data = open(args[1], "rb").read()
    results = [check("main engine", args[1], args[2], int(args[3]), resp)]
    main_end = resp.find(main_data)
    if len(args) == 7:
        if main_end >= 0:
            main_end += len(main_data)
        results.append(check("spa add-on", args[4], args[5], int(args[6]), resp, must_follow=main_end))
    verdict = "MATCH" if all(results) else "MISMATCH"
    print("RESULT: " + verdict)
    sys.exit(0 if all(results) else 1)

if __name__ == "__main__":
    main()

The script takes exactly 4 or exactly 7 arguments, nothing in between: the four-argument form checks the main engine only, and the seven-argument form adds the SPA check. If you pass any other number of arguments it prints the usage and stops, instead of guessing. The main engine check is the main check, for regular websites and for single page app installs alike; the SPA add-on is an additional check you add when you know the site uses SPA tracking.

Replace REFERENCE_SHA256 and REFERENCE_BYTES with the values from the manifest for your file (and SPA_SHA256, SPA_BYTES with the track-spa.js values when you use the seven-argument form). The script prints what it found: whether each reference matched the manifest, the byte offset where the engine sits inside your response, how many bytes come after it, and the SHA-256 of the engine bytes exactly as found in the response. RESULT: MATCH means the response you saved embeds exactly the engine or engines the manifest describes. RESULT: MISMATCH means one of the checks failed, and the lines above it show which one.

Your folder then contains tracker-response.js (from Step 1), track-script-min.js (and track-spa.js for SPA sites), and verify-hitsteps.py. Run e.g.:

  • Regular: python3 verify-hitsteps.py tracker-response.js track-script-min.js 6d37f6d46833ef01e8e4185a1d862d45350f9c041c98df161a99af2a18956c04 110287
  • SPA, after substituting your own track-spa.js hash and size:
    python3 verify-hitsteps.py tracker-response.js track-script-min.js <HASH> <BYTES> track-spa.js <SPA_HASH> <SPA_BYTES>

What the two checks together verify

Check 1 verifies that the reference engine you downloaded is exactly the engine Hitsteps published for the release described in the manifest. Check 2 verifies that those same bytes sit, as one contiguous block, inside the response your page fetched. A MATCH therefore means the response bytes your browser received embed, byte for byte, the engine Hitsteps published.

The scope is deliberate. The check covers the shared main engine, and the SPA add-on when you add it. It does not cover your site’s own settings block at the start of the response or the short trailing section, and it is not a review of what the script does while it runs. It is an identity check on the engine: the same bytes, or not.

A worked example

On 28 November 2026 at 21:32-21:47 UTC we ran the full walkthrough against the live manifest and the tracker response of our own site: https://edgecdnplus.com/code?code=90231ecc107f37f12d799261dc088461&lang=en, the request the English security page loads.

  • Manifest: https://www.hitsteps.com/tracker-manifest.json (release commit 367446f1433f..., committed_at 2026-11-28T21:28:00Z) listed track-script-min.js as SHA-256 6d37f6d46833ef01e8e4185a1d862d45350f9c041c98df161a99af2a18956c04, 110,287 bytes, and track-spa.js as 188a7c304ca2717239f9aa4cb9d30dd936798a23836019e16ba08eee01fc8161, 6,787 bytes.
  • Check 1: track-script-min.js downloaded from https://www.hitsteps.com/track-script-min.js measured exactly 110,287 bytes and returned the SHA-256 above. Match with the manifest.

We then ran Check 2 on the saved response from the documented browser path and on a fresh replay, labeling each.

  • Browser capture (Network, Copy, Copy response, saved to tracker-response.js): the captured body was 116,765 bytes. The script found the exact engine bytes as a contiguous block starting at byte offset 5,634, with 844 bytes after the engine, and printed the engine slice SHA-256 as the manifest value. RESULT: MATCH.
  • Fresh HTTP replay (curl of the same URL): the saved body was 116,756 bytes. The engine sat at byte offset 5,625, again with 844 bytes after it. RESULT: MATCH.

The two bodies differ by a few wrapper bytes, and the engine offsets differ accordingly. Both contained the identical engine bytes, and both passed. What a match covers is the engine bytes inside the response, not the surrounding wrapper, so the scope stays the same whichever route produced the file.

We repeated the walkthrough on the spa=1 variant of the same URL (123,543 bytes, fresh HTTP replay). The main engine sat at offset 5,625 again, the 6,787-byte SPA add-on began immediately after it at offset 115,912, and 844 bytes followed. Both files matched the manifest. RESULT: MATCH.

This manifest (commit 367446f1433f, 21:28:00Z) lists exactly the same engine hashes as the earlier build (commit e62e3acb0945, 19:50:37Z) that we exercised at 20:48-20:52 UTC, which is the article’s point that a fingerprint can stay identical when a release does not change the engine.

As a control, we flipped a single byte inside the engine bytes of a copy of the saved response and reran the script. Check 2 failed with RESULT: MISMATCH. In a second control we inserted unrelated bytes between the main engine and the SPA add-on; the script reported the add-on as not immediately adjacent and returned RESULT: MISMATCH. In a third control we called the seven-argument form on a response that contained no SPA add-on at all; instead of a silent main-only pass, the script reported the add-on missing and returned RESULT: MISMATCH. These controls show the method and the script distinguish a changed, a non-adjacent and an unfinished response from a verified one.

The offset itself is not fixed: it moves with your site’s settings block and the request parameters. The claim being verified is the contiguous block, not a particular number.

Step 3: read the result precisely

A fingerprint match tells you more than “yes or no”, so it deserves an honest reading. In every case below, “match” refers to the reference bytes the script found inside the response you saved, and to the SHA-256 it prints for those found bytes.

Your hash matches the current manifest entry. The response embeds the engine the current release publishes.

Your hash matches an older entry in the engine history. The manifest’s engine history lists each older release’s engine values (the same SHA-256 and byte size per file), but it does not publish the old engine files themselves. The script can print a hash only for a supplied reference it actually finds in the response. With today’s file alone, a failed check leaves the older identity unknown: the current bytes simply are not there, and the script prints no slice hash, so nothing is compared yet. To verify an older engine you need either the corresponding archived engine file, itself checked against that history row’s hash and byte size (the checker then finds the block and confirms it), or the engine slice isolated from your response and hashed separately so its own hash and size can be compared with the history rows. A match against a history entry then identifies an older listed engine. The same hash can appear in several rows because a release that does not change the engine keeps the same fingerprint.

Nothing in the manifest matches. The response is unverified against what Hitsteps lists today, current or historical. A failed current containment check does not by itself exhaust the history: it tells you today’s reference was not found; checking older entries requires the archived reference or an isolated slice as above. Before reading anything into the result, rule out serving and caching. The Network tab’s Disable cache option and an incognito or private window address the browser’s own copy of the script. A content delivery network, a plugin cache or a proxy can still hand out an older copy, and a cleared browser does not by itself guarantee a fresh fetch or let a retry bypass an upstream cache. If a genuinely fresh check still matches nothing, email security@hitsteps.com, explain what you ran, and include the response URL, the saved file and the hashes you got.

How we control changes to the tracking engine, and what the fingerprint is for, is described on our security page: https://www.hitsteps.com/security.

Try it with your own site

If your site does not use Hitsteps yet, create a free account, paste the one line of code into your site, and the same tracker you just verified will start reporting your first visits into your own dashboard. When the numbers arrive, you can run this check again any time, and the current fingerprint is always waiting in the manifest.

Start your free trial at https://www.hitsteps.com/register.php.