Skip to content

Install the tracker

Versuch installs with one script tag. No SDK, no build step. Once it is on the page, pageviews (including SPA route changes) and clicks are captured automatically.

Add this tag so it loads on every page, immediately before the closing </body> tag:

Loader
<script defer src="https://cdn.versuch.ai/v.js" data-site-id="vpk_live_…" data-api="https://edge.versuch.ai"></script>

data-site-id is your public ingest key (it looks like vpk_live_…). Copy it from the dashboard under Install & keys. It is write-only and safe to commit and ship in client code. data-api defaults to https://edge.versuch.ai.

The v.js loader is small: it installs the API stub, reads your data-* config, and injects the content-hashed tracker. Releases ship behind the loader automatically, so you never change the tag again.

Paste the tag before </body> in your shared layout, footer, or template so it loads on every page.

layout.html
<!-- … page content … -->
<script defer src="https://cdn.versuch.ai/v.js" data-site-id="vpk_live_…" data-api="https://edge.versuch.ai"></script>
</body>
</html>
  1. Run your site and open it in a browser to fire a pageview.

  2. Open the Versuch dashboard under Install & keys. Events should appear within a few seconds.

  3. If nothing shows up, confirm the tag is before </body> and that data-site-id is unchanged.