MCPcopy
hub / github.com/PostHog/posthog / capturePluginEvent

Function capturePluginEvent

frontend/src/scenes/plugins/pluginsLogic.ts:42–49  ·  view source on GitHub ↗
(event: string, plugin: PluginType, type?: PluginInstallationType)

Source from the content-addressed store, hash-verified

40const PAGINATION_DEFAULT_MAX_PAGES = 10
41
42function capturePluginEvent(event: string, plugin: PluginType, type?: PluginInstallationType): void {
43 posthog.capture(event, {
44 plugin_name: plugin.name,
45 plugin_url: plugin.url?.startsWith('file:') ? 'file://masked-local-path' : plugin.url,
46 plugin_tag: plugin.tag,
47 ...(type && { plugin_installation_type: type }),
48 })
49}
50
51async function loadPaginatedResults(
52 url: string | null,

Callers 1

pluginsLogic.tsFile · 0.85

Calls 1

captureMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…