From 3a95588d5d435816bd9812d3ee2d9be974c2cf89 Mon Sep 17 00:00:00 2001 From: Laurent Bossavit Date: Fri, 13 Oct 2017 11:47:30 +0200 Subject: [PATCH] :chart_with_upwards_trend: Ajoute le suivi de 'Tout effacer' --- source/components/Simulateur.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/components/Simulateur.js b/source/components/Simulateur.js index fc86a7a0c..2f44462fd 100644 --- a/source/components/Simulateur.js +++ b/source/components/Simulateur.js @@ -14,6 +14,7 @@ import './Simulateur.css' import {capitalise0} from '../utils' import Conversation from './conversation/Conversation' +import ReactPiwik from 'react-piwik'; let situationSelector = formValueSelector('conversation') @@ -62,6 +63,7 @@ export default class extends React.Component { sim = path => R.path(R.unless(R.is(Array), R.of)(path))(this.rule.simulateur || {}), reinitalise = () => { + ReactPiwik.push(['trackEvent', 'restart', '']); this.props.resetForm(this.name) this.props.startConversation(this.name) },