@adtrackify/at-tracking-event-types 4.46.0 → 4.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import { MEASURE } from '../measures.js';
2
2
  import { MEASURE_CATEGORY, MEASURE_SUBCATEGORY } from './measure-categories.js';
3
3
  import { MEASURE_ICON } from './measure-icon.js';
4
4
  import { MeasureValueType } from './measure-value-type.js';
5
- import { ORDERS_ATTRIBUTION_APPLICABLE_CONTEXTS, STANDARD_APPLICABLE_CONTEXTS, } from './measure-applicable-contexts.js';
5
+ import { CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS, LTV_COHORT_APPLICABLE_CONTEXTS, ORDERS_ATTRIBUTION_APPLICABLE_CONTEXTS, STANDARD_APPLICABLE_CONTEXTS, } from './measure-applicable-contexts.js';
6
6
  export const ORDERS_MEASURES_MAP = {
7
7
  [MEASURE.ORDERS_COUNT]: {
8
8
  priority: 1,
@@ -1521,7 +1521,7 @@ export const ORDERS_MEASURES_MAP = {
1521
1521
  valueType: MeasureValueType.NUMBER,
1522
1522
  decimalPlaces: 0,
1523
1523
  useCompactNotation: false,
1524
- applicableContexts: ORDERS_ATTRIBUTION_APPLICABLE_CONTEXTS,
1524
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
1525
1525
  shortTitle: 'Cancellations',
1526
1526
  tooltip: 'The number of orders that were cancelled before fulfillment. High counts may indicate checkout friction or inventory issues.',
1527
1527
  relatedMeasures: [MEASURE.ORDERS_CANCELLED_AMOUNT, MEASURE.ORDERS_COUNT, MEASURE.ORDERS_REFUND_COUNT],
@@ -1541,7 +1541,7 @@ export const ORDERS_MEASURES_MAP = {
1541
1541
  valueType: MeasureValueType.CURRENCY,
1542
1542
  decimalPlaces: 2,
1543
1543
  useCompactNotation: true,
1544
- applicableContexts: ORDERS_ATTRIBUTION_APPLICABLE_CONTEXTS,
1544
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
1545
1545
  shortTitle: 'Cancelled $',
1546
1546
  tooltip: 'The total dollar value of cancelled orders. Represents potential revenue that was lost before fulfillment.',
1547
1547
  relatedMeasures: [MEASURE.ORDERS_CANCELLED_COUNT, MEASURE.ORDERS_REFUNDS, MEASURE.ORDERS_TOTAL_REVENUE],
@@ -1561,7 +1561,7 @@ export const ORDERS_MEASURES_MAP = {
1561
1561
  valueType: MeasureValueType.NUMBER,
1562
1562
  decimalPlaces: 0,
1563
1563
  useCompactNotation: false,
1564
- applicableContexts: ORDERS_ATTRIBUTION_APPLICABLE_CONTEXTS,
1564
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
1565
1565
  shortTitle: 'NC Cancellations',
1566
1566
  tooltip: 'The number of new customer orders that were cancelled before fulfillment.',
1567
1567
  relatedMeasures: [MEASURE.ORDERS_NEW_CUSTOMER_CANCELLED_AMOUNT, MEASURE.ORDERS_CANCELLED_COUNT, MEASURE.ORDERS_NEW_CUSTOMER_COUNT],
@@ -1581,7 +1581,7 @@ export const ORDERS_MEASURES_MAP = {
1581
1581
  valueType: MeasureValueType.CURRENCY,
1582
1582
  decimalPlaces: 2,
1583
1583
  useCompactNotation: true,
1584
- applicableContexts: ORDERS_ATTRIBUTION_APPLICABLE_CONTEXTS,
1584
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
1585
1585
  shortTitle: 'NC Cancelled $',
1586
1586
  tooltip: 'The total dollar value of cancelled new customer orders.',
1587
1587
  relatedMeasures: [MEASURE.ORDERS_NEW_CUSTOMER_CANCELLED_COUNT, MEASURE.ORDERS_CANCELLED_AMOUNT, MEASURE.ORDERS_NEW_CUSTOMER_TOTAL_REVENUE],
@@ -1601,7 +1601,7 @@ export const ORDERS_MEASURES_MAP = {
1601
1601
  valueType: MeasureValueType.NUMBER,
1602
1602
  decimalPlaces: 0,
1603
1603
  useCompactNotation: false,
1604
- applicableContexts: ORDERS_ATTRIBUTION_APPLICABLE_CONTEXTS,
1604
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
1605
1605
  shortTitle: 'RC Cancellations',
1606
1606
  tooltip: 'The number of returning customer orders that were cancelled before fulfillment.',
1607
1607
  relatedMeasures: [MEASURE.ORDERS_RETURNING_CUSTOMER_CANCELLED_AMOUNT, MEASURE.ORDERS_CANCELLED_COUNT, MEASURE.ORDERS_RETURNING_CUSTOMER_COUNT],
@@ -1621,7 +1621,7 @@ export const ORDERS_MEASURES_MAP = {
1621
1621
  valueType: MeasureValueType.CURRENCY,
1622
1622
  decimalPlaces: 2,
1623
1623
  useCompactNotation: true,
1624
- applicableContexts: ORDERS_ATTRIBUTION_APPLICABLE_CONTEXTS,
1624
+ applicableContexts: CUSTOM_DASHBOARD_APPLICABLE_CONTEXTS,
1625
1625
  shortTitle: 'RC Cancelled $',
1626
1626
  tooltip: 'The total dollar value of cancelled returning customer orders.',
1627
1627
  relatedMeasures: [MEASURE.ORDERS_RETURNING_CUSTOMER_CANCELLED_COUNT, MEASURE.ORDERS_CANCELLED_AMOUNT, MEASURE.ORDERS_RETURNING_CUSTOMER_TOTAL_REVENUE],
@@ -2313,7 +2313,7 @@ export const ORDERS_MEASURES_MAP = {
2313
2313
  valueType: MeasureValueType.CURRENCY,
2314
2314
  decimalPlaces: 2,
2315
2315
  useCompactNotation: true,
2316
- applicableContexts: ORDERS_ATTRIBUTION_APPLICABLE_CONTEXTS,
2316
+ applicableContexts: LTV_COHORT_APPLICABLE_CONTEXTS,
2317
2317
  shortTitle: 'LTV',
2318
2318
  tooltip: 'The average total revenue generated per customer over their entire purchase history. Higher LTV justifies greater acquisition spend.',
2319
2319
  relatedMeasures: [MEASURE.ORDERS_LTV_90, MEASURE.ORDERS_LTV_180, MEASURE.ORDERS_LTV_365, MEASURE.ORDERS_AVG_ORDERS_PER_CUSTOMER],
@@ -2333,7 +2333,7 @@ export const ORDERS_MEASURES_MAP = {
2333
2333
  valueType: MeasureValueType.CURRENCY,
2334
2334
  decimalPlaces: 2,
2335
2335
  useCompactNotation: true,
2336
- applicableContexts: ORDERS_ATTRIBUTION_APPLICABLE_CONTEXTS,
2336
+ applicableContexts: LTV_COHORT_APPLICABLE_CONTEXTS,
2337
2337
  tooltip: 'Average revenue per customer within 90 days of their first purchase. Useful for evaluating short-term payback on acquisition.',
2338
2338
  relatedMeasures: [MEASURE.ORDERS_LTV, MEASURE.ORDERS_LTV_180, MEASURE.ORDERS_LTV_365],
2339
2339
  },
@@ -2352,7 +2352,7 @@ export const ORDERS_MEASURES_MAP = {
2352
2352
  valueType: MeasureValueType.CURRENCY,
2353
2353
  decimalPlaces: 2,
2354
2354
  useCompactNotation: true,
2355
- applicableContexts: ORDERS_ATTRIBUTION_APPLICABLE_CONTEXTS,
2355
+ applicableContexts: LTV_COHORT_APPLICABLE_CONTEXTS,
2356
2356
  tooltip: 'Average revenue per customer within 180 days of their first purchase. Captures two purchase cycles for most repeat-buy categories.',
2357
2357
  relatedMeasures: [MEASURE.ORDERS_LTV, MEASURE.ORDERS_LTV_90, MEASURE.ORDERS_LTV_365],
2358
2358
  },
@@ -2371,7 +2371,7 @@ export const ORDERS_MEASURES_MAP = {
2371
2371
  valueType: MeasureValueType.CURRENCY,
2372
2372
  decimalPlaces: 2,
2373
2373
  useCompactNotation: true,
2374
- applicableContexts: ORDERS_ATTRIBUTION_APPLICABLE_CONTEXTS,
2374
+ applicableContexts: LTV_COHORT_APPLICABLE_CONTEXTS,
2375
2375
  tooltip: 'Average revenue per customer in the first full year after acquisition. A standard benchmark for paid acquisition payback periods.',
2376
2376
  relatedMeasures: [MEASURE.ORDERS_LTV, MEASURE.ORDERS_LTV_90, MEASURE.ORDERS_LTV_180],
2377
2377
  },
@@ -2390,7 +2390,7 @@ export const ORDERS_MEASURES_MAP = {
2390
2390
  valueType: MeasureValueType.CURRENCY,
2391
2391
  decimalPlaces: 2,
2392
2392
  useCompactNotation: true,
2393
- applicableContexts: ORDERS_ATTRIBUTION_APPLICABLE_CONTEXTS,
2393
+ applicableContexts: LTV_COHORT_APPLICABLE_CONTEXTS,
2394
2394
  shortTitle: 'Cohort Gross Rev',
2395
2395
  tooltip: 'Cumulative gross revenue generated by a customer cohort over time. Used for LTV cohort analysis across acquisition periods.',
2396
2396
  relatedMeasures: [MEASURE.ORDERS_COHORT_NET_REVENUE, MEASURE.ORDERS_COHORT_AOV, MEASURE.ORDERS_COHORT_CUSTOMERS],
@@ -2410,7 +2410,7 @@ export const ORDERS_MEASURES_MAP = {
2410
2410
  valueType: MeasureValueType.CURRENCY,
2411
2411
  decimalPlaces: 2,
2412
2412
  useCompactNotation: true,
2413
- applicableContexts: ORDERS_ATTRIBUTION_APPLICABLE_CONTEXTS,
2413
+ applicableContexts: LTV_COHORT_APPLICABLE_CONTEXTS,
2414
2414
  shortTitle: 'Cohort Net Rev',
2415
2415
  tooltip: 'Cumulative net revenue (after discounts and refunds) from a customer cohort over time.',
2416
2416
  relatedMeasures: [MEASURE.ORDERS_COHORT_GROSS_REVENUE, MEASURE.ORDERS_COHORT_AOV, MEASURE.ORDERS_COHORT_CUSTOMERS],
@@ -2430,7 +2430,7 @@ export const ORDERS_MEASURES_MAP = {
2430
2430
  valueType: MeasureValueType.NUMBER,
2431
2431
  decimalPlaces: 0,
2432
2432
  useCompactNotation: true,
2433
- applicableContexts: ORDERS_ATTRIBUTION_APPLICABLE_CONTEXTS,
2433
+ applicableContexts: LTV_COHORT_APPLICABLE_CONTEXTS,
2434
2434
  shortTitle: 'Cohort Cust.',
2435
2435
  tooltip: 'The number of customers who made their first purchase in the cohort period. The denominator for all per-customer cohort metrics.',
2436
2436
  relatedMeasures: [MEASURE.ORDERS_COHORT_GROSS_REVENUE, MEASURE.ORDERS_COHORT_RETENTION_RATE, MEASURE.ORDERS_COHORT_AOV],
@@ -2450,7 +2450,7 @@ export const ORDERS_MEASURES_MAP = {
2450
2450
  valueType: MeasureValueType.PERCENTAGE,
2451
2451
  decimalPlaces: 2,
2452
2452
  useCompactNotation: false,
2453
- applicableContexts: ORDERS_ATTRIBUTION_APPLICABLE_CONTEXTS,
2453
+ applicableContexts: LTV_COHORT_APPLICABLE_CONTEXTS,
2454
2454
  shortTitle: 'Cohort Retention',
2455
2455
  tooltip: 'The percentage of customers in a cohort who made an additional purchase in a subsequent period. Higher retention drives LTV.',
2456
2456
  formulaDisplay: 'Returning Cohort Customers ÷ Initial Cohort Customers × 100',
@@ -2472,7 +2472,7 @@ export const ORDERS_MEASURES_MAP = {
2472
2472
  valueType: MeasureValueType.CURRENCY,
2473
2473
  decimalPlaces: 2,
2474
2474
  useCompactNotation: true,
2475
- applicableContexts: ORDERS_ATTRIBUTION_APPLICABLE_CONTEXTS,
2475
+ applicableContexts: LTV_COHORT_APPLICABLE_CONTEXTS,
2476
2476
  tooltip: 'Average order value for orders placed by customers in the cohort. Tracks whether AOV changes as a cohort matures.',
2477
2477
  formulaDisplay: 'Cohort Revenue ÷ Cohort Order Count',
2478
2478
  formula: 'cohort_revenue / cohort_order_count',