Add Google Analytics

This commit is contained in:
2021-09-05 21:00:02 +01:00
parent fccea836d3
commit bd355599c7
15 changed files with 117 additions and 27 deletions

View File

@@ -182,6 +182,11 @@ export default withRouter(class Progress extends React.Component {
this.setState(newState, () => {
if (!setDone) this.answerInput.focus()
});
this.props.logEvent("select_content", {
content_type: "progress",
item_id: this.props.match.params.progressId,
});
}
componentWillUnmount() {