Skip to content

Commit

Permalink
Relocate Sentry and add GA
Browse files Browse the repository at this point in the history
  • Loading branch information
doubleangels committed Jan 17, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 4390de8 commit 3b44d18
Showing 4 changed files with 19 additions and 9 deletions.
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-fontawesome": "^1.7.1",
"react-ga4": "^2.1.0",
"swiper": "^11.1.15"
},
"devDependencies": {
9 changes: 0 additions & 9 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
import { Suspense, lazy } from 'react';
import * as Sentry from "@sentry/react";
import Intro from './components/Intro';

Sentry.init({
dsn: "https://d633d2a6f2122f358814f236f4ee06d2@o244019.ingest.sentry.io/4506165444739072",
integrations: [Sentry.browserTracingIntegration()],
tracesSampleRate: 1.0,
replaysSessionSampleRate: 1.0,
replaysOnErrorSampleRate: 1.0,
});

const LazyAbout = lazy(() => import('./components/About'));
const LazyResume = lazy(() => import('./components/Resume'));
const LazyPortfolio = lazy(() => import('./components/Portfolio'));
12 changes: 12 additions & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import './index.css'
import * as Sentry from "@sentry/react";
import ReactGA from "react-ga4";

Sentry.init({
dsn: "https://d633d2a6f2122f358814f236f4ee06d2@o244019.ingest.sentry.io/4506165444739072",
integrations: [Sentry.browserTracingIntegration()],
tracesSampleRate: 1.0,
replaysSessionSampleRate: 1.0,
replaysOnErrorSampleRate: 1.0,
});

ReactGA.initialize("G-G0MB3MGBG1")

ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
<App />

0 comments on commit 3b44d18

Please sign in to comment.