diff --git a/.env.example b/.env.example new file mode 100644 index 00000000..9788f6df --- /dev/null +++ b/.env.example @@ -0,0 +1,3 @@ +NEXT_PUBLIC_GOOGLE_ANALYTICS= +SPREADSHEET_URL= +NEXT_FULLSTORY_ID= \ No newline at end of file diff --git a/package.json b/package.json index fe294ac4..0886d619 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "isready": "npm run format && npm run lint && npm run build" }, "dependencies": { + "@fullstory/browser": "^1.5.1", "ics": "^2.35.0", "next": "12.1.0", "react": "17.0.2", @@ -20,6 +21,7 @@ }, "devDependencies": { "@teamsupercell/typings-for-css-modules-loader": "^2.5.1", + "@types/gtag.js": "^0.0.10", "@types/node": "^17.0.14", "@types/react": "^17.0.38", "@types/react-typist": "^2.0.3", diff --git a/pages/_app.tsx b/pages/_app.tsx index e940a065..7d92f5db 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -16,26 +16,49 @@ import "src/sections/community/styles.scss"; import "src/sections/home/styles.scss"; import "src/sections/sponsorship/styles.scss"; +import { useEffect } from 'react' +import { useRouter } from 'next/router' import NavigationBar from "src/components/NavigationBar"; import Footer from "src/components/Footer"; +import * as ga from "src/utils/analytics" -const MyApp = ({ Component, pageProps }) => ( - <> - -
-
- -
-
-