A complete reference for all the options available in the Radar loader script configuration.
YourAppName
). This allows them to call functions
like YourAppName.track("Custom Event")
. We recommend using a single,
consistent namespace across all customers.cdn.your-app.com
). Defaults to
cdn.snitcher.com
if not provided.api.your-app.com
). Defaults to
radar.snitcher.com
if not provided.features
object allows you to enable or disable specific automatic tracking capabilities.
true
, Radar will automatically track user sessions, including session
start, end, and updates. This is required for session-based delivery.true
, Radar automatically tracks pageviews and page leaves, including
engagement time on each page.true
, enables automatic tracking of form interactions, including:form_start
: When a user first interacts with a form.form_submit
: When a form is submitted.form_abandon
: When a user interacts with a form but leaves the page
before submitting.password
, credit_card
).true
, automatically captures clicks on links, buttons, and elements with a data-track-event
attribute.true
, automatically tracks clicks on links that point to files with common document extensions (e.g., .pdf
, .docx
, .zip
).true
, the tracker will report its own internal JavaScript errors to Snitcher for debugging purposes.true
, Radar will not use persistent storage (cookies or localStorage
) until the giveCookieConsent()
method is called. This is essential for complying with privacy regulations like GDPR. See the Consent Management guide for more details.transport
object lets you fine-tune how data is sent to Radar’s servers.
batchSize
hasn’t been reached.true
, Radar will attempt to use the navigator.sendBeacon()
API to send any queued events when the user navigates away from the page. This is highly reliable for capturing last-minute interactions.['$pageview']
would block all automatic pageview events.