VISITVERITY

Install & reference

Add VisitVerity to any website with a single script tag. No build step, no cookies required.

Quick start

  1. Get your project key. Sign in and open the setup wizard (or Settings) to create a project — you'll get a key like px_….
  2. Add the snippet to the <head> of your site and replace px_your_project_key with your key.
  3. Load a page. Your first visit appears in the dashboard within a few seconds.
HTML — paste before </head>
<script src="https://visitverity.com/tracker.js"
  data-project-id="px_your_project_key"
  data-collector-url="https://visitverity.com/collect/v1/batch"
  defer></script>

Install by platform

Plain HTML

Paste the Quick-start snippet just before the closing </head> tag on every page you want to measure.

Next.js

Use next/script in your root layout:

app/layout.jsx
import Script from "next/script";

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        {children}
        <Script
          src="https://visitverity.com/tracker.js"
          strategy="afterInteractive"
          data-project-id="px_your_project_key"
          data-collector-url="https://visitverity.com/collect/v1/batch"
        />
      </body>
    </html>
  );
}

React (Vite / CRA)

Add the Quick-start snippet to your index.html <head>. The tracker follows client-side route changes automatically.

WordPress

Paste the snippet into your theme's header (Appearance → Theme File Editor → header.php, before </head>) or use any “header scripts” plugin.

With session replay

To enable masked session replay, add the replay attributes:

HTML — with replay + consent
<script src="https://visitverity.com/tracker.js"
  data-project-id="px_your_project_key"
  data-collector-url="https://visitverity.com/collect/v1/batch"
  data-replay="true"
  data-replay-script-url="https://visitverity.com/rrweb.min.js"
  data-consent="granted_by_default"
  defer></script>

Configuration

The script tag accepts these data- attributes:

AttributeRequiredDescription
data-project-idrequiredYour public project key (starts with px_). Find it in the setup wizard or Settings.
data-collector-urlrecommendedWhere events are sent. Use the value shown in your install snippet.
data-replayoptionalSet to "true" to enable masked session replay.
data-replay-script-urloptionalAbsolute URL of the rrweb library when replay is on (self-hosted).
data-consentoptionalConsent mode: "off", "required" (opt-in), or "granted_by_default" (opt-out).

JavaScript API

Once loaded, the tracker is available as window.Tracker:

// Custom event with properties
window.Tracker.track("signup_completed", { plan: "pro" });

// Link an anonymous visitor to your own user id (never PII you don't want stored)
window.Tracker.identify("user_123");

// Manual page view (SPAs are auto-tracked, but you can send your own)
window.Tracker.page();

// Consent controls (see the Consent section)
window.Tracker.grantConsent();
window.Tracker.revokeConsent();

Metrics glossary

VisitorsUnique anonymous profiles, identified with a first-party id in localStorage (no cookies).
SessionsA single visit. A new session starts after 30 minutes of inactivity.
HeatmapsWhere people click on each page. Rage clicks flag frustration (rapid repeat clicks); dead clicks flag clicks that do nothing.
FunnelsAn ordered path of pages/events showing how many people advance and where they drop off.
JourneysA single visitor's path across every session, from first touch to conversion.
FormsField-level engagement and completion — computed from metadata only, never the values people type.
Session replayA masked recording of a session. Inputs and typed text are redacted at capture.
Traffic qualityAn explainable risk score with the reasons behind it. A VPN is a signal, never an automatic verdict.