From c1851ae0a6ab1de9aae15048cd2eb34df0044d9d Mon Sep 17 00:00:00 2001 From: Matteias Collet Date: Wed, 1 Jul 2020 06:14:05 +0200 Subject: [PATCH] keep track of code combinations to add presets at some point --- docs/.vuepress/components/DownloadButton.vue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/.vuepress/components/DownloadButton.vue b/docs/.vuepress/components/DownloadButton.vue index 1a41ba9..479390c 100644 --- a/docs/.vuepress/components/DownloadButton.vue +++ b/docs/.vuepress/components/DownloadButton.vue @@ -37,6 +37,23 @@ export default { source: this.stageLoaderCode, }); + try { + const _pag = window.__paq; + _paq.push([ + 'trackEvent', + 'GCT Generator', + 'Code Download', + JSON.stringify({ + gameVersion: this.versionIdentifier, + format: this.format, + codes: c.map(code => ({ + title: code.title, + version: code.version, + })), + }), + ]); + } catch {} + console.log(`Preparing download for ${this.format}`); const fileName = gameVersions.find(v => v.identifier === this.versionIdentifier).version;