feat: add posthog student signup
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user