Skip to content

Commit 2b253b6

Browse files
committed
feat: posthog finish init
1 parent cc6a18f commit 2b253b6

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

frontend/.env.example

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# General
2+
NUXT_PUBLIC_API_URL=
3+
NUXT_PUBLIC_CALLBACK_URL=
4+
NUXT_PUBLIC_LOGIN_URL=
5+
6+
# Posthog analytics
7+
NUXT_PUBLIC_POSTHOG_KEY=
8+
NUXT_PUBLIC_POSTHOG_HOST=https://eu.i.posthog.com

frontend/app/components/admin/project/AdminProjectThemeEditor.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ function exportTheme() {
5252
.map(([key, value]) => [toKebabCase(key), value]),
5353
),
5454
}
55-
console.log(themeJson)
5655
5756
const blob = new Blob([JSON.stringify(themeJson, null, 2)], {
5857
type: 'application/json',

frontend/app/pages/admin/projects/new.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ async function createProject(event: FormSubmitEvent<Schema>) {
4848
}
4949
5050
executeMutation({ input: event.data }).then((response) => {
51-
console.log(response)
5251
if (response.error) {
5352
toast.add({
5453
title: response.error.name,

frontend/app/plugins/1.posthog.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@ export default defineNuxtPlugin<{ posthog: PostHog | undefined }>(() => {
1414

1515
posthog.init(config.public.posthogKey, {
1616
api_host: config.public.posthogHost,
17-
capture_pageview: true,
18-
capture_pageleave: true,
17+
defaults: '2025-11-30',
18+
person_profiles: 'identified_only',
1919
capture_exceptions: true,
2020
capture_heatmaps: true,
2121
capture_performance: true,
22+
loaded: (posthog) => {
23+
if (import.meta.env.DEV) posthog.debug()
24+
},
2225
})
2326

2427
return {

0 commit comments

Comments
 (0)