Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@doodle/tracking / dist / cjs / src / constants.js
Size: Mime:
'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

/**
 * Common taxonomy for tracked events
 *
 * In a consuming project, you may want to have a similar structure
 */

/**
 * @typedef {string} TrackingEventType
 */

/**
 * @public
 * @enum {TrackingEventType}
 */
const EVENT_TYPE = {
  userInteraction: 'user Interaction',
  conversion: 'conversion'
};
/**
 * @typedef {string} TrackingServices
 */

/**
 * @public
 * @enum {TrackingServices}
 */

const SERVICES = {
  AMPLITUDE: 'amplitude',
  DOODLE_DATA_LAYER: 'doodleDataLayer',
  GA: 'ga'
};
/**
 * @typedef {string} TrackingCmds
 */

/**
 * @private
 * @enum {TrackingCmds}
 */

const TRACKING_CMDS = {
  TRACK: 'track',
  PAGE: 'page',
  IDENTIFY: 'identify'
};

exports.EVENT_TYPE = EVENT_TYPE;
exports.SERVICES = SERVICES;
exports.TRACKING_CMDS = TRACKING_CMDS;
//# sourceMappingURL=constants.js.map