Skip to content

Commit

Permalink
refactor: update gtag events
Browse files Browse the repository at this point in the history
  • Loading branch information
nanochromatic committed Sep 24, 2023
1 parent 6a7a108 commit 35d6d4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/MusicPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const MusicPlayer: React.FC<IMusicPlayerProps> = (props) => {
ce_youtube: playingState.currentSong,
});
} else {
gtag('event', 'ce_complete_playlist_video', {
gtag('event', 'ce_complete_queue_video', {
ce_category: 'video',
ce_youtube: playingState.currentSong,
ce_playlist_name: selectedPlaylist,
Expand Down
8 changes: 4 additions & 4 deletions src/components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ const SearchBar: React.FC = () => {
currentQueueSong: 0,
repeatQueue: queueRepeat,
});
gtag('event', 'ce_start_playlist', {
ce_category: 'playlist',
gtag('event', 'ce_start_queue', {
ce_category: 'queue',
ce_source: 'play_button',
ce_filtered: gridFiltered,
ce_playlist_name: selectedPlaylist,
Expand All @@ -75,8 +75,8 @@ const SearchBar: React.FC = () => {
currentQueueSong: 0,
repeatQueue: queueRepeat,
});
gtag('event', 'ce_start_shuffled_playlist', {
ce_category: 'playlist',
gtag('event', 'ce_start_shuffled_queue', {
ce_category: 'queue',
ce_source: 'shuffle_button',
ce_filtered: gridFiltered,
ce_playlist_name: selectedPlaylist,
Expand Down

0 comments on commit 35d6d4b

Please sign in to comment.