-
-
Notifications
You must be signed in to change notification settings - Fork 18
feat: add PostHog analytics to frontend #1563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -16,6 +16,7 @@ import { provideCharts, withDefaultRegisterables } from 'ng2-charts'; | |||||||||||||||||||||||||
| import { CookieService } from 'ngx-cookie-service'; | ||||||||||||||||||||||||||
| import { MarkdownModule, provideMarkdown } from 'ngx-markdown'; | ||||||||||||||||||||||||||
| import { NgxStripeModule } from 'ngx-stripe'; | ||||||||||||||||||||||||||
| import posthog from 'posthog-js'; | ||||||||||||||||||||||||||
| import { AppComponent } from './app/app.component'; | ||||||||||||||||||||||||||
| import { AppRoutingModule } from './app/app-routing.module'; | ||||||||||||||||||||||||||
| import { ConfigModule } from './app/modules/config.module'; | ||||||||||||||||||||||||||
|
|
@@ -83,6 +84,11 @@ if ((environment as any).saas) { | |||||||||||||||||||||||||
| }); | ||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| posthog.init('phc_VPnWHIMj9UjhRLPr7shATjgL0J4KrWWOHkK3JwZbnkw', { | ||||||||||||||||||||||||||
| api_host: 'https://us.i.posthog.com', | ||||||||||||||||||||||||||
| defaults: '2025-11-30', | ||||||||||||||||||||||||||
| }); | ||||||||||||||||||||||||||
|
Comment on lines
+87
to
+90
|
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
|
Comment on lines
+87
to
+91
|
||||||||||||||||||||||||||
| posthog.init('phc_VPnWHIMj9UjhRLPr7shATjgL0J4KrWWOHkK3JwZbnkw', { | |
| api_host: 'https://us.i.posthog.com', | |
| defaults: '2025-11-30', | |
| }); | |
| const posthogApiKey = (environment as any).posthogApiKey; | |
| if (posthogApiKey) { | |
| posthog.init(posthogApiKey, { | |
| api_host: 'https://us.i.posthog.com', | |
| defaults: '2025-11-30', | |
| }); | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The configuration option 'defaults' with value '2025-11-30' appears to be invalid. PostHog's init method does not have a 'defaults' configuration option documented in their API. This may have been intended to be 'person_profiles' or another valid configuration option. Additionally, the date '2025-11-30' is in the past (current date is February 2026), which suggests this may be a placeholder or incorrect value. Please verify the intended configuration option and its correct value.