Skip to content

Commit

Permalink
added the React_measurement_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramin Farhadi authored and Ramin Farhadi committed Jul 15, 2024
1 parent 13deb2e commit f3bc9da
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,14 @@ const FOOTER_SOCIAL_ID = import.meta.env.VITE_REMOTE_SOCIAL_LINKS_ID;
const REACT_MEASUREMENT_ID = import.meta.env.VITE_REACTGA_MEASUREMENT_ID;

function App() {
ReactGA.initialize(REACT_MEASUREMENT_ID);
ReactGA.initialize(REACT_MEASUREMENT_ID, {
gaOptions: {
debug_mode: true,
},
gtagOptions: {
debug_mode: true,
},
});

// Send pageview with a custom path
ReactGA.send({ hitType: "pageview", page: "/", title: "UCF Campus Map" });
Expand Down

0 comments on commit f3bc9da

Please sign in to comment.