Skip to content

Commit

Permalink
fix incorrect analytics scope
Browse files Browse the repository at this point in the history
  • Loading branch information
ejnshtein committed Mar 25, 2022
1 parent 076bb6f commit 94fa5e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-packages/magento-scripts/lib/commands/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const ConsoleBlock = require('../util/console-block');

const cmaGaTrackingId = 'UA-127741417-7';

googleAnalytics.setGaTrackingId(cmaGaTrackingId);

/**
* @param {import('yargs')} yargs
*/
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 94fa5e6

Please sign in to comment.