From fbbb364148d79416ebc827f645094ba9d5801a53 Mon Sep 17 00:00:00 2001 From: Euan Date: Sun, 24 Sep 2023 19:00:34 +0100 Subject: [PATCH] Smartlook trial --- frontend/package-lock.json | 6 ++++++ frontend/package.json | 1 + frontend/pages/_app.tsx | 7 +++---- frontend/pages/_document.tsx | 1 - 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 855d00a3e..4542cc10c 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -24,6 +24,7 @@ "react-hotjar": "^5.5.0", "react-icons": "^4.10.1", "sharp": "^0.32.5", + "smartlook-client": "^8.2.0", "typescript": "^5.1.6" }, "devDependencies": { @@ -7192,6 +7193,11 @@ "node": ">=8" } }, + "node_modules/smartlook-client": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/smartlook-client/-/smartlook-client-8.2.0.tgz", + "integrity": "sha512-zIGEV7jeSDqLrwW2bBooSNFYIExuzgYtFkVi7fySVOgW4S5dy/pYh4fAnf/d+GA3oodS+x7/zT2E7xhbsNXLDg==" + }, "node_modules/source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", diff --git a/frontend/package.json b/frontend/package.json index 14c75b15f..de95cc00b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -25,6 +25,7 @@ "react-hotjar": "^5.5.0", "react-icons": "^4.10.1", "sharp": "^0.32.5", + "smartlook-client": "^8.2.0", "typescript": "^5.1.6" }, "devDependencies": { diff --git a/frontend/pages/_app.tsx b/frontend/pages/_app.tsx index aba6bd853..eb823a2e2 100644 --- a/frontend/pages/_app.tsx +++ b/frontend/pages/_app.tsx @@ -3,14 +3,13 @@ import { NextUIProvider } from "@nextui-org/react"; import { ThemeProvider as NextThemesProvider } from "next-themes"; import { fontSans, fontMono } from "@/config/fonts"; import type { AppProps } from "next/app"; +import Smartlook from 'smartlook-client' import { useEffect } from "react"; -import { hotjar } from "react-hotjar"; export default function App({ Component, pageProps }: AppProps) { useEffect(() => { - hotjar.initialize(3147762, 6); - }, []) - + Smartlook.init('0cb3d115dd38c136548da8cbdae1e29785f896ac') + }, []); return ( diff --git a/frontend/pages/_document.tsx b/frontend/pages/_document.tsx index f47356912..f96e6f9de 100644 --- a/frontend/pages/_document.tsx +++ b/frontend/pages/_document.tsx @@ -1,5 +1,4 @@ import { Html, Head, Main, NextScript } from 'next/document' -import HeaderBar from "@/layouts/head"; export default function Document() { return (