From 91efe41ce54a57421afc983dc277aa7ca48b739d Mon Sep 17 00:00:00 2001 From: "Isaac Lombard [SSW]" <152236421+isaaclombardssw@users.noreply.github.com> Date: Thu, 31 Oct 2024 15:34:00 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=88=20Hotjar=20install=20(#2390)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * adding a new template for docs changes * fixing null value error * added hotjar function --- .github/ISSUE_TEMPLATE/docs-update.md | 6 +++--- pages/_app.tsx | 24 ++++++++++++++++-------- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/docs-update.md b/.github/ISSUE_TEMPLATE/docs-update.md index 4a117a8a31..f41d804c07 100644 --- a/.github/ISSUE_TEMPLATE/docs-update.md +++ b/.github/ISSUE_TEMPLATE/docs-update.md @@ -8,10 +8,10 @@ title: "📝 " ### 💫 Describe the Issue With the Current Docs - + ### 📝 Outline the Proposed Change - + 1. On page '...', ... is wrong/is unclear. ### 💼 Tasks @@ -22,7 +22,7 @@ title: "📝 " ### 📸 Screenshots - + Cc: diff --git a/pages/_app.tsx b/pages/_app.tsx index bdd49c0b7c..6981e9381b 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -1,17 +1,17 @@ -import React, { useEffect } from 'react' -import App from 'next/app' -import Head from 'next/head' -import { DefaultSeo } from 'next-seo' -import data from '../content/siteConfig.json' import { GlobalStyle } from 'components/styles/GlobalStyle' import 'components/styles/fontImports.css' +import Cookies from 'js-cookie' +import { DefaultSeo } from 'next-seo' +import App from 'next/app' +import Head from 'next/head' import path from 'path' -import '../styles/tailwind.css' +import React, { useEffect } from 'react' import { useEditState } from 'tinacms/dist/react' import { CloudBanner } from '../components/layout/CloudBanner' -import ChatBaseBot from '../components/ui/TinaChatBot' import ConsentBanner from '../components/ui/ConsentBanner' -import Cookies from 'js-cookie' +import ChatBaseBot from '../components/ui/TinaChatBot' +import data from '../content/siteConfig.json' +import '../styles/tailwind.css' path.resolve('./content/') @@ -21,6 +21,14 @@ const MainLayout = ({ Component, pageProps }) => { if (consentGiven) { const consentState = JSON.parse(consentGiven) } + (function(h:any,o,t,j,a,r){ + h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; + h._hjSettings={hjid:5190939,hjsv:6}; + a=o.getElementsByTagName('head')[0]; + r=o.createElement('script');r.async=1; + r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; + a.appendChild(r); + })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); }, []) return (