Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* @module googleAnalytics;
* @requires module:@truffle/config
* @requires module:universal-analytics
* @requires module:uuid
* @requires module:inquirer
* @requires module:../version
*/
const Config = require("@truffle/config");
const userConfig = Config.getUserConfig();
const ua = require("universal-analytics");
const uuid = require("uuid/v4");
const inquirer = require("inquirer");
const version = require("../../version").info();
//set truffleAnalyticsId depending on whether version is bundled
const truffleAnalyticsId = version.bundle ? "UA-83874933-6" : "UA-83874933-7";
const analyticsInquiry = [
{
type: "list",
name: "analyticsInquiry",
message:
"Would you like to enable analytics for your Truffle projects? Doing so will allow us to make sure Truffle is working as expected and help us address any bugs more efficiently.",