Merge pull request #570 from arifszn/fix-hotjar

Update hotjar version to `6.3.1`
This commit is contained in:
Ariful Alam 2024-04-13 10:58:35 +06:00 committed by GitHub
commit d13964ab4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

8
package-lock.json generated
View File

@ -31,7 +31,7 @@
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"react-helmet-async": "^2.0.4",
"react-hotjar": "^6.2.0",
"react-hotjar": "^6.3.1",
"react-icons": "^5.0.1",
"tailwindcss": "^3.4.1",
"typescript": "^5.2.2",
@ -7053,9 +7053,9 @@
}
},
"node_modules/react-hotjar": {
"version": "6.2.0",
"resolved": "https://registry.npmjs.org/react-hotjar/-/react-hotjar-6.2.0.tgz",
"integrity": "sha512-uMX2IS5IKt1VkhHPwl2QEAEUmmm6VyxfzlwHLUKTQGZoE/0HWD71iGA7T31PO3KeN9+XUsTJS2P3zHva6TyhrQ==",
"version": "6.3.1",
"resolved": "https://registry.npmjs.org/react-hotjar/-/react-hotjar-6.3.1.tgz",
"integrity": "sha512-EwMqL+ROSlKzatMhT/aqRq7XWWfzlnHynSBSTJh5M2O78mBiPohiSl4Ysls3HOQkkD9y6L22BW0c9bxK2JguwQ==",
"dev": true
},
"node_modules/react-icons": {

View File

@ -44,7 +44,7 @@
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"react-helmet-async": "^2.0.4",
"react-hotjar": "^6.2.0",
"react-hotjar": "^6.3.1",
"react-icons": "^5.0.1",
"tailwindcss": "^3.4.1",
"typescript": "^5.2.2",

View File

@ -209,7 +209,7 @@ export const skeleton = ({
export const setupHotjar = (hotjarConfig: SanitizedHotjar): void => {
if (hotjarConfig?.id) {
const snippetVersion = hotjarConfig?.snippetVersion || 6;
hotjar.initialize(parseInt(hotjarConfig.id), snippetVersion);
hotjar.initialize({ id: parseInt(hotjarConfig.id), sv: snippetVersion });
}
};