Skip to main content
Glama
tracking.ts479 B
import { useChangeSetsStore } from "@/store/change_sets.store"; import { posthog } from "./posthog"; export function trackEvent( eventName: string, // eslint-disable-next-line @typescript-eslint/no-explicit-any properties?: Record<string, any>, ) { const changeSetStore = useChangeSetsStore(); posthog.capture(`wa-${eventName}`, { workspace_id: changeSetStore.selectedWorkspacePk, changeset_id: changeSetStore.selectedChangeSet?.id, ...properties, }); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server