Send correct survey title to Matomo
This commit is contained in:
parent
c3db7dd25f
commit
48181f5b67
|
|
@ -118,7 +118,6 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
if (this.surveyData) {
|
if (this.surveyData) {
|
||||||
this.loadSurveyFromServer(this.surveyData);
|
this.loadSurveyFromServer(this.surveyData);
|
||||||
matomoTrackEvent('Übung', 'Übung angezeigt', this.title);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -264,6 +263,7 @@ export default {
|
||||||
this.surveyData = data.survey;
|
this.surveyData = data.survey;
|
||||||
this.loadSurveyFromServer(data.survey);
|
this.loadSurveyFromServer(data.survey);
|
||||||
const module = data.survey.module;
|
const module = data.survey.module;
|
||||||
|
matomoTrackEvent('Übung', 'Übung angezeigt', data.survey.title);
|
||||||
|
|
||||||
this.$apollo.addSmartQuery('module', {
|
this.$apollo.addSmartQuery('module', {
|
||||||
query: MODULE_QUERY,
|
query: MODULE_QUERY,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue