Skip to content

Commit

Permalink
Update cookie name
Browse files Browse the repository at this point in the history
  • Loading branch information
gocemitevski committed Jan 14, 2024
1 parent 68b7c31 commit a1a8c0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function App() {
buttonText="Во ред"
enableDeclineButton={true}
declineButtonText="Не, благодарам"
cookieName="osnovniUcilistaMK"
cookieName="sredniUcilistaMK"
containerClasses="fixed-bottom bg-dark text-light d-flex flex-wrap justify-content-between align-content-center p-3"
contentClasses="d-inline-flex my-auto py-2"
buttonClasses="btn btn-light"
Expand Down
2 changes: 1 addition & 1 deletion src/components/ReactGATrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Cookies } from "react-cookie-consent";

const ReactGATrack = (props) => {

if (Cookies.get("osnovniUcilistaMK") === 'true') {
if (Cookies.get("sredniUcilistaMK") === 'true') {
ReactGA.set({ title: props.title });
props.location && ReactGA.send({ hitType: "pageview", page: props.location.pathname + props.location.search, title: props.title });
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as serviceWorker from './serviceWorker';
import ReactGA from 'react-ga4';
import { Cookies } from "react-cookie-consent";

if (Cookies.get("osnovniUcilistaMK") === 'true') {
if (Cookies.get("sredniUcilistaMK") === 'true') {
ReactGA.initialize(process.env.REACT_APP_GA, { debug: false });
}

Expand Down

0 comments on commit a1a8c0b

Please sign in to comment.