The SDK is configured with a singleDocumentation Index
Fetch the complete documentation index at: https://docs.scanova.io/llms.txt
Use this file to discover all available pages before exploring further.
scanova('init', siteId, options) call. This page documents every available option.
Syntax
Options reference
| Option | Type | Default | Description |
|---|---|---|---|
autoPageview | boolean | false | Automatically send a pageview event on every page load. |
autoClicks | boolean | false | Automatically track clicks on links, buttons, and [role="button"] elements. |
autoForms | boolean | false | Automatically track form submissions. |
autoScroll | boolean | false | Track scroll depth at 25%, 50%, 75%, and 90% milestones. |
debug | boolean | false | Print SDK activity to the browser console. Useful during development. |
endpoint | string | https://t.scanova.io/ct | Override the event collection endpoint. Only change if instructed by Scanova support. |
Option details
autoPageview
Fires a pageview event each time the SDK initialises on a page. This happens automatically on full page loads. For single-page apps, see the SPA guide for how to fire page view events on route changes.
pageview event includes page_url, referrer, scan_session_id, and device/visitor context. See Auto-Tracked Events for the full payload.
autoClicks
Listens for clicks on:
<a>tags<button>tags- Elements with
role="button"
element_type, element_text, and optionally destination_url for links.
Tip: Add data-scnv-name="My Button" to any element to override the captured label:
autoForms
Listens for the submit event on <form> elements. Captures form_name and form_action. The form’s field values are never captured — only the form identifier.
Tip: Add data-scnv-name="Contact Form" to a form to give it a readable name in reports.
autoScroll
Fires scroll depth events when the user scrolls past 25%, 50%, 75%, and 90% of the page height. Each milestone fires only once per page load and includes scroll_depth in the metadata.
debug
Enables console logging. Use during development to confirm the SDK is initialising, capturing events, and sending them correctly.
debug in production — the option is false by default.
Recommended production config
Minimal config (page views only)
Manual-only config (no auto-tracking)
Use this if you want full control over what gets tracked — every event will be sent explicitly viascanova('track', ...).
Important: one init per page load
Callscanova('init', ...) once per page lifecycle. Calling it multiple times will register duplicate auto-tracking listeners and result in doubled events.
For single-page apps, call init once when the app boots — not on every route change. Use the SPA guide for route-change tracking.
Disabling tracking for specific users
The SDK has no built-indisable() method. To prevent tracking for specific users (logged-in staff, opted-out users, bots), conditionally skip loading the snippet entirely: