mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:41:09 +02:00
feat(analytics): add custom event tracking to Photos app
Add PhotosEvents helper (8 events) and integrate tracking into: - Photos store: favorite toggle, delete, filters applied - Albums store: create, delete, add/remove photos - Upload page: photo uploaded 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
bade0a17db
commit
3075e515bd
5 changed files with 26 additions and 1 deletions
|
|
@ -275,6 +275,20 @@ export const ManaCoreEvents = {
|
|||
profileUpdated: () => trackEvent('profile_updated'),
|
||||
};
|
||||
|
||||
/**
|
||||
* Photos App Events
|
||||
*/
|
||||
export const PhotosEvents = {
|
||||
photoUploaded: () => trackEvent('photo_uploaded'),
|
||||
photoFavorited: (favorited: boolean) => trackEvent('photo_favorited', { favorited }),
|
||||
photoDeleted: () => trackEvent('photo_deleted'),
|
||||
albumCreated: () => trackEvent('album_created'),
|
||||
albumDeleted: () => trackEvent('album_deleted'),
|
||||
photosAddedToAlbum: (count: number) => trackEvent('photos_added_to_album', { count }),
|
||||
photoRemovedFromAlbum: () => trackEvent('photo_removed_from_album'),
|
||||
filtersApplied: () => trackEvent('filters_applied'),
|
||||
};
|
||||
|
||||
/**
|
||||
* Storage App Events
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue