feat: add posthog student signup

This commit is contained in:
Rotimi Best
2024-04-07 22:01:36 +01:00
parent d01c1a1ba3
commit 9311a21de8
6 changed files with 43 additions and 15 deletions
@@ -1,13 +1,13 @@
import { dev } from '$app/environment';
import posthog from 'posthog-js';
export const capturePosthogEvent = (event: string, properties?: Record<string, any>): void => {
export const capturePosthogEvent = (event: string, properties?: Record<string, unknown>): void => {
if (dev) return;
posthog.capture(event, properties);
};
export const identifyPosthogUser = (id: string, properties?: Record<string, any>): void => {
export const identifyPosthogUser = (id: string, properties?: Record<string, unknown>): void => {
if (dev) return;
posthog.identify(id, properties);