
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
vue-hotjar
Advanced tools
This is a simple Vue plugin that will allow you to easily add Hotjar to any Vue project. One of the key benefits of this plugin is that it allows you to activate or deactivate tracking based on the environment. In addition to this vue-hotjar also allows you to specify different Hotjar Site ID's for different environments.
npm install vue-hotjar
Start using it in your Vue application.
import Vue from 'vue'
import Hotjar from 'vue-hotjar'
Vue.use(Hotjar, {
id: 'XXXXXXX' // Hotjar Site ID
})
Your Hotjar Site ID is a required parameter. You can find this ID at insights.hotjar.com under tracking.
id: 'XXXXXXX'
If you would like to disable or enable tracking, pass in either true
or false
. It is advised to bind your Node ENV variable. This is an optional parameter and will default to true if not specified.
isProduction: true
This optional parameter does not need to be specified as it will default to the latest Hotjar Snippet version. Currently, it will default to version 6
.
snippetVersion: 6
import Vue from 'vue'
import Hotjar from 'vue-hotjar'
Vue.use(Hotjar, {
id: 'XXXXXXX',
isProduction: true,
snippetVersion: 6
})
In order to verify your installation in a production environment or whenever the isProduction
parameter is set to true
, you can simply navigate to the below URL. If the installation is successful you should see a notification appear on your website indicating that Hotjar is receiving data and your implementation is successful.
https://<YOUR-BASE-URL>/?hjVerifyInstall=<YOUR-SITE-ID>
Additionally you can verify the install by logging in to insights.hotjar.com and view the tracking status.
Vue ^3.0.0
Vue ^4.0.0
FAQs
Vue Hotjar plugin
We found that vue-hotjar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.