diff --git a/README.md b/README.md index 3585733..47efe4d 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ app.mount("#app"); ### id: -Your Hotjar Site ID is a required parameter with a type of number. You can find this ID at insights.hotjar.com under tracking. +Your Hotjar Site ID is a required parameter, this can be of type string or number. You can find this ID [here](insights.hotjar.com) under tracking. ```js id: 12345678 diff --git a/src/index.ts b/src/index.ts index 0a9400d..2261fef 100644 --- a/src/index.ts +++ b/src/index.ts @@ -27,8 +27,8 @@ export default { } if (isHotjarOptionsValid(options) && isVueVersionValid(app)) { - const HotjarId = typeof options.id === 'string' ? parseInt(options.id) : options.id; - new Hotjar(HotjarId, options.snippetVersion, options.isProduction); + const hotjarId = typeof options.id === 'string' ? parseInt(options.id) : options.id; + new Hotjar(hotjarId, options.snippetVersion, options.isProduction); if (window.hj) { app.config.globalProperties.$hj = window.hj; app.config.globalProperties.$hjSettings = window._hjSettings;