MCPcopy
hub / github.com/CodebuffAI/codebuff / createPostHogClient

Function createPostHogClient

common/src/analytics-core.ts:56–61  ·  view source on GitHub ↗
(
  apiKey: string,
  options: PostHogClientOptions,
)

Source from the content-addressed store, hash-verified

54 * Creates a real PostHog client instance.
55 */
56export 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.

Callers 1

trackEventFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected