We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f8ebfd commit 09cdc10Copy full SHA for 09cdc10
1 file changed
src/components/Rating/index.js
@@ -22,15 +22,17 @@ class Rating extends React.Component {
22
23
rateDoc = user => (e) => {
24
const rating = parseInt( e.target.dataset.rating );
25
+ const userID = user ? user.userid : false;
26
+
27
28
this.setState({
29
rating,
30
hasRating: true,
31
})
32
33
analytics.track("Doc Rated", {
- userID: false, // SendGrid userID or false
34
docID: window.location.pathname,
35
+ userID, // SendGrid userID or false
36
rating
37
});
38
}
0 commit comments