From 50a7b7bd1b25361072ac1730bc22a1ce23a2537b Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Fri, 4 May 2018 12:14:15 +0200 Subject: [PATCH] :chart_with_upwards_trend: Ajout du tracking pour le click sur les boutons feedbacks --- source/components/Sondage.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/components/Sondage.js b/source/components/Sondage.js index fd94f63ed..1f906c0b5 100644 --- a/source/components/Sondage.js +++ b/source/components/Sondage.js @@ -1,6 +1,7 @@ import React, { Component } from 'react' import './Sondage.css' import { connect } from 'react-redux' +import ReactPiwik from './Tracker' import ReactCSSTransitionGroup from 'react-addons-css-transition-group' import Smiley from './SatisfactionSmiley' import TypeFormEmbed from './TypeFormEmbed' @@ -51,6 +52,7 @@ export default class Sondage extends Component { document.cookie = 'feedback_asked=true;' } onSmileyClick = satisfaction => { + ReactPiwik.push(['trackEvent', 'feedback', 'smiley', satisfaction]) this.setState({ showForm: true, satisfaction, visible: false }) this.setCookie() }