Add Google Analytics
This commit is contained in:
@@ -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} />
|
||||
|
||||
Reference in New Issue
Block a user