react-hotjar
Advanced tools
Comparing version 2.2.1 to 3.0.0
@@ -7,4 +7,7 @@ var hotjar = require('./src/react-hotjar'); | ||
hotjar(id, sv); | ||
}, | ||
identify: function identify(userId, properties) { | ||
hotjar('identify', userId, properties); | ||
} | ||
} | ||
}; |
{ | ||
"name": "react-hotjar", | ||
"version": "2.2.1", | ||
"version": "3.0.0", | ||
"description": "Small component to implement Hotjar into your react application", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,2 +14,4 @@ # react-hotjar | ||
hotjar.initialize(hjid, hjsv); | ||
<!-- Optional identify call --> | ||
hotjar.identify('USER_ID', { userProperty: 'value' }); | ||
``` | ||
@@ -16,0 +18,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. |
3906
38
22