Skip to content

Commit

Permalink
fix hotjar NPS external file + upgrade hotjar (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
annarhughes committed Nov 6, 2023
1 parent 06e92ae commit f672374
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 207 deletions.
3 changes: 1 addition & 2 deletions src/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { axiosGet } from '../shared/axios';
import isBrowser from '../shared/browserCheck';
import useWindowDimensions from '../shared/dimensions';
import { useStore } from '../store/store';
import '../styles/hotjarNPS.css';
import theme from '../styles/theme';

const Footer = dynamic(() => import('../components/Footer'), { ssr: false });
Expand Down Expand Up @@ -130,7 +129,7 @@ function App({ Component, pageProps }) {
});

if (process.env.NEXT_PUBLIC_ENV === 'live') {
hotjar.initialize(Number(process.env.NEXT_PUBLIC_HOTJAR_ID), 5);
hotjar.initialize(Number(process.env.NEXT_PUBLIC_HOTJAR_ID), 6);
}
}, []);

Expand Down
1 change: 1 addition & 0 deletions src/pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default class MyDocument extends Document {
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Nunito&display=swap"
/>
<link rel="stylesheet" href="https://bloom.chayn.co/hotjarNPS.css" />
</Head>
<body>
<Main />
Expand Down
205 changes: 0 additions & 205 deletions src/styles/hotjarNPS.css

This file was deleted.

0 comments on commit f672374

Please sign in to comment.