-
Notifications
You must be signed in to change notification settings - Fork 4
/
plugin.json
36 lines (36 loc) · 1.64 KB
/
plugin.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"name": "User Agent Populator",
"url": "https://github.com/weyert/useragent-plugin",
"description": "Enhances events with user agent details",
"main": "dist/index.js",
"config": [
{
"markdown": "User Agent plugin allows you to populate events with the $browser, $browser_version for PostHog Clients that don't typically populate these properties"
},
{
"key": "overrideUserAgentDetails",
"name": "Can override existing browser related properties of event?",
"type": "string",
"hint": "If the ingested event already have $browser $browser_version properties in combination with $useragent the $browser, $browser_version properties will be re-populated with the value of $useragent",
"default": "false",
"required": false
},
{
"key": "enableSegmentAnalyticsJs",
"name": "Automatically read segment_userAgent property, automatically sent by Segment via analytics.js?",
"type": "choice",
"hint": "Segment's analytics.js library automatically sends a useragent property that Posthog sees as segment_userAgent. Enabling this causes this plugin to parse that property",
"choices": ["false", "true"],
"default": "false",
"required": false
},
{
"key": "debugMode",
"type": "choice",
"hint": "Enable debug mode to log when the plugin is unable to extract values from the user agent",
"choices": ["false", "true"],
"default": "false",
"required": false
}
]
}