text: var onRun = function(context) {
  
      var ga = require("../modules/Google_Analytics");
      ga("Artboard");
  
      var pasteboard = require("../modules/Pasteboard");
      var util = require("util");
      var sketch = require("sketch");
      var Artboard = require("sketch/dom").Artboard;
      var SymbolMaster = require("sketch/dom").SymbolMaster;
      var Rectangle = require('sketch/dom').Rectangle;
      var document = sketch.getSelectedDocument();
      var page = document.selectedPage;
      var identifier = context.command.identifier();
  
      var layersFromPasteboard = pasteboard.layersFromPasteboard(context);
      if (!layersFromPasteboard) {
          sketch.UI.message("Pasteboard is empty.");
          return;
      }
  
      document.selectedLayers.clear();
  
      util.toArray(layersFromPasteboard).forEach(function(layer) {
          var layerInfluenceRect = layer.absoluteInfluenceRect();
          var layerRect = layer.rect();
          var originForNewArtboard = page.sketchObject.originForNewArtboardWithSize(layerInfluenceRect.size);
          layer.frame().setX(Math.round(layerRect.origin.x) - layerInfluenceRect.origin.x);
          layer.frame().setY(Math.round(layerRect.origin.y) - layerInfluenceRect.origin.y);
          var properties = {
              name: layer.name(),
              parent: page,
              frame: new Rectangle(
                  originForNewArtboard.x,
                  originForNewArtboard.y,
                  layerInfluenceRect.size.width,
                  layerInfluenceRect.size.height
              ),
              layers: [sketch.fromNative(layer)],
              selected: true
          };
          var artboard;
          if (identifier == "paste_as_artboards") {
              artboard = new Artboard(properties);
          } else {
              artboard = new SymbolMaster(properties);
          }
          artboard.sketchObject.ungroupSingleChildDescendentGroups();
      });
  
      context.document.contentDrawView().centerSelectionInVisibleArea();
  
  };