mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-18 04:09:41 +02:00
feat(analytics): add custom event tracking to Storage app
Add StorageEvents helper (11 events) and integrate tracking into: - Files store: download, delete, favorite, view mode toggle - Shared page: share link copy/delete - Trash page: restore, empty trash - Search page: search performed with results count Updates ManaScore analytics from 3/5 to 4/5 (customEvents: true). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
bdab272267
commit
bade0a17db
6 changed files with 34 additions and 2 deletions
|
|
@ -275,6 +275,24 @@ export const ManaCoreEvents = {
|
|||
profileUpdated: () => trackEvent('profile_updated'),
|
||||
};
|
||||
|
||||
/**
|
||||
* Storage App Events
|
||||
*/
|
||||
export const StorageEvents = {
|
||||
fileDownloaded: () => trackEvent('file_downloaded'),
|
||||
fileDeleted: () => trackEvent('file_deleted'),
|
||||
fileFavorited: (favorited: boolean) => trackEvent('file_favorited', { favorited }),
|
||||
folderDeleted: () => trackEvent('folder_deleted'),
|
||||
folderFavorited: (favorited: boolean) => trackEvent('folder_favorited', { favorited }),
|
||||
shareLinkCopied: () => trackEvent('share_link_copied'),
|
||||
shareLinkDeleted: () => trackEvent('share_link_deleted'),
|
||||
trashRestored: (type: string) => trackEvent('trash_restored', { type }),
|
||||
trashEmptied: () => trackEvent('trash_emptied'),
|
||||
searchPerformed: (resultsCount: number) =>
|
||||
trackEvent('search_performed', { results: resultsCount }),
|
||||
viewModeChanged: (mode: string) => trackEvent('view_mode_changed', { mode }),
|
||||
};
|
||||
|
||||
/**
|
||||
* Mukke App Events
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue