AnalyticsConfig
The main configuration interface for initializing the MentiQ Analytics SDK.Properties
Your MentiQ Analytics API key used for authentication.
The unique identifier for your project in MentiQ Analytics.
Custom API endpoint URL. Defaults to MentiQ’s standard endpoint if not specified.
Enable debug mode for verbose logging. Useful for development and troubleshooting.
Initial user ID to associate with analytics events.
Time in milliseconds before a session expires due to inactivity.
Number of events to batch before sending to the server.
Interval in milliseconds for automatically flushing queued events.
Automatically track page views when enabled.
Enable automatic tracking of web performance metrics.
Enable heatmap data collection for click and scroll tracking.
Enable session recording functionality.
Automatically track JavaScript errors and unhandled promise rejections.
Maximum number of events to queue before forcing a flush.
Number of retry attempts for failed event submissions.
Delay in milliseconds between retry attempts.
Enable A/B testing functionality.
Configuration options for A/B testing features.
ABTestConfig
Configuration options for A/B testing functionality.Properties
Enable or disable A/B testing functionality.
Cache assignment for this many milliseconds. Default: 5 minutes (300000ms).
Automatically track when a user is exposed to a variant.
AssignmentOptions
Options for experiment assignment requests.Properties
User ID to use for assignment. Overrides the SDK’s current user ID.
Anonymous ID to use for assignment. Overrides the SDK’s current anonymous ID.
Ignore cache and fetch a fresh assignment from the server.