📈 ajoute un tracking pour le feedback positif et negatif

pull/374/head
Johan Girod 2018-10-05 15:28:57 +02:00
parent 776cbaf7d5
commit 9a2b634ab5
1 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,12 @@ class PageFeedback extends Component<Props, State> {
}
handleFeedback = ({ useful }) => {
this.props.tracker.push([
'trackEvent',
'Feedback',
useful ? 'positive rating' : 'negative rating',
this.props.location.pathname
])
const feedback = [
this.props.customEventName || 'rate page usefulness',
this.props.location.pathname,