mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Disable posthog
This commit is contained in:
parent
c5343b1252
commit
09fad9764a
1 changed files with 11 additions and 12 deletions
|
|
@ -21,18 +21,17 @@ class PostHogClient implements AnalyticClient {
|
|||
}
|
||||
|
||||
capture({ distinctId, event, properties }: AnalyticEvent) {
|
||||
// get client from request context
|
||||
const client = httpContext.get<string>('client') || 'other'
|
||||
|
||||
this.client.capture({
|
||||
distinctId,
|
||||
event,
|
||||
properties: {
|
||||
...properties,
|
||||
client,
|
||||
env: env.server.apiEnv,
|
||||
},
|
||||
})
|
||||
// // get client from request context
|
||||
// const client = httpContext.get<string>('client') || 'other'
|
||||
// this.client.capture({
|
||||
// distinctId,
|
||||
// event,
|
||||
// properties: {
|
||||
// ...properties,
|
||||
// client,
|
||||
// env: env.server.apiEnv,
|
||||
// },
|
||||
// })
|
||||
}
|
||||
|
||||
async shutdownAsync() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue