added firebase analytics

This commit is contained in:
Patrick Fic
2020-04-13 18:21:59 -07:00
parent e66bd0ae56
commit c783b3f31d
9 changed files with 97 additions and 59 deletions

View File

@@ -1,11 +1,23 @@
import React from "react";
import DashboardGridComponent from "../../components/dashboard-grid/dashboard-grid.component";
import Test from "../../components/_test/test.component";
import { analytics } from "../../firebase/firebase.utils";
export default function ManageRootPageComponent() {
//const client = useApolloClient();
return (
<div>
<Test />
<button
onClick={() => {
analytics.logEvent("start_game", {
level: "10",
difficulty: "expert",
});
}}
>
Click me to start an event
</button>
<DashboardGridComponent />
{
// <SendEmailButton