add event triggers
This commit is contained in:
parent
abe1b78ccb
commit
e81f6f3d2c
2 changed files with 43 additions and 2 deletions
|
@ -6,8 +6,9 @@
|
||||||
<div v-if="showModal" class="modal-body">
|
<div v-if="showModal" class="modal-body">
|
||||||
<p>
|
<p>
|
||||||
If you have 5 minutes please fill out our
|
If you have 5 minutes please fill out our
|
||||||
<a href="https://forms.gle/WYdGEYARPArd7uYx5" target="_blank">feedback form</a>.
|
<a @click="onFormClick" href="https://forms.gle/WYdGEYARPArd7uYx5" target="_blank"
|
||||||
Thanks!
|
>feedback form</a
|
||||||
|
>. Thanks!
|
||||||
</p>
|
</p>
|
||||||
<div>
|
<div>
|
||||||
<ButtonComponent
|
<ButtonComponent
|
||||||
|
@ -41,8 +42,21 @@ export default {
|
||||||
if (localStorage.getItem('feedback-modal-displayed') !== 'y') {
|
if (localStorage.getItem('feedback-modal-displayed') !== 'y') {
|
||||||
this.showModal = true;
|
this.showModal = true;
|
||||||
localStorage.setItem('feedback-modal-displayed', 'y');
|
localStorage.setItem('feedback-modal-displayed', 'y');
|
||||||
|
try {
|
||||||
|
window._paq.push(['trackEvent', 'GCT Generator', 'Show Feedback Form Modal', '']);
|
||||||
|
} catch {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
methods: {
|
||||||
|
onFormClick() {
|
||||||
|
try {
|
||||||
|
window._paq.push(['trackEvent', 'GCT Generator', 'Change Cheat Selection', '']);
|
||||||
|
} catch {
|
||||||
|
} finally {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -132,16 +132,43 @@ export default {
|
||||||
this.codes = gameVersions.find((c) => c.identifier === e).codes;
|
this.codes = gameVersions.find((c) => c.identifier === e).codes;
|
||||||
this.stageLoaderCodes = gameVersions.find((c) => c.identifier === e).fastCode;
|
this.stageLoaderCodes = gameVersions.find((c) => c.identifier === e).fastCode;
|
||||||
this.inspectingCode = null;
|
this.inspectingCode = null;
|
||||||
|
try {
|
||||||
|
window._paq.push([
|
||||||
|
'trackEvent',
|
||||||
|
'GCT Generator',
|
||||||
|
'Change Version',
|
||||||
|
JSON.stringify({ version: e }),
|
||||||
|
]);
|
||||||
|
} catch {}
|
||||||
},
|
},
|
||||||
onFormatChanged(e) {
|
onFormatChanged(e) {
|
||||||
this.selectedFormat = e;
|
this.selectedFormat = e;
|
||||||
|
try {
|
||||||
|
window._paq.push([
|
||||||
|
'trackEvent',
|
||||||
|
'GCT Generator',
|
||||||
|
'Change Format',
|
||||||
|
JSON.stringify({ format: e }),
|
||||||
|
]);
|
||||||
|
} catch {}
|
||||||
},
|
},
|
||||||
onStageLoaderChanged(e) {
|
onStageLoaderChanged(e) {
|
||||||
this.useStageLoader = e === true || e === 'true';
|
this.useStageLoader = e === true || e === 'true';
|
||||||
if (!this.useStageLoader) this.selectedStageLoader = null;
|
if (!this.useStageLoader) this.selectedStageLoader = null;
|
||||||
|
try {
|
||||||
|
window._paq.push([
|
||||||
|
'trackEvent',
|
||||||
|
'GCT Generator',
|
||||||
|
'Change StageLoader State',
|
||||||
|
JSON.stringify({ enabled: e }),
|
||||||
|
]);
|
||||||
|
} catch {}
|
||||||
},
|
},
|
||||||
onCheatSelectionChanged(e) {
|
onCheatSelectionChanged(e) {
|
||||||
this.selectedCheats = e;
|
this.selectedCheats = e;
|
||||||
|
try {
|
||||||
|
window._paq.push(['trackEvent', 'GCT Generator', 'Change Cheat Selection', '']);
|
||||||
|
} catch {}
|
||||||
},
|
},
|
||||||
onStageLoaderCodeChanged(e) {
|
onStageLoaderCodeChanged(e) {
|
||||||
this.selectedStageLoader = e;
|
this.selectedStageLoader = e;
|
||||||
|
|
Loading…
Add table
Reference in a new issue