API reference for configuration options in Superline Agent Detection
AgentDetector.init()
method.
For constructor options (metadataProvider
, eventsProvider
, eventStorage
, throttleConfig
), see the AgentDetector constructor documentation.
AgentDetector.init()
method.
true
, event listeners are attached and data collection begins immediatelyfalse
, you need to call AgentDetector.startDetection()
manually to begin collectionDEFAULT_EXTRACTORS
.Each extractor class must extend the FeatureExtractor
base class (or similar) and be provided as a constructor.finalizeDetection()
or getCurrentDetectionResult()
.isAgent
will be true
isAgent
will be false
confidence
value.Production vs. Development
debug: true
during development to diagnose issues and inspect features.debug: false
in production for optimal performance and cleaner logs.Performance Considerations
throttleConfig
values (e.g., mouseMoveThrottleMs
) to reduce processing load.extractorClasses
can also improve performance if default ones are not needed.Threshold Adjustment
isAgent
works well for many applications.threshold
option in init()
.confidence
in your analytics for the most nuanced understanding.Extractor Management
DEFAULT_EXTRACTORS
).extractorClasses
replaces the default set entirely. If you want to add to the defaults, you need to explicitly include the defaults in your array: