agent-ecosystem/landing/composables/useAnalytics.ts
iliya e6e89d4ebc fix(tests): improve messageId generation for legacy inbox rows
- Enhanced tests to ensure consistent messageId generation for legacy inbox rows lacking a messageId.
- Updated test descriptions for better clarity regarding the new messageId handling.
- Adjusted test expectations to align with the updated behavior of relaying legacy inbox rows with generated messageIds.
2026-03-23 16:31:37 +02:00

24 lines
662 B
TypeScript

type DownloadEventParams = {
os: string;
arch: string;
version?: string | null;
source: string;
};
export const useAnalytics = () => {
const trackNavClick = (_target: string) => {};
const trackLanguageSwitch = (_from: string, _to: string) => {};
const trackThemeToggle = (_theme: "light" | "dark") => {};
const trackDownloadClick = (_params: DownloadEventParams) => {};
const trackSectionView = (_sectionId: string) => {};
const trackFaqExpand = (_faqId: string, _question: string) => {};
return {
trackNavClick,
trackLanguageSwitch,
trackThemeToggle,
trackDownloadClick,
trackSectionView,
trackFaqExpand,
};
};