Skip to content

Commit

Permalink
udpating analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
blackpanther1881 committed Dec 16, 2022
1 parent 8bcd62a commit 372c906
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"react-copy-to-clipboard": "^5.0.3",
"react-countdown": "^2.3.1",
"react-dom": "^16.13.1",
"react-ga": "^2.7.0",
"react-ga4": "^1.4.1",
"react-i18next": "^11.8.6",
"react-mailchimp-subscribe": "^2.1.0",
"react-multi-carousel": "^2.8.0",
Expand Down
6 changes: 3 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect } from 'react';
import { useLocation, Switch } from 'react-router-dom';
import AppRoute from './utils/AppRoute';
import ReactGA from 'react-ga';
import ReactGA from 'react-ga4';
import LayoutDefault from './layouts/LayoutDefault';
import AOS from 'aos';
import 'aos/dist/aos.css';
Expand All @@ -15,8 +15,8 @@ import Summary from "./views/Summary";
ReactGA.initialize(process.env.REACT_APP_GA_ID);

const trackPage = page => {
ReactGA.set({ page });
ReactGA.pageview(page);
ReactGA.set({ page });
ReactGA.send(page);
};

const App = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/Containers/Homepage/XPRTEcosystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
PERSISTENCEONE_TELEGRAM_URL,
PERSISTENCEONE_TWITTER_URL, PERSISTENCEONE_YOUTUBE_URL
} from "../../constants/config";
import ReactGa from "react-ga";
import ReactGa from "react-ga4";
const socialList = [
{
url: PERSISTENCEONE_TWITTER_URL,
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/Footer/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import icon from '../../../assets/images1/persistencefooterlogo.svg'
import Mailchimp from "./MailChimp";
import ReactGa from 'react-ga';
import ReactGa from 'react-ga4';
import Icon from "../../Icon";
import { useTranslation } from "react-i18next";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
PERSISTENCEONE_REDDIT_URL

} from "../../constants/config";
import ReactGa from "react-ga";
import ReactGa from "react-ga4";

const socialList = [
{
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Router } from "react-router-dom";
import { createBrowserHistory } from "history";
import './components/Internationalization/i18n'
import App from './App';
import ReactGa from 'react-ga';
import ReactGa from 'react-ga4';
import * as serviceWorker from './serviceWorker';

//import './App.css';
Expand Down

0 comments on commit 372c906

Please sign in to comment.