fix: posthog configuration
This commit is contained in:
parent
32a82ad565
commit
cf7aa61bbb
@ -24,11 +24,25 @@ function getOperatingSystem(): string {
|
|||||||
return 'Unknown'
|
return 'Unknown'
|
||||||
}
|
}
|
||||||
|
|
||||||
// Function to capture app version and operating system
|
|
||||||
function captureAppVersionAndOS() {
|
function captureAppVersionAndOS() {
|
||||||
const properties: Properties = {
|
const properties: Properties = {
|
||||||
appVersion: VERSION,
|
$appVersion: VERSION,
|
||||||
userOperatingSystem: getOperatingSystem(),
|
$userOperatingSystem: getOperatingSystem(),
|
||||||
|
// Set the following Posthog default properties to empty strings
|
||||||
|
$initial_browser: '',
|
||||||
|
$browser: '',
|
||||||
|
$initial_browser_version: '',
|
||||||
|
$browser_version: '',
|
||||||
|
$initial_current_url: '',
|
||||||
|
$current_url: '',
|
||||||
|
$initial_device_type: '',
|
||||||
|
$device_type: '',
|
||||||
|
$initial_pathname: '',
|
||||||
|
$pathname: '',
|
||||||
|
$initial_referrer: '',
|
||||||
|
$referrer: '',
|
||||||
|
$initial_referring_domain: '',
|
||||||
|
$referring_domain: '',
|
||||||
}
|
}
|
||||||
posthog.capture(AnalyticsEvent.Ping, properties)
|
posthog.capture(AnalyticsEvent.Ping, properties)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user