Visitoring
Developer guide / Quick start

Start with one script.
Grow from there.

Add simple, privacy-minded analytics to your website. Start with page views, then measure the actions that matter to you.

No package needed for the script Do Not Track respected
01

Set up your site

Each website has its own tracking key and approved website addresses.

  1. Sign in and add a site. An administrator can open Settings → Sites and create a site for each website you want to measure.
  2. Add the website addresses. Enter each address that should send data, such as example.com and www.example.com. Include each one; Visitoring checks the exact address. Include every host that should send events, including www or a local development port when needed.
  3. Copy the tracking key. View or copy it any time from Settings → Sites. Tracking keys are public browser identifiers. Existing keys created before the dashboard displayed values need to be replaced once.

Add the tracker

Choose either the standard script or the React package for a page. Do not install both.

Use the script without a package, or install visitoring from npm for React. Choose React app for the install command and setup.

Install the tracker

The deferred script records page views and exposes the custom event API after it loads.

Add this snippet to each page you want to measure. Replace the sample key with the tracking key shown in Settings → Sites.

<script defer src="https://visitoring.vercel.app/tracker.js" data-site-key="vk_YOUR_SITE_KEY"></script>

If Visitoring has a custom address, replace visitoring.vercel.app too.

Visitoring records page views on initial load and when a single-page app changes pages, including back and forward navigation. It records the pathname only, omitting query strings and fragments. Don’t add a second route-change page-view effect.

03

Track an action

Send a custom event after your app confirms an action such as a signup.

Send a custom event when someone completes an important action.

Standard website example. Call this after the action succeeds and the deferred tracker has finished loading.

function onSignupSuccess() {
  window.Visitoring.track("signup", {
    plan: "starter"
  });
}

Choose your own event name and details. Avoid names, email addresses, account IDs, or other personal data in page paths or event properties; Visitoring does not automatically redact them. Use broad values such as plan type.

04

Privacy and behavior

Visitoring keeps collection small and predictable.

  • Do Not Track is respected. When the browser sends the Do Not Track preference, Visitoring does not collect the event.
  • Only the page path is sent; query strings and page fragments are left out.
  • Page path segments and custom event properties are stored as sent; do not put personal or sensitive data there.
  • The website that brought someone is shown by name only, not its full address.
  • IP addresses and full browser details are not stored.

Need a tracking key? Sign in and ask your project administrator to add a site.

Log in