( apiKey: string, options: PostHogClientOptions, )
| 54 | * Creates a real PostHog client instance. |
| 55 | */ |
| 56 | export function createPostHogClient( |
| 57 | apiKey: string, |
| 58 | options: PostHogClientOptions, |
| 59 | ): AnalyticsClientWithIdentify { |
| 60 | return new PostHog(apiKey, options) as AnalyticsClientWithIdentify |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * Generates a unique anonymous ID for pre-login tracking. |