From 94fa5e6793d2c02eec5c6a82a7e1172bd43da722 Mon Sep 17 00:00:00 2001 From: Okabe Rintaro Date: Fri, 25 Mar 2022 15:36:41 +0200 Subject: [PATCH] fix incorrect analytics scope --- build-packages/magento-scripts/lib/commands/start.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-packages/magento-scripts/lib/commands/start.js b/build-packages/magento-scripts/lib/commands/start.js index 6bc290c6..2c66228b 100644 --- a/build-packages/magento-scripts/lib/commands/start.js +++ b/build-packages/magento-scripts/lib/commands/start.js @@ -12,6 +12,8 @@ const ConsoleBlock = require('../util/console-block'); const cmaGaTrackingId = 'UA-127741417-7'; +googleAnalytics.setGaTrackingId(cmaGaTrackingId); + /** * @param {import('yargs')} yargs */ @@ -143,8 +145,6 @@ module.exports = (yargs) => { } try { - googleAnalytics.setGaTrackingId(cmaGaTrackingId); - if (!process.isFirstStart) { await googleAnalytics.trackTiming('CMA start time', Date.now() / 1000 - timeStamp); googleAnalytics.printAboutAnalytics();