diff options
author | Michal Sapka <michal@sapka.me> | 2022-09-07 22:49:23 +0200 |
---|---|---|
committer | Michal Sapka <michal@sapka.me> | 2022-09-07 22:49:23 +0200 |
commit | 248c08ac8f8480b3ed6965606d8d5d6e8d382d4f (patch) | |
tree | 9e361e648e1605f068cba71dc5094348117a2062 | |
parent | 326b566b83b79bf4d16ff0b599efa57b7cde966e (diff) |
feat: add happy kit
-rw-r--r-- | package-lock.json | 19 | ||||
-rw-r--r-- | package.json | 1 | ||||
-rw-r--r-- | pages/_app.tsx | 3 |
3 files changed, 23 insertions, 0 deletions
diff --git a/package-lock.json b/package-lock.json index 94b7354..4c300c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "@emotion/styled": "^11.10.0", "@fontsource/lato": "^4.5.9", "@fontsource/open-sans": "^4.5.11", + "@happykit/analytics": "^1.0.1", "feed": "^4.2.2", "framer-motion": "^7.0.0", "next": "^12.2.5", @@ -1492,6 +1493,18 @@ "resolved": "https://registry.npmjs.org/@fontsource/open-sans/-/open-sans-4.5.11.tgz", "integrity": "sha512-nG0gmbx4pSr8wltdG/ZdlS6OrsMK40Wt6iyuLTKHEf0TQfzKRMlWaskZHdeuWCwS6WUgqHKMf9KSwGdxPfapOg==" }, + "node_modules/@happykit/analytics": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@happykit/analytics/-/analytics-1.0.1.tgz", + "integrity": "sha512-yA0XHxDrfFqjD0R2mKQHsHvJlesoXno7795XbcI7WMDFBnZ02Y/ai5ZyVu17PP4B82pmpOa8zftSYizgtXzAhg==", + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "next": ">=9.1.7", + "react": ">=16" + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.10.4", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.4.tgz", @@ -6411,6 +6424,12 @@ "resolved": "https://registry.npmjs.org/@fontsource/open-sans/-/open-sans-4.5.11.tgz", "integrity": "sha512-nG0gmbx4pSr8wltdG/ZdlS6OrsMK40Wt6iyuLTKHEf0TQfzKRMlWaskZHdeuWCwS6WUgqHKMf9KSwGdxPfapOg==" }, + "@happykit/analytics": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@happykit/analytics/-/analytics-1.0.1.tgz", + "integrity": "sha512-yA0XHxDrfFqjD0R2mKQHsHvJlesoXno7795XbcI7WMDFBnZ02Y/ai5ZyVu17PP4B82pmpOa8zftSYizgtXzAhg==", + "requires": {} + }, "@humanwhocodes/config-array": { "version": "0.10.4", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.4.tgz", diff --git a/package.json b/package.json index 98a8fd7..163fbe0 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "@emotion/styled": "^11.10.0", "@fontsource/lato": "^4.5.9", "@fontsource/open-sans": "^4.5.11", + "@happykit/analytics": "^1.0.1", "feed": "^4.2.2", "framer-motion": "^7.0.0", "next": "^12.2.5", diff --git a/pages/_app.tsx b/pages/_app.tsx index da7cb05..8f7cd45 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -2,8 +2,11 @@ import { ChakraProvider } from '@chakra-ui/react' import theme from '../lib/theme' import type { AppProps } from 'next/app' import '@fontsource/lato/400.css' +import { useAnalytics } from '@happykit/analytics'; function MyApp({ Component, pageProps }: AppProps) { + useAnalytics({ publicKey: "analytics_pub_a2812a8f3f" }) + return ( <ChakraProvider theme={theme}> <Component {...pageProps} /> |