Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuroXina committed Oct 9, 2023
1 parent 2e00a62 commit 48e79ec
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/app/components/google-analytics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,6 @@ const notifyShowingPage = (url: string): void => {
});
};

type Event = {
action: string;
category: string;
label: string;
value?: string;
};

const event = ({ action, category, label, value }: Event): void => {
(
window as unknown as {
gtag(
event: "event",
id: string,
options: { event_category: string; event_label: string; value?: string },
): void;
}
).gtag("event", action, {
event_category: category,
event_label: label,
value: value,
});
};

export const GoogleAnalytics = () => {
const pathname = usePathname();
const searchParams = useSearchParams();
Expand Down

0 comments on commit 48e79ec

Please sign in to comment.