feat(all): add hotjar

This commit is contained in:
Anton Jacobsson committed 2021-09-22 22:10:14 +02:00
1 parent a71c4ca330
commit 0424045f55
6 files changed
+42

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import { hotjar } from 'react-hotjar';
import config from "./../config";
export function setupHotjar() {
if (config.hotjar?.id) {
let snippetVersion = config.hotjar?.snippetVersion ? config.hotjar?.snippetVersion : 6;
hotjar.initialize(config.hotjar.id, snippetVersion);
}
}