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;