Skip to content

Commit

Permalink
fix: removed old GA
Browse files Browse the repository at this point in the history
  • Loading branch information
Acorn221 committed Sep 30, 2023
1 parent d898e36 commit a1d3d81
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/popup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,16 @@ const IndexPopup = () => {
}, []);

useEffect(() => {
window.gtag('event', 'settings-change', showSettings);
AnalyticsEvent([
{
name: 'event',
params: {
event_category: 'settings',
event_label: 'settings-change',
value: JSON.stringify(showSettings),
},
},
]);
}, [showSettings]);

return (
Expand Down

0 comments on commit a1d3d81

Please sign in to comment.