text: module.exports = function(eventCategory) {
  
      var Dialog = require("../modules/Dialog").dialog;
  
      var identifier = __command.pluginBundle().identifier();
      var userDefaults = NSUserDefaults.standardUserDefaults();
      var useGoogleAnalytics = userDefaults.objectForKey(identifier + ".useGoogleAnalytics");
  
      if (useGoogleAnalytics == null) {
          var dialog = new Dialog(
              "Warning",
              "Automate Sketch use Google Analytics for tracking data. You can press \"Disagree\" to disable tracking.",
              300,
              ["Agree", "Disagree"]
          );
          var responseCode = dialog.run();
          // Agree
          if (responseCode == 1000) {
              userDefaults.setObject_forKey(true, identifier + ".useGoogleAnalytics");
          }
          // Disagree
          if (responseCode == 1001) {
              userDefaults.setObject_forKey(false, identifier + ".useGoogleAnalytics");
          }
          userDefaults.synchronize();
      }
  
      useGoogleAnalytics = userDefaults.objectForKey(identifier + ".useGoogleAnalytics");
      if (useGoogleAnalytics == true) {
  
          var trackingID = "UA-99098773-3";
  
          var uuidKey = "google.analytics.uuid";
          var uuid = userDefaults.objectForKey(uuidKey);
          if (!uuid) {
              uuid = NSUUID.UUID().UUIDString();
              userDefaults.setObject_forKey(uuid, uuidKey);
              userDefaults.synchronize();
          }
  
          var appName = encodeURI(__command.pluginBundle().name()),
              appId = identifier,
              appVersion = __command.pluginBundle().version();
  
          var url = "https://www.google-analytics.com/collect?v=1";
          // Tracking ID
          url += "&tid=" + trackingID;
          // Source
          url += "&ds=sketch" + MSApplicationMetadata.metadata().appVersion;
          // Client ID
          url += "&cid=" + uuid;
          // User GEO location
          url += "&geoid=" + NSLocale.currentLocale().countryCode();
          // User language
          url += "&ul=" + NSLocale.currentLocale().localeIdentifier().toLowerCase();
          // pageview, screenview, event, transaction, item, social, exception, timing
          url += "&t=event";
          // App Name
          url += "&an=" + appName;
          // App ID
          url += "&aid=" + appId;
          // App Version
          url += "&av=" + appVersion;
          // Event category
          url += "&ec=" + encodeURI(eventCategory);
          // Event action
          // url += "&ea=" + encodeURI(eventAction);
          url += "&ea=" + encodeURI(__command.identifier());
          // Event label
          // if (eventLabel) {
          //     url += "&el=" + encodeURI(eventLabel);
          // }
          // Event value
          // if (eventValue) {
          //     url += "&ev=" + encodeURI(eventValue);
          // }
  
          var session = NSURLSession.sharedSession();
          var task = session.dataTaskWithURL(NSURL.URLWithString(NSString.stringWithString(url)));
          task.resume();
  
      } else {
          return;
      }
  
  }
  