Skip to content

Commit

Permalink
google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
vabatista committed Mar 14, 2024
1 parent fafaf9a commit 73c305d
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 1 deletion.
10 changes: 10 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
Expand Up @@ -20,6 +20,7 @@
"react-bootstrap": "^2.10.1",
"react-dom": "^18.2.0",
"react-dropdown-select": "^4.11.2",
"react-ga": "^3.3.1",
"react-icons": "^5.0.1",
"react-router-dom": "^6.18.0",
"react-scripts": "5.0.1",
Expand Down
3 changes: 3 additions & 0 deletions src/pages/about-us.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import AddIcon from '../assets/svg/add-icon-white.svg';
import logo from '../assets/logo_viva_viajando_transparente.jpeg'
import React from 'react';

import ReactGA from 'react-ga';
ReactGA.initialize('G-YYECSC1FEY');
ReactGA.pageview(window.location.pathname + window.location.search);

export default function AboutUs() {
const navigate = useNavigate();
Expand Down
3 changes: 3 additions & 0 deletions src/pages/add-blog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import { categories } from '../utils/category-colors';
import MDEditor from '@uiw/react-md-editor';
import style from '../assets/markdown.styles.module.css';
import React from 'react';
import ReactGA from 'react-ga';
ReactGA.initialize('G-YYECSC1FEY');
ReactGA.pageview(window.location.pathname + window.location.search);

type FormData = {
title: string;
Expand Down
4 changes: 3 additions & 1 deletion src/pages/details-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import Footer from '../components/footer';
import ThemeToggle from '../components/theme-toggle-button';
import mdstyles from '../assets/markdown.styles.module.css'


import ReactGA from 'react-ga';
ReactGA.initialize('G-YYECSC1FEY');
ReactGA.pageview(window.location.pathname + window.location.search);

export default function DetailsPage() {
const { state } = useLocation();
Expand Down
4 changes: 4 additions & 0 deletions src/pages/home-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ import Footer from '../components/footer';
import logo from '../assets/logo_viva_viajando_transparente.jpeg'
import React from 'react';

import ReactGA from 'react-ga';
ReactGA.initialize('G-YYECSC1FEY');
ReactGA.pageview(window.location.pathname + window.location.search);

function HomePage() {
const navigate = useNavigate();
const [posts, setPosts] = useState<Post[]>([]);
Expand Down

0 comments on commit 73c305d

Please sign in to comment.