keep track of code combinations to add presets at some point

This commit is contained in:
Matteias Collet 2020-07-01 06:14:05 +02:00
parent 12fcdaa4f5
commit c1851ae0a6

View file

@ -37,6 +37,23 @@ export default {
source: this.stageLoaderCode, 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}`); console.log(`Preparing download for ${this.format}`);
const fileName = gameVersions.find(v => v.identifier === this.versionIdentifier).version; const fileName = gameVersions.find(v => v.identifier === this.versionIdentifier).version;