From 4752729baa6f632e57760aac953263450b5c5ee7 Mon Sep 17 00:00:00 2001 From: Clint Plummer Date: Sat, 10 Feb 2024 08:22:05 +1100 Subject: [PATCH] add basic analytics --- package-lock.json | 14 ++++++++++++++ package.json | 1 + pages/_document.tsx | 2 ++ pages/index.tsx | 2 +- 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index cbf33a0..0c70f8a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "clintp-xyz", "version": "0.1.0", "dependencies": { + "@vercel/analytics": "^1.1.3", "next": "14.1.0", "react": "^18", "react-dom": "^18", @@ -791,6 +792,14 @@ "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==" }, + "node_modules/@vercel/analytics": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.1.3.tgz", + "integrity": "sha512-Z0l0y8TnUnnxr+on7oIMB9qQOoSJIniYMzUng6+NU8VVDkZ+kt2QGD5hzODwsuiRJAsjW528iUEtbWCEGkSCCg==", + "dependencies": { + "server-only": "^0.0.1" + } + }, "node_modules/@xmldom/xmldom": { "version": "0.8.10", "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.10.tgz", @@ -6359,6 +6368,11 @@ "node": ">=10" } }, + "node_modules/server-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/server-only/-/server-only-0.0.1.tgz", + "integrity": "sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==" + }, "node_modules/set-function-length": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.0.tgz", diff --git a/package.json b/package.json index d619cac..f6d8234 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "build:resume": "cd resume && node parser.js resume-template.docx resume.clintp.json ../public/resume.clintp.docx" }, "dependencies": { + "@vercel/analytics": "^1.1.3", "next": "14.1.0", "react": "^18", "react-dom": "^18", diff --git a/pages/_document.tsx b/pages/_document.tsx index b2fff8b..9b3e00a 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -1,4 +1,5 @@ import { Html, Head, Main, NextScript } from "next/document"; +import { Analytics } from '@vercel/analytics/react'; export default function Document() { return ( @@ -7,6 +8,7 @@ export default function Document() {
+ ); diff --git a/pages/index.tsx b/pages/index.tsx index cac07a7..da6dac3 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -87,7 +87,7 @@ export default function Home() {
-

Who?

+

Who?