Fix survey title in Matomo events
Resolves MS-770 #complete
This commit is contained in:
parent
d37197bd3d
commit
ccdf916e83
|
|
@ -1,8 +1,6 @@
|
|||
<template>
|
||||
<div class="survey-page">
|
||||
<h1 class="survey-page__title">
|
||||
{{ title }}
|
||||
</h1>
|
||||
<h1 class="survey-page__title">{{ title }}</h1>
|
||||
<div id="survey" />
|
||||
|
||||
<solution
|
||||
|
|
@ -201,10 +199,10 @@ export default {
|
|||
},
|
||||
});
|
||||
if (exit) {
|
||||
matomoTrackEvent('Übung', 'Übung erfolgreich abgeschlossen', this.title);
|
||||
matomoTrackEvent('Übung', 'Übung erfolgreich abgeschlossen', this.surveyData.title);
|
||||
this.$router.go(-1);
|
||||
} else {
|
||||
matomoTrackEvent('Übung', 'Übungsschritt abgeschlossen', this.title);
|
||||
matomoTrackEvent('Übung', 'Übungsschritt abgeschlossen', this.surveyData.title);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -263,7 +261,7 @@ export default {
|
|||
this.surveyData = data.survey;
|
||||
this.loadSurveyFromServer(data.survey);
|
||||
const module = data.survey.module;
|
||||
matomoTrackEvent('Übung', 'Übung angezeigt', data.survey.title);
|
||||
matomoTrackEvent('Übung', 'Übung angezeigt', this.surveyData.title);
|
||||
|
||||
this.$apollo.addSmartQuery('module', {
|
||||
query: MODULE_QUERY,
|
||||
|
|
|
|||
Loading…
Reference in New Issue