Skip to content

Commit

Permalink
Merge pull request #570 from arifszn/fix-hotjar
Browse files Browse the repository at this point in the history
Update hotjar version to `6.3.1`
  • Loading branch information
arifszn authored Apr 13, 2024
2 parents 8b9475b + 0fe7ebe commit d13964a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
};

Expand Down

0 comments on commit d13964a

Please sign in to comment.