Giter VIP home page Giter VIP logo

vue-hotjar's People

Contributors

henk-badenhorst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vue-hotjar's Issues

CSS not loaded in recording

I have implemented hotjar with your module but I noticed that during the recording, the css is not loaded and I find myself with a recording without css

Multiple different Hotjar scripts detected

Hi!

Great plugin for hotjar in vue. But I have a problem, hotjar detect 2 scripts in my code. I just add one hotjar script from this plugin only. How can I solve this? Thank you

Vue 3 Compatibility

Hi,

I was wondering if you were thinking of updating the package to support Vue3?

I get the error:

main.js

app.use(Hotjar, {
    id: "XXXXXXX",
    isProduction: true
  });

error

vue-hotjar.js:4 Uncaught TypeError: Cannot set property '$hj' of undefined
    at Object.install (vue-hotjar.js:4)
    at Object.use (vue.js:4091)
    at main.js:32

Thanks,

Tracking changes manually

First of all, thanks for the library @henk-badenhorst !

Now, for the issue, I'm running into a limitation with this library, as with the current implementation, we don't have access to the hj function to track changes manually.

I already did a workaround using a local implementation of your library, I don't know if you're interested in a PR to add it here.

If yes, I'd be glad to open a PR with the proposed change.

Thanks!

Tracking user data

How would I track user data using this lib, bellow is the example from the docs, not sure if it's supported via this lib?

<!-- Install this snippet AFTER the Hotjar tracking code. -->
<script>
var userId = your_user_id || null; // Replace your_user_id with your own if available.
window.hj('identify', userId, {
    // Add your own custom attributes here. Some EXAMPLES:
    // 'Signed up': '2019โ€”06-20Z', // Signup date in ISO-8601 format.
    // 'Last purchase category': 'Electronics', // Send strings with quotes around them.
    // 'Total purchases': 15, // Send numbers without quotes.
    // 'Last purchase date': '2019-06-20Z', // Send dates in ISO-8601 format.
    // 'Last refund date': null, // Send null when no value exists for a user.
});
</script>

Hotjar is not found

I have strange error - Hotjar is being detected on localhost when isProduction: true, but when I change it to isProduction: process.env.NODE_ENV !== 'development' it's no detected on the production site even though code appears in the source:
image

Can I ask for help in that regard?

Site in question: https://doctempleapp.com/?hjVerifyInstall=2070936

Errors with TypeScript

Hello, I'm getting some error when trying to use the package with TypeScript, any ideas on how to solve it? Thanks!

Argument of type 'typeof import("/Users/xxxxxx/project_name/node_modules/vue-hotjar/dist/types/index")' is not assignable to parameter of type 'Plugin_2'.
Property 'install' is missing in type 'typeof import("/Users/xxxxxx/project_name/node_modules/vue-hotjar/dist/types/index")' but required in type '{ install: PluginInstallFunction; }'.

    4 | export function loadHotjar(app: App) {
  > 5 |   app.use(Hotjar, {
      |           ^^^^^^
    6 |     id: process.env.VUE_APP_HOTJAR, // Hotjar Site ID
    7 |     isProduction: true
    8 |   });

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.