Skip to content

Commit

Permalink
Merge pull request #76 from scandipwa/resolving-issues-with-error-rep…
Browse files Browse the repository at this point in the history
…orting-analytics
  • Loading branch information
ejnshtein authored Mar 25, 2022
2 parents ac27b87 + fc2ff8e commit cf6c775
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() - timeStamp);
googleAnalytics.printAboutAnalytics();
Expand Down

0 comments on commit cf6c775

Please sign in to comment.