Repository URL to install this package:
|
Version:
1.0.1 ▾
|
'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