Add Google Analytics

This commit is contained in:
2021-09-12 11:24:13 +01:00
parent 7eb9070014
commit bcb8511b7e
15 changed files with 127 additions and 36 deletions

View File

@@ -1,11 +1,11 @@
import React from 'react';
import React, { useEffect } from "react";
import "@material-ui/core";
import { AccountCircleRounded as AccountCircleIcon } from "@material-ui/icons";
import "./css/Home.css";
import NavBar from './NavBar';
import Footer from "./Footer";
export default function Home() {
export default function Home(props) {
const navbarItems = [
{
type: "link",
@@ -18,6 +18,10 @@ export default function Home() {
document.title = "Parandum";
useEffect(() => {
props.logEvent("page_view");
});
return (
<div>
<NavBar items={navbarItems} />