Send correct survey title to Matomo

This commit is contained in:
Ramon Wenger 2023-08-14 16:15:10 +02:00
parent c3db7dd25f
commit 48181f5b67
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,6 @@ export default {
mounted() {
if (this.surveyData) {
this.loadSurveyFromServer(this.surveyData);
matomoTrackEvent('Übung', 'Übung angezeigt', this.title);
}
},
@ -264,6 +263,7 @@ export default {
this.surveyData = data.survey;
this.loadSurveyFromServer(data.survey);
const module = data.survey.module;
matomoTrackEvent('Übung', 'Übung angezeigt', data.survey.title);
this.$apollo.addSmartQuery('module', {
query: MODULE_QUERY,