Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bring-shrubbery committed Mar 22, 2024
1 parent 3b0c183 commit 90137c3
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions apps/nextjs/src/components/analytics.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
"use client";

import { Analytics } from "analytics";
// @ts-ignore
import gtm from "@analytics/google-tag-manager";
// @ts-ignore
import googleAnalytics from "@analytics/google-analytics";

import { useEffect } from "react";
import { useRouter } from "next/navigation";
// @ts-ignore
import gtm from "@analytics/google-tag-manager";
import { Analytics } from "analytics";
import { atom, useAtom } from "jotai";

/* Initialize analytics */
Expand All @@ -19,11 +16,8 @@ export const analyticsAtom = atom(
gtm({
containerId: "G-ZFKXYDSQD7",
}),
// googleAnalytics({
// trackingId: "G-ZFKXYDSQD7",
// }),
],
})
}),
);

export const AnalyticsProvider = () => {
Expand Down

0 comments on commit 90137c3

Please sign in to comment.