Add Google Analytics
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import React from 'react';
|
||||
import React, { useEffect } from "react";
|
||||
import { HomeRounded as HomeRoundedIcon } from "@material-ui/icons";
|
||||
import NavBar from "./NavBar";
|
||||
import Footer from "./Footer";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
export default function TermsOfService() {
|
||||
export default function TermsOfService(props) {
|
||||
const navbarItems = [
|
||||
{
|
||||
type: "link",
|
||||
@@ -14,6 +14,10 @@ export default function TermsOfService() {
|
||||
}
|
||||
];
|
||||
|
||||
useEffect(() => {
|
||||
props.logEvent("page_view");
|
||||
});
|
||||
|
||||
return (
|
||||
<div>
|
||||
<NavBar items={navbarItems} />
|
||||
|
||||
Reference in New Issue
Block a user