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">
|
||||
<p>
|
||||
If you have 5 minutes please fill out our
|
||||
<a href="https://forms.gle/WYdGEYARPArd7uYx5" target="_blank">feedback form</a>.
|
||||
Thanks!
|
||||
<a @click="onFormClick" href="https://forms.gle/WYdGEYARPArd7uYx5" target="_blank"
|
||||
>feedback form</a
|
||||
>. Thanks!
|
||||
</p>
|
||||
<div>
|
||||
<ButtonComponent
|
||||
|
@ -41,8 +42,21 @@ export default {
|
|||
if (localStorage.getItem('feedback-modal-displayed') !== 'y') {
|
||||
this.showModal = true;
|
||||
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>
|
||||
|
||||
|
|
|
@ -132,16 +132,43 @@ export default {
|
|||
this.codes = gameVersions.find((c) => c.identifier === e).codes;
|
||||
this.stageLoaderCodes = gameVersions.find((c) => c.identifier === e).fastCode;
|
||||
this.inspectingCode = null;
|
||||
try {
|
||||
window._paq.push([
|
||||
'trackEvent',
|
||||
'GCT Generator',
|
||||
'Change Version',
|
||||
JSON.stringify({ version: e }),
|
||||
]);
|
||||
} catch {}
|
||||
},
|
||||
onFormatChanged(e) {
|
||||
this.selectedFormat = e;
|
||||
try {
|
||||
window._paq.push([
|
||||
'trackEvent',
|
||||
'GCT Generator',
|
||||
'Change Format',
|
||||
JSON.stringify({ format: e }),
|
||||
]);
|
||||
} catch {}
|
||||
},
|
||||
onStageLoaderChanged(e) {
|
||||
this.useStageLoader = e === true || e === 'true';
|
||||
if (!this.useStageLoader) this.selectedStageLoader = null;
|
||||
try {
|
||||
window._paq.push([
|
||||
'trackEvent',
|
||||
'GCT Generator',
|
||||
'Change StageLoader State',
|
||||
JSON.stringify({ enabled: e }),
|
||||
]);
|
||||
} catch {}
|
||||
},
|
||||
onCheatSelectionChanged(e) {
|
||||
this.selectedCheats = e;
|
||||
try {
|
||||
window._paq.push(['trackEvent', 'GCT Generator', 'Change Cheat Selection', '']);
|
||||
} catch {}
|
||||
},
|
||||
onStageLoaderCodeChanged(e) {
|
||||
this.selectedStageLoader = e;
|
||||
|
|
Loading…
Add table
Reference in a new issue