Skip to content

Commit

Permalink
Remove remaining Mixpanel references
Browse files Browse the repository at this point in the history
  • Loading branch information
rkalis committed May 1, 2024
1 parent 3e0826b commit 3abde9c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
13 changes: 0 additions & 13 deletions app/Analytics.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
'use client';

import { usePathname } from 'lib/i18n/navigation';
import { init } from 'lib/utils/analytics';
import Script from 'next/script';
import { useEffect } from 'react';

const Analytics = () => {
const path = usePathname();

// Mixpanel
useEffect(() => {
init();
// track('Viewed Page', { path });
}, []);

// SimpleAnalytics
return (
<>
Expand Down
11 changes: 1 addition & 10 deletions lib/utils/analytics.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
// import mixpanel from 'mixpanel';

export const init = () => {
// if (process.env.NEXT_PUBLIC_MIXPANEL_API_KEY) {
// mixpanel.init(process.env.NEXT_PUBLIC_MIXPANEL_API_KEY, { geolocate: false });
// }
};
export const init = () => {};

export const track = (eventName: string, eventProperties: any) => {
// if (process.env.NEXT_PUBLIC_MIXPANEL_API_KEY) {
// mixpanel.track(eventName, eventProperties);
// }
if (typeof window === 'undefined') return;

(window as any)?.sa_event(eventName, eventProperties);
Expand Down

0 comments on commit 3abde9c

Please sign in to comment.