mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 12:27:17 +00:00
feat(all): add hotjar
This commit is contained in:
10
src/helpers/setupHotjar.js
Normal file
10
src/helpers/setupHotjar.js
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user