Configuration Reference
Configuration Options
| Parameter | Type | Default | Description |
|---|---|---|---|
apiKey | string | Required | Your API key |
apiUrl | string | Production URL | Collector API URL |
batchSize | number | 10 | Batch send size |
sendInterval | number | 5000 | Send interval (ms) |
sessionTimeout | number | 30 | Session timeout (minutes) |
eventGroups | string[] | ['core'] | Active event groups |
debug | boolean | false | Debug mode |
Event Data Format
All events are sent in this format:
{
"event_name": "page_view",
"event_date": "2025-01-15T10:30:00.000Z",
"event_timestamp": 1736936200,
"session_id": "session_1736936000_abc12345_123456",
"user_id": "fp_abc123def456...",
"event_params": [
{ "key": "page_url", "value": "https://example.com" },
{ "key": "page_title", "value": "Home" }
],
"user_params": [
{ "key": "fingerprint_id", "value": "abc123..." },
{ "key": "user_agent", "value": "Mozilla/5.0..." },
{ "key": "screen_resolution", "value": "1920x1080" }
]
}