Developer & SDK
The Spectry browser SDK: configuration, the JavaScript API, custom events, user identification and masking.
In this section.
SDK overview & configuration
How the Spectry browser SDK loads, what it collects automatically, and how to configure it.
Track custom events
Send your own events from code with Spectry.track(), including e-commerce events.
Identify logged-in users
Attach a stable user ID and traits to a visitor with Spectry.identify().
No-code event builder
Define custom events visually — from clicks, scroll depth, time on page or frustration signals — without writing code.
Feature flags in code
Read feature-flag values in your application with Spectry.getFlag().
Privacy masking & data attributes
How Spectry automatically masks sensitive data, and the data attributes you can use to control it.
JavaScript API reference
A complete reference of the window.Spectry methods.
Can't find what you're looking for?
Our support team is always happy to help.