Collection plugins contains only one document, used for sharing information of plugins or core configuration and information about plugin states that can be synced across multiple servers connected to the same database.
This information is read in on each request, to make sure data processing uses latest provided configuration.
Here is the list of fields available:
Field | Description | Example |
---|---|---|
_id | ID of document | plugins |
plugins | Plugin states (enabled/disabled) for cross server state syncing | { "mobile": true, "web": true, "plugins": true, "density": true, "locale": true, "browser": true, "sources": true, "views": true, "drill": true, "funnels": true, "live": true, "retention": false, "revenue": true, "logger": true, "systemlogs": true, "errorlogs": true, "populator": true, "reports": true, "crashes": true, "push": true } |
frontend | Frontend settings | { "production": false, "theme": "", "session_timeout": 180000, "use_google": true, "code": true } |
app | App settings | { "country": "TR", "timezone": "Europe/Istanbul", "category": "6" } |
api | API settings | { "domain": "", "safe": false, "session_duration_limit": 120, "city_data": true, "event_limit": 500, "event_segmentation_limit": 100, "event_segmentation_value_limit": 1000, "sync_plugins": true, "session_cooldown": 15 } |
logs | Logs settings | { "debug": "", "info": "jobs, push, block", "warning": "", "error": "", "default": "warn" } |
{namespace} | Any other plugin provided namespace with its configuration |
Here's is how an example document could look like on plugins collection
{
"_id": "plugins",
"frontend": {
"production": false,
"theme": "",
"session_timeout": 180000,
"use_google": true,
"code": true
},
"api": {
"domain": "",
"safe": false,
"session_duration_limit": 120,
"city_data": true,
"event_limit": 500,
"event_segmentation_limit": 100,
"event_segmentation_value_limit": 1000,
"sync_plugins": true,
"session_cooldown": 15
},
"apps": {
"country": "TR",
"timezone": "Europe/Istanbul",
"category": "6"
},
"logs": {
"debug": "",
"info": "jobs, push, block",
"warning": "",
"error": "",
"default": "warn"
},
"drill": {
"list_limit": 200,
"custom_property_limit": 20,
"projection_limit": 20,
"record_sessions": true,
"record_views": true,
"record_actions": true,
"record_pushes": true,
"record_crashes": true
},
"funnels": {
"funnel_step_limit": 8
},
"reports": {
"use_cron": true
},
"crashes": {
"report_limit": 100
},
"plugins": {
"mobile": true,
"web": true,
"plugins": true,
"density": true,
"locale": true,
"browser": true,
"sources": true,
"views": true,
"drill": true,
"funnels": true,
"live": true,
"retention": false,
"revenue": true,
"logger": true,
"systemlogs": true,
"errorlogs": true,
"populator": true,
"reports": true,
"crashes": true,
"push": true
},
"attribution": {
"custom_links": true,
"pass_campaign": false
},
"retention": {
"span": 10
}
}