From eebf145efcbb61a8f6d81ea7e631141da780e7e8 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Sat, 18 Jul 2020 22:51:17 -0700 Subject: [PATCH] Capture pushState events. --- .gitignore | 1 - components/layout.js | 2 +- pages/api/session.js | 6 ++- pages/index.js | 9 +++- public/umami.js | 1 + scripts/umami/index.js | 110 +++++++++++++++++++++++++---------------- 6 files changed, 81 insertions(+), 48 deletions(-) create mode 100644 public/umami.js diff --git a/.gitignore b/.gitignore index 47be70dc..a2442a92 100644 --- a/.gitignore +++ b/.gitignore @@ -14,7 +14,6 @@ # production /build -/public/umami.js # misc .DS_Store diff --git a/components/layout.js b/components/layout.js index c3880bd3..19750bcd 100644 --- a/components/layout.js +++ b/components/layout.js @@ -17,7 +17,7 @@ export default function Layout({ title, children }) {