Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-hotjar

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-hotjar - npm Package Compare versions

Comparing version 5.0.0 to 5.1.0

5

index.d.ts

@@ -10,2 +10,7 @@ export module hotjar {

/**
* Check if Hotjar has been initialized
*/
export function initialized(): boolean;
/**
* Identify user

@@ -12,0 +17,0 @@ * @param userId Unique ID of a user

5

index.js

@@ -9,3 +9,3 @@ var hotjar = require('./src/react-hotjar');

window.hj.apply(undefined, params)
window.hj.apply(undefined, params);
}

@@ -18,2 +18,5 @@

},
initialized: function initialized() {
return typeof window.hj === 'function';
},
identify: function identify(userId, properties) {

@@ -20,0 +23,0 @@ hj('identify', userId, properties);

2

package.json
{
"name": "react-hotjar",
"version": "5.0.0",
"version": "5.1.0",
"description": "Small component to implement Hotjar into your react application",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -23,2 +23,7 @@ # react-hotjar

hotjar.stateChange('/my/page');
// Check if Hotjar has been initialized before calling its methods
if (hotjar.initialized()) {
hotjar.identify('USER_ID', { userProperty: 'value' });
}
```

@@ -25,0 +30,0 @@ - hjid: Stands for 'Hotjar ID' - Your site's ID. This is the ID which tells Hotjar which site settings it should load and where it should save the data collected.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc