feat(telemetry): add plugin_loaded event for entry tracking

This commit is contained in:
YeonGyu-Kim
2026-04-11 14:14:28 +09:00
parent 280a8a34e1
commit 4e80a1b1ae
+4 -1
View File
@@ -40,10 +40,13 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => {
const pluginConfig = loadPluginConfig(ctx.directory, ctx)
const posthog = createPluginPostHog()
const distinctId = getPostHogDistinctId()
posthog.trackActive(distinctId, "plugin_loaded")
posthog.capture({
distinctId: getPostHogDistinctId(),
distinctId,
event: "plugin_loaded",
properties: {
entry_point: "plugin",
has_openclaw: !!pluginConfig.openclaw,
tmux_enabled: isTmuxIntegrationEnabled(pluginConfig),
},