Skip to content

Commit

Permalink
feat: remove hotjar
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorusclarence committed Mar 17, 2022
1 parent f4da26b commit 0255faa
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"react-copy-to-clipboard": "^5.0.4",
"react-dom": "^17.0.2",
"react-hook-form": "^7.27.1",
"react-hotjar": "^4.0.0",
"react-icons": "^4.3.1",
"react-image-lightbox": "^5.1.4",
"react-intersection-observer": "^8.33.1",
Expand Down
3 changes: 0 additions & 3 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Router from 'next/router';
import { ThemeProvider } from 'next-themes';
import nProgress from 'nprogress';
import * as React from 'react';
import { hotjar } from 'react-hotjar';
import { SWRConfig } from 'swr';

import 'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css';
Expand All @@ -22,8 +21,6 @@ Router.events.on('routeChangeComplete', nProgress.done);

function MyApp({ Component, pageProps }: AppProps) {
React.useEffect(() => {
hotjar.initialize(2702988, 6);

// Don't increment views if not on main domain
if (window.location.host !== 'theodorusclarence.com' && blockDomainMeta) {
localStorage.setItem('incrementMetaFlag', 'false');
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5567,11 +5567,6 @@ react-hook-form@^7.27.1:
resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-7.27.1.tgz#fe5fbcb6bf58751f66d9569e998d671480cc57f6"
integrity sha512-N3a7A6zIQ8DJeThisVZGtOUabTbJw+7DHJidmB9w8m3chckv2ZWKb5MHps9d2pPJqmCDoWe53Bos56bYmJms5w==

react-hotjar@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/react-hotjar/-/react-hotjar-4.0.0.tgz#b98b6baf7da19cd63565a81dee40d0d62702bacd"
integrity sha512-jRk2aWZkK2MMWRj+DBhpwTG5jfhae5DMLoVGbRGqPjZDmKYTtV/tD1/0kmFIlw4pInHKaukQriJ14CQg8MGvww==

react-icons@^4.3.1:
version "4.3.1"
resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-4.3.1.tgz#2fa92aebbbc71f43d2db2ed1aed07361124e91ca"
Expand Down

0 comments on commit 0255faa

Please sign in to comment.