@adtrackify/at-tracking-event-types 4.63.3 → 4.64.1

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.
Files changed (29) hide show
  1. package/dist/cjs/__tests__/cm4-measure-definitions.spec.d.ts +1 -0
  2. package/dist/cjs/__tests__/cm4-measure-definitions.spec.js +185 -0
  3. package/dist/cjs/__tests__/cm4-measure-definitions.spec.js.map +1 -0
  4. package/dist/cjs/types/api/measures/definitions/orders-measure-definitions.js +912 -200
  5. package/dist/cjs/types/api/measures/definitions/orders-measure-definitions.js.map +1 -1
  6. package/dist/cjs/types/api/measures/measure-categories.d.ts +2 -0
  7. package/dist/cjs/types/api/measures/measure-categories.js +2 -0
  8. package/dist/cjs/types/api/measures/measure-categories.js.map +1 -1
  9. package/dist/cjs/types/api/measures/measures.d.ts +38 -3
  10. package/dist/cjs/types/api/measures/measures.js +38 -3
  11. package/dist/cjs/types/api/measures/measures.js.map +1 -1
  12. package/dist/cjs/types/costs/cost-types.d.ts +10 -11
  13. package/dist/cjs/types/costs/cost-types.js +11 -8
  14. package/dist/cjs/types/costs/cost-types.js.map +1 -1
  15. package/dist/esm/__tests__/cm4-measure-definitions.spec.d.ts +1 -0
  16. package/dist/esm/__tests__/cm4-measure-definitions.spec.js +183 -0
  17. package/dist/esm/__tests__/cm4-measure-definitions.spec.js.map +1 -0
  18. package/dist/esm/types/api/measures/definitions/orders-measure-definitions.js +912 -200
  19. package/dist/esm/types/api/measures/definitions/orders-measure-definitions.js.map +1 -1
  20. package/dist/esm/types/api/measures/measure-categories.d.ts +2 -0
  21. package/dist/esm/types/api/measures/measure-categories.js +2 -0
  22. package/dist/esm/types/api/measures/measure-categories.js.map +1 -1
  23. package/dist/esm/types/api/measures/measures.d.ts +38 -3
  24. package/dist/esm/types/api/measures/measures.js +38 -3
  25. package/dist/esm/types/api/measures/measures.js.map +1 -1
  26. package/dist/esm/types/costs/cost-types.d.ts +10 -11
  27. package/dist/esm/types/costs/cost-types.js +10 -7
  28. package/dist/esm/types/costs/cost-types.js.map +1 -1
  29. package/package.json +1 -1
@@ -659,7 +659,7 @@ exports.ORDERS_MEASURES_MAP = {
659
659
  icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
660
660
  measure: measures_js_1.MEASURE.ORDERS_HANDLING_COST,
661
661
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
662
- subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_COGS,
662
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_FULFILLMENT,
663
663
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
664
664
  decimalPlaces: 2,
665
665
  useCompactNotation: true,
@@ -678,7 +678,7 @@ exports.ORDERS_MEASURES_MAP = {
678
678
  icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
679
679
  measure: measures_js_1.MEASURE.ORDERS_HANDLING_COST_PER_ORDER,
680
680
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
681
- subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_COGS,
681
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_FULFILLMENT,
682
682
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
683
683
  decimalPlaces: 2,
684
684
  useCompactNotation: false,
@@ -699,7 +699,7 @@ exports.ORDERS_MEASURES_MAP = {
699
699
  icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
700
700
  measure: measures_js_1.MEASURE.ORDERS_HANDLING_COST_PERCENT,
701
701
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
702
- subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_COGS,
702
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_FULFILLMENT,
703
703
  valueType: measure_value_type_js_1.MeasureValueType.PERCENTAGE,
704
704
  decimalPlaces: 2,
705
705
  useCompactNotation: false,
@@ -720,7 +720,7 @@ exports.ORDERS_MEASURES_MAP = {
720
720
  icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
721
721
  measure: measures_js_1.MEASURE.ORDERS_GATEWAY_COST,
722
722
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
723
- subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_COGS,
723
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_TRANSACTION,
724
724
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
725
725
  decimalPlaces: 2,
726
726
  useCompactNotation: true,
@@ -739,7 +739,7 @@ exports.ORDERS_MEASURES_MAP = {
739
739
  icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
740
740
  measure: measures_js_1.MEASURE.ORDERS_GATEWAY_COST_PER_ORDER,
741
741
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
742
- subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_COGS,
742
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_TRANSACTION,
743
743
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
744
744
  decimalPlaces: 2,
745
745
  useCompactNotation: false,
@@ -760,7 +760,7 @@ exports.ORDERS_MEASURES_MAP = {
760
760
  icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
761
761
  measure: measures_js_1.MEASURE.ORDERS_GATEWAY_COST_PERCENT,
762
762
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
763
- subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_COGS,
763
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_TRANSACTION,
764
764
  valueType: measure_value_type_js_1.MeasureValueType.PERCENTAGE,
765
765
  decimalPlaces: 2,
766
766
  useCompactNotation: false,
@@ -781,7 +781,7 @@ exports.ORDERS_MEASURES_MAP = {
781
781
  icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
782
782
  measure: measures_js_1.MEASURE.ORDERS_SHIPPING_COST,
783
783
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
784
- subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_COGS,
784
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_FULFILLMENT,
785
785
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
786
786
  decimalPlaces: 2,
787
787
  useCompactNotation: true,
@@ -800,7 +800,7 @@ exports.ORDERS_MEASURES_MAP = {
800
800
  icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
801
801
  measure: measures_js_1.MEASURE.ORDERS_SHIPPING_COST_PER_ORDER,
802
802
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
803
- subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_COGS,
803
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_FULFILLMENT,
804
804
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
805
805
  decimalPlaces: 2,
806
806
  useCompactNotation: false,
@@ -821,7 +821,7 @@ exports.ORDERS_MEASURES_MAP = {
821
821
  icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
822
822
  measure: measures_js_1.MEASURE.ORDERS_SHIPPING_COST_PERCENT,
823
823
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
824
- subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_COGS,
824
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_FULFILLMENT,
825
825
  valueType: measure_value_type_js_1.MeasureValueType.PERCENTAGE,
826
826
  decimalPlaces: 2,
827
827
  useCompactNotation: false,
@@ -832,9 +832,9 @@ exports.ORDERS_MEASURES_MAP = {
832
832
  },
833
833
  [measures_js_1.MEASURE.ORDERS_OTHER_COST]: {
834
834
  priority: 10,
835
- title: 'Order Cost (Other)',
836
- shortTitle: 'Order Cost (Other)',
837
- description: 'Order costs from Cost Settings including per-order, per-line-item, per-refund, weight-based, quantity-based, and percentage-based fees.',
835
+ title: 'Other Cost',
836
+ shortTitle: 'Other Cost',
837
+ description: 'Other variable order costs (per-order, per-line-item, percentage-based).',
838
838
  sumPrefix: '$',
839
839
  sumSuffix: '',
840
840
  avgPrefix: '$',
@@ -847,13 +847,13 @@ exports.ORDERS_MEASURES_MAP = {
847
847
  decimalPlaces: 2,
848
848
  useCompactNotation: true,
849
849
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
850
- tooltip: 'Order costs from Cost Settings including per-order, per-line-item, per-refund, weight-based, quantity-based, and percentage-based fees.',
850
+ tooltip: 'Other variable order costs including per-order fees, per-line-item fees, and percentage-based costs.',
851
851
  },
852
852
  [measures_js_1.MEASURE.ORDERS_OTHER_COST_PER_ORDER]: {
853
853
  priority: 11,
854
- title: 'Order Cost (Other) Per Order',
855
- shortTitle: 'Order Cost (Other)/Order',
856
- description: 'Average Order Cost (Other) per order.',
854
+ title: 'Other Cost Per Order',
855
+ shortTitle: 'Other Cost/Order',
856
+ description: 'Average other cost per order.',
857
857
  sumPrefix: '$',
858
858
  sumSuffix: '',
859
859
  avgPrefix: '$',
@@ -866,15 +866,15 @@ exports.ORDERS_MEASURES_MAP = {
866
866
  decimalPlaces: 2,
867
867
  useCompactNotation: false,
868
868
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
869
- tooltip: 'Average Order Cost (Other) per order.',
870
- formulaDisplay: 'Order Cost (Other) ÷ Order Count',
869
+ tooltip: 'Average other variable cost per order.',
870
+ formulaDisplay: '(Other Cost) ÷ (Order Count)',
871
871
  formula: '(other_cost) / (order_count)',
872
872
  },
873
873
  [measures_js_1.MEASURE.ORDERS_OTHER_COST_PERCENT]: {
874
874
  priority: 12,
875
- title: 'Order Cost (Other) %',
876
- shortTitle: 'Order Cost (Other) %',
877
- description: 'Order Cost (Other) as a percentage of net revenue.',
875
+ title: 'Other Cost %',
876
+ shortTitle: 'Other Cost %',
877
+ description: 'Other cost as percentage of net revenue.',
878
878
  sumPrefix: '',
879
879
  sumSuffix: '%',
880
880
  avgPrefix: '',
@@ -887,72 +887,632 @@ exports.ORDERS_MEASURES_MAP = {
887
887
  decimalPlaces: 2,
888
888
  useCompactNotation: false,
889
889
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
890
- tooltip: 'Order Cost (Other) as a percentage of net revenue.',
891
- formulaDisplay: 'Order Cost (Other) ÷ Net Revenue × 100',
890
+ tooltip: 'Other variable cost as a percentage of net revenue.',
891
+ formulaDisplay: '(Other Cost) ÷ (Net Revenue) × 100',
892
892
  formula: '((other_cost) / (net_revenue)) * 100',
893
893
  },
894
- [measures_js_1.MEASURE.ORDERS_ORDER_COST_TOTAL]: {
895
- priority: 13,
896
- title: 'Order Cost (Total)',
897
- shortTitle: 'Order Cost (Total)',
898
- description: 'Total order costs: Handling Cost + Gateway Cost + Shipping Cost + Order Cost (Other).',
894
+ [measures_js_1.MEASURE.ORDERS_OTHER_COGS]: {
895
+ priority: 25,
896
+ title: 'Other COGS',
897
+ shortTitle: 'Other COGS',
898
+ description: 'User-defined cost of goods sold from order cost entries with category COGS.',
899
+ sumPrefix: '$',
900
+ sumSuffix: '',
901
+ avgPrefix: '$',
902
+ avgSuffix: '',
903
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
904
+ measure: measures_js_1.MEASURE.ORDERS_OTHER_COGS,
905
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
906
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_COGS,
907
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
908
+ decimalPlaces: 2,
909
+ useCompactNotation: true,
910
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
911
+ tooltip: 'User-defined COGS from order cost entries. Combined with product COGS to calculate Total COGS.',
912
+ formulaDisplay: 'Sum of order cost entries where category = COGS',
913
+ },
914
+ [measures_js_1.MEASURE.ORDERS_TOTAL_COGS]: {
915
+ priority: 26,
916
+ title: 'Total COGS',
917
+ shortTitle: 'Total COGS',
918
+ description: 'Total cost of goods sold including product costs and user-defined COGS.',
919
+ sumPrefix: '$',
920
+ sumSuffix: '',
921
+ avgPrefix: '$',
922
+ avgSuffix: '',
923
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
924
+ measure: measures_js_1.MEASURE.ORDERS_TOTAL_COGS,
925
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
926
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_COGS,
927
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
928
+ decimalPlaces: 2,
929
+ useCompactNotation: true,
930
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
931
+ tooltip: 'Total COGS combining product variant costs and user-defined COGS entries. Deducted from Net Revenue to calculate CM1.',
932
+ formulaDisplay: 'COGS + Other COGS',
933
+ },
934
+ [measures_js_1.MEASURE.ORDERS_OTHER_FULFILLMENT_COST]: {
935
+ priority: 27,
936
+ title: 'Other Fulfillment Cost',
937
+ shortTitle: 'Other Fulfillment',
938
+ description: 'User-defined fulfillment costs from order cost entries with category FULFILLMENT.',
939
+ sumPrefix: '$',
940
+ sumSuffix: '',
941
+ avgPrefix: '$',
942
+ avgSuffix: '',
943
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
944
+ measure: measures_js_1.MEASURE.ORDERS_OTHER_FULFILLMENT_COST,
945
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
946
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_FULFILLMENT,
947
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
948
+ decimalPlaces: 2,
949
+ useCompactNotation: true,
950
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
951
+ tooltip: 'User-defined fulfillment costs from order cost entries. Includes packaging and other fulfillment fees.',
952
+ formulaDisplay: 'Sum of order cost entries with category Fulfillment',
953
+ },
954
+ [measures_js_1.MEASURE.ORDERS_TOTAL_FULFILLMENT_COST]: {
955
+ priority: 28,
956
+ title: 'Total Fulfillment Cost',
957
+ shortTitle: 'Total Fulfillment',
958
+ description: 'Total fulfillment costs including shipping, handling, and user-defined fulfillment.',
959
+ sumPrefix: '$',
960
+ sumSuffix: '',
961
+ avgPrefix: '$',
962
+ avgSuffix: '',
963
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
964
+ measure: measures_js_1.MEASURE.ORDERS_TOTAL_FULFILLMENT_COST,
965
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
966
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_FULFILLMENT,
967
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
968
+ decimalPlaces: 2,
969
+ useCompactNotation: true,
970
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
971
+ tooltip: 'Total fulfillment costs combining shipping, handling, and user-defined fulfillment. Deducted from CM1 to calculate CM2.',
972
+ formulaDisplay: 'Shipping Cost + Handling Cost + Other Fulfillment',
973
+ },
974
+ [measures_js_1.MEASURE.ORDERS_OTHER_TRANSACTION_COST]: {
975
+ priority: 29,
976
+ title: 'Other Transaction Cost',
977
+ shortTitle: 'Other Transaction',
978
+ description: 'User-defined transaction costs from order cost entries with category TRANSACTION.',
979
+ sumPrefix: '$',
980
+ sumSuffix: '',
981
+ avgPrefix: '$',
982
+ avgSuffix: '',
983
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
984
+ measure: measures_js_1.MEASURE.ORDERS_OTHER_TRANSACTION_COST,
985
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
986
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_TRANSACTION,
987
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
988
+ decimalPlaces: 2,
989
+ useCompactNotation: true,
990
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
991
+ tooltip: 'User-defined transaction costs from order cost entries. Includes additional payment processing fees.',
992
+ formulaDisplay: 'Sum of order cost entries with category Transaction',
993
+ },
994
+ [measures_js_1.MEASURE.ORDERS_TOTAL_TRANSACTION_COST]: {
995
+ priority: 30,
996
+ title: 'Total Transaction Cost',
997
+ shortTitle: 'Total Transaction',
998
+ description: 'Total transaction costs including gateway fees and user-defined transaction costs.',
999
+ sumPrefix: '$',
1000
+ sumSuffix: '',
1001
+ avgPrefix: '$',
1002
+ avgSuffix: '',
1003
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1004
+ measure: measures_js_1.MEASURE.ORDERS_TOTAL_TRANSACTION_COST,
1005
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1006
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_TRANSACTION,
1007
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1008
+ decimalPlaces: 2,
1009
+ useCompactNotation: true,
1010
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1011
+ tooltip: 'Total transaction costs combining payment gateway fees and user-defined transaction costs. Deducted from CM1 to calculate CM2.',
1012
+ formulaDisplay: 'Gateway Cost + Other Transaction',
1013
+ },
1014
+ [measures_js_1.MEASURE.ORDERS_MARKETING_COST]: {
1015
+ priority: 19,
1016
+ title: 'Marketing Cost',
1017
+ shortTitle: 'Marketing Cost',
1018
+ description: 'User-defined marketing costs from order cost entries with category MARKETING.',
1019
+ sumPrefix: '$',
1020
+ sumSuffix: '',
1021
+ avgPrefix: '$',
1022
+ avgSuffix: '',
1023
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1024
+ measure: measures_js_1.MEASURE.ORDERS_MARKETING_COST,
1025
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1026
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1027
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1028
+ decimalPlaces: 2,
1029
+ useCompactNotation: true,
1030
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1031
+ tooltip: 'User-defined marketing costs from order cost entries. Combined with Ad Spend and deducted from CM2 to calculate CM3.',
1032
+ formulaDisplay: 'Sum of order cost entries with category Marketing',
1033
+ },
1034
+ [measures_js_1.MEASURE.ORDERS_AGENCY_FEES_COST]: {
1035
+ priority: 32,
1036
+ title: 'Agency Fees',
1037
+ shortTitle: 'Agency Fees',
1038
+ description: 'User-defined agency fees from order cost entries with category AGENCY_FEES.',
1039
+ sumPrefix: '$',
1040
+ sumSuffix: '',
1041
+ avgPrefix: '$',
1042
+ avgSuffix: '',
1043
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1044
+ measure: measures_js_1.MEASURE.ORDERS_AGENCY_FEES_COST,
1045
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1046
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1047
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1048
+ decimalPlaces: 2,
1049
+ useCompactNotation: true,
1050
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1051
+ tooltip: 'User-defined agency fees from order cost entries. Deducted from CM3 to calculate CM4.',
1052
+ formulaDisplay: 'Sum of order cost entries with category Agency Fees',
1053
+ },
1054
+ [measures_js_1.MEASURE.ORDERS_OPEX_COST]: {
1055
+ priority: 21,
1056
+ title: 'Opex',
1057
+ shortTitle: 'Opex',
1058
+ description: 'User-defined operating expenses from order cost entries with category OPEX.',
1059
+ sumPrefix: '$',
1060
+ sumSuffix: '',
1061
+ avgPrefix: '$',
1062
+ avgSuffix: '',
1063
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1064
+ measure: measures_js_1.MEASURE.ORDERS_OPEX_COST,
1065
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1066
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1067
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1068
+ decimalPlaces: 2,
1069
+ useCompactNotation: true,
1070
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1071
+ tooltip: 'User-defined operating expenses from order cost entries. Deducted from CM3 to calculate CM4.',
1072
+ formulaDisplay: 'Sum of order cost entries with category Operating Expenses',
1073
+ },
1074
+ [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_SHIPPING_COST]: {
1075
+ priority: 40,
1076
+ title: 'New Customer Shipping Cost',
1077
+ shortTitle: 'NC Shipping Cost',
1078
+ description: 'Shipping costs for new customer orders.',
899
1079
  sumPrefix: '$',
900
1080
  sumSuffix: '',
901
1081
  avgPrefix: '$',
902
1082
  avgSuffix: '',
903
1083
  icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
904
- measure: measures_js_1.MEASURE.ORDERS_ORDER_COST_TOTAL,
1084
+ measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_SHIPPING_COST,
1085
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1086
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_FULFILLMENT,
1087
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1088
+ decimalPlaces: 2,
1089
+ useCompactNotation: true,
1090
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1091
+ tooltip: 'Total shipping costs for orders placed by new customers.',
1092
+ },
1093
+ [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_SHIPPING_COST]: {
1094
+ priority: 41,
1095
+ title: 'Returning Customer Shipping Cost',
1096
+ shortTitle: 'RC Shipping Cost',
1097
+ description: 'Shipping costs for returning customer orders.',
1098
+ sumPrefix: '$',
1099
+ sumSuffix: '',
1100
+ avgPrefix: '$',
1101
+ avgSuffix: '',
1102
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1103
+ measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_SHIPPING_COST,
1104
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1105
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_FULFILLMENT,
1106
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1107
+ decimalPlaces: 2,
1108
+ useCompactNotation: true,
1109
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1110
+ tooltip: 'Total shipping costs for orders placed by returning customers.',
1111
+ },
1112
+ [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_HANDLING_COST]: {
1113
+ priority: 42,
1114
+ title: 'New Customer Handling Cost',
1115
+ shortTitle: 'NC Handling Cost',
1116
+ description: 'Handling costs for new customer orders.',
1117
+ sumPrefix: '$',
1118
+ sumSuffix: '',
1119
+ avgPrefix: '$',
1120
+ avgSuffix: '',
1121
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1122
+ measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_HANDLING_COST,
1123
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1124
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_FULFILLMENT,
1125
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1126
+ decimalPlaces: 2,
1127
+ useCompactNotation: true,
1128
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1129
+ tooltip: 'Total handling costs for orders placed by new customers.',
1130
+ },
1131
+ [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_HANDLING_COST]: {
1132
+ priority: 43,
1133
+ title: 'Returning Customer Handling Cost',
1134
+ shortTitle: 'RC Handling Cost',
1135
+ description: 'Handling costs for returning customer orders.',
1136
+ sumPrefix: '$',
1137
+ sumSuffix: '',
1138
+ avgPrefix: '$',
1139
+ avgSuffix: '',
1140
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1141
+ measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_HANDLING_COST,
1142
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1143
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_FULFILLMENT,
1144
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1145
+ decimalPlaces: 2,
1146
+ useCompactNotation: true,
1147
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1148
+ tooltip: 'Total handling costs for orders placed by returning customers.',
1149
+ },
1150
+ [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_GATEWAY_COST]: {
1151
+ priority: 44,
1152
+ title: 'New Customer Gateway Cost',
1153
+ shortTitle: 'NC Gateway Cost',
1154
+ description: 'Payment gateway costs for new customer orders.',
1155
+ sumPrefix: '$',
1156
+ sumSuffix: '',
1157
+ avgPrefix: '$',
1158
+ avgSuffix: '',
1159
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1160
+ measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_GATEWAY_COST,
1161
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1162
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_TRANSACTION,
1163
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1164
+ decimalPlaces: 2,
1165
+ useCompactNotation: true,
1166
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1167
+ tooltip: 'Total payment gateway fees for orders placed by new customers.',
1168
+ },
1169
+ [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_GATEWAY_COST]: {
1170
+ priority: 45,
1171
+ title: 'Returning Customer Gateway Cost',
1172
+ shortTitle: 'RC Gateway Cost',
1173
+ description: 'Payment gateway costs for returning customer orders.',
1174
+ sumPrefix: '$',
1175
+ sumSuffix: '',
1176
+ avgPrefix: '$',
1177
+ avgSuffix: '',
1178
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1179
+ measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_GATEWAY_COST,
1180
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1181
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_TRANSACTION,
1182
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1183
+ decimalPlaces: 2,
1184
+ useCompactNotation: true,
1185
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1186
+ tooltip: 'Total payment gateway fees for orders placed by returning customers.',
1187
+ },
1188
+ [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_OTHER_COGS]: {
1189
+ priority: 46,
1190
+ title: 'New Customer Other COGS',
1191
+ shortTitle: 'NC Other COGS',
1192
+ description: 'User-defined COGS for new customer orders.',
1193
+ sumPrefix: '$',
1194
+ sumSuffix: '',
1195
+ avgPrefix: '$',
1196
+ avgSuffix: '',
1197
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1198
+ measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_OTHER_COGS,
1199
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1200
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_COGS,
1201
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1202
+ decimalPlaces: 2,
1203
+ useCompactNotation: true,
1204
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1205
+ tooltip: 'User-defined cost of goods sold from order cost entries for new customer orders.',
1206
+ },
1207
+ [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_OTHER_COGS]: {
1208
+ priority: 47,
1209
+ title: 'Returning Customer Other COGS',
1210
+ shortTitle: 'RC Other COGS',
1211
+ description: 'User-defined COGS for returning customer orders.',
1212
+ sumPrefix: '$',
1213
+ sumSuffix: '',
1214
+ avgPrefix: '$',
1215
+ avgSuffix: '',
1216
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1217
+ measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_OTHER_COGS,
905
1218
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
906
1219
  subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_COGS,
907
1220
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
908
1221
  decimalPlaces: 2,
909
1222
  useCompactNotation: true,
910
1223
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
911
- tooltip: 'Total order costs: Handling Cost + Gateway Cost + Shipping Cost + Order Cost (Other). Deducted from CM1 to calculate CM2.',
912
- formulaDisplay: 'Handling Cost + Gateway Cost + Shipping Cost + Order Cost (Other)',
1224
+ tooltip: 'User-defined cost of goods sold from order cost entries for returning customer orders.',
1225
+ },
1226
+ [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_OTHER_FULFILLMENT_COST]: {
1227
+ priority: 48,
1228
+ title: 'New Customer Other Fulfillment Cost',
1229
+ shortTitle: 'NC Other Fulfillment',
1230
+ description: 'User-defined fulfillment costs for new customer orders.',
1231
+ sumPrefix: '$',
1232
+ sumSuffix: '',
1233
+ avgPrefix: '$',
1234
+ avgSuffix: '',
1235
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1236
+ measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_OTHER_FULFILLMENT_COST,
1237
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1238
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_FULFILLMENT,
1239
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1240
+ decimalPlaces: 2,
1241
+ useCompactNotation: true,
1242
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1243
+ tooltip: 'User-defined fulfillment costs from order cost entries for new customer orders.',
1244
+ },
1245
+ [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_OTHER_FULFILLMENT_COST]: {
1246
+ priority: 49,
1247
+ title: 'Returning Customer Other Fulfillment Cost',
1248
+ shortTitle: 'RC Other Fulfillment',
1249
+ description: 'User-defined fulfillment costs for returning customer orders.',
1250
+ sumPrefix: '$',
1251
+ sumSuffix: '',
1252
+ avgPrefix: '$',
1253
+ avgSuffix: '',
1254
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1255
+ measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_OTHER_FULFILLMENT_COST,
1256
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1257
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_FULFILLMENT,
1258
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1259
+ decimalPlaces: 2,
1260
+ useCompactNotation: true,
1261
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1262
+ tooltip: 'User-defined fulfillment costs from order cost entries for returning customer orders.',
1263
+ },
1264
+ [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_OTHER_TRANSACTION_COST]: {
1265
+ priority: 50,
1266
+ title: 'New Customer Other Transaction Cost',
1267
+ shortTitle: 'NC Other Transaction',
1268
+ description: 'User-defined transaction costs for new customer orders.',
1269
+ sumPrefix: '$',
1270
+ sumSuffix: '',
1271
+ avgPrefix: '$',
1272
+ avgSuffix: '',
1273
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1274
+ measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_OTHER_TRANSACTION_COST,
1275
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1276
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_TRANSACTION,
1277
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1278
+ decimalPlaces: 2,
1279
+ useCompactNotation: true,
1280
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1281
+ tooltip: 'User-defined transaction costs from order cost entries for new customer orders.',
1282
+ },
1283
+ [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_OTHER_TRANSACTION_COST]: {
1284
+ priority: 51,
1285
+ title: 'Returning Customer Other Transaction Cost',
1286
+ shortTitle: 'RC Other Transaction',
1287
+ description: 'User-defined transaction costs for returning customer orders.',
1288
+ sumPrefix: '$',
1289
+ sumSuffix: '',
1290
+ avgPrefix: '$',
1291
+ avgSuffix: '',
1292
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1293
+ measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_OTHER_TRANSACTION_COST,
1294
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1295
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_TRANSACTION,
1296
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1297
+ decimalPlaces: 2,
1298
+ useCompactNotation: true,
1299
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1300
+ tooltip: 'User-defined transaction costs from order cost entries for returning customer orders.',
1301
+ },
1302
+ [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_MARKETING_COST]: {
1303
+ priority: 52,
1304
+ title: 'New Customer Marketing Cost',
1305
+ shortTitle: 'NC Marketing Cost',
1306
+ description: 'User-defined marketing costs for new customer orders.',
1307
+ sumPrefix: '$',
1308
+ sumSuffix: '',
1309
+ avgPrefix: '$',
1310
+ avgSuffix: '',
1311
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1312
+ measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_MARKETING_COST,
1313
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1314
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1315
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1316
+ decimalPlaces: 2,
1317
+ useCompactNotation: true,
1318
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1319
+ tooltip: 'User-defined marketing costs from order cost entries for new customer orders.',
1320
+ },
1321
+ [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_MARKETING_COST]: {
1322
+ priority: 53,
1323
+ title: 'Returning Customer Marketing Cost',
1324
+ shortTitle: 'RC Marketing Cost',
1325
+ description: 'User-defined marketing costs for returning customer orders.',
1326
+ sumPrefix: '$',
1327
+ sumSuffix: '',
1328
+ avgPrefix: '$',
1329
+ avgSuffix: '',
1330
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1331
+ measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_MARKETING_COST,
1332
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1333
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1334
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1335
+ decimalPlaces: 2,
1336
+ useCompactNotation: true,
1337
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1338
+ tooltip: 'User-defined marketing costs from order cost entries for returning customer orders.',
1339
+ },
1340
+ [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_AGENCY_FEES_COST]: {
1341
+ priority: 54,
1342
+ title: 'New Customer Agency Fees',
1343
+ shortTitle: 'NC Agency Fees',
1344
+ description: 'User-defined agency fees for new customer orders.',
1345
+ sumPrefix: '$',
1346
+ sumSuffix: '',
1347
+ avgPrefix: '$',
1348
+ avgSuffix: '',
1349
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1350
+ measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_AGENCY_FEES_COST,
1351
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1352
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1353
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1354
+ decimalPlaces: 2,
1355
+ useCompactNotation: true,
1356
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1357
+ tooltip: 'User-defined agency fees from order cost entries for new customer orders.',
1358
+ },
1359
+ [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_AGENCY_FEES_COST]: {
1360
+ priority: 55,
1361
+ title: 'Returning Customer Agency Fees',
1362
+ shortTitle: 'RC Agency Fees',
1363
+ description: 'User-defined agency fees for returning customer orders.',
1364
+ sumPrefix: '$',
1365
+ sumSuffix: '',
1366
+ avgPrefix: '$',
1367
+ avgSuffix: '',
1368
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1369
+ measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_AGENCY_FEES_COST,
1370
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1371
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1372
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1373
+ decimalPlaces: 2,
1374
+ useCompactNotation: true,
1375
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1376
+ tooltip: 'User-defined agency fees from order cost entries for returning customer orders.',
1377
+ },
1378
+ [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_OPEX_COST]: {
1379
+ priority: 56,
1380
+ title: 'New Customer Opex',
1381
+ shortTitle: 'NC Opex',
1382
+ description: 'User-defined operating expenses for new customer orders.',
1383
+ sumPrefix: '$',
1384
+ sumSuffix: '',
1385
+ avgPrefix: '$',
1386
+ avgSuffix: '',
1387
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1388
+ measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_OPEX_COST,
1389
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1390
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1391
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1392
+ decimalPlaces: 2,
1393
+ useCompactNotation: true,
1394
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1395
+ tooltip: 'User-defined operating expenses from order cost entries for new customer orders.',
1396
+ },
1397
+ [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_OPEX_COST]: {
1398
+ priority: 57,
1399
+ title: 'Returning Customer Opex',
1400
+ shortTitle: 'RC Opex',
1401
+ description: 'User-defined operating expenses for returning customer orders.',
1402
+ sumPrefix: '$',
1403
+ sumSuffix: '',
1404
+ avgPrefix: '$',
1405
+ avgSuffix: '',
1406
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1407
+ measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_OPEX_COST,
1408
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1409
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1410
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1411
+ decimalPlaces: 2,
1412
+ useCompactNotation: true,
1413
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1414
+ tooltip: 'User-defined operating expenses from order cost entries for returning customer orders.',
1415
+ },
1416
+ [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_TOTAL_OTHER_COST]: {
1417
+ priority: 58,
1418
+ title: 'New Customer Total Other Cost',
1419
+ shortTitle: 'NC Total Other Cost',
1420
+ description: 'Total other costs for new customer orders.',
1421
+ sumPrefix: '$',
1422
+ sumSuffix: '',
1423
+ avgPrefix: '$',
1424
+ avgSuffix: '',
1425
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1426
+ measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_TOTAL_OTHER_COST,
1427
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1428
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1429
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1430
+ decimalPlaces: 2,
1431
+ useCompactNotation: true,
1432
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1433
+ tooltip: 'Total other costs for orders placed by new customers. Deducted from CM3 to calculate CM4.',
1434
+ },
1435
+ [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_TOTAL_OTHER_COST]: {
1436
+ priority: 59,
1437
+ title: 'Returning Customer Total Other Cost',
1438
+ shortTitle: 'RC Total Other Cost',
1439
+ description: 'Total other costs for returning customer orders.',
1440
+ sumPrefix: '$',
1441
+ sumSuffix: '',
1442
+ avgPrefix: '$',
1443
+ avgSuffix: '',
1444
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1445
+ measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_TOTAL_OTHER_COST,
1446
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1447
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1448
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1449
+ decimalPlaces: 2,
1450
+ useCompactNotation: true,
1451
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1452
+ tooltip: 'Total other costs for orders placed by returning customers. Deducted from CM3 to calculate CM4.',
1453
+ },
1454
+ [measures_js_1.MEASURE.ORDERS_VARIABLE_COSTS]: {
1455
+ priority: 33,
1456
+ title: 'Variable Costs',
1457
+ shortTitle: 'Variable Costs',
1458
+ description: 'Total variable order costs (handling + gateway + shipping + other).',
1459
+ sumPrefix: '$',
1460
+ sumSuffix: '',
1461
+ avgPrefix: '$',
1462
+ avgSuffix: '',
1463
+ icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
1464
+ measure: measures_js_1.MEASURE.ORDERS_VARIABLE_COSTS,
1465
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
1466
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_COGS,
1467
+ valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1468
+ decimalPlaces: 2,
1469
+ useCompactNotation: true,
1470
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1471
+ tooltip: 'Total variable order costs including handling, gateway fees, shipping costs, and other fees. Deducted from CM1 to calculate CM2.',
1472
+ formulaDisplay: '(Handling Cost) + (Gateway Cost) + (Shipping Cost) + (Other Cost)',
913
1473
  formula: '(handling_cost) + (gateway_cost) + (shipping_cost) + (other_cost)',
914
1474
  },
915
- [measures_js_1.MEASURE.ORDERS_ORDER_COST_TOTAL_PER_ORDER]: {
916
- priority: 14,
917
- title: 'Order Cost (Total) Per Order',
918
- shortTitle: 'Order Cost (Total)/Order',
919
- description: 'Average Order Cost (Total) per order.',
1475
+ [measures_js_1.MEASURE.ORDERS_VARIABLE_COSTS_PER_ORDER]: {
1476
+ priority: 34,
1477
+ title: 'Variable Costs Per Order',
1478
+ shortTitle: 'Var. Costs/Order',
1479
+ description: 'Average variable costs per order.',
920
1480
  sumPrefix: '$',
921
1481
  sumSuffix: '',
922
1482
  avgPrefix: '$',
923
1483
  avgSuffix: '',
924
1484
  icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
925
- measure: measures_js_1.MEASURE.ORDERS_ORDER_COST_TOTAL_PER_ORDER,
1485
+ measure: measures_js_1.MEASURE.ORDERS_VARIABLE_COSTS_PER_ORDER,
926
1486
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
927
1487
  subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_COGS,
928
1488
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
929
1489
  decimalPlaces: 2,
930
1490
  useCompactNotation: false,
931
1491
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
932
- tooltip: 'Average Order Cost (Total) per order.',
933
- formulaDisplay: 'Order Cost (Total) ÷ Order Count',
934
- formula: '(order_cost_total) / (order_count)',
1492
+ tooltip: 'Average variable costs per order.',
1493
+ formulaDisplay: '(Variable Costs) ÷ (Order Count)',
1494
+ formula: '(variable_costs) / (order_count)',
935
1495
  },
936
- [measures_js_1.MEASURE.ORDERS_ORDER_COST_TOTAL_PERCENT]: {
937
- priority: 15,
938
- title: 'Order Cost (Total) %',
939
- shortTitle: 'Order Cost (Total) %',
940
- description: 'Order Cost (Total) as a percentage of net revenue.',
1496
+ [measures_js_1.MEASURE.ORDERS_VARIABLE_COSTS_PERCENT]: {
1497
+ priority: 35,
1498
+ title: 'Variable Costs %',
1499
+ shortTitle: 'Var. Costs %',
1500
+ description: 'Variable costs as percentage of net revenue.',
941
1501
  sumPrefix: '',
942
1502
  sumSuffix: '%',
943
1503
  avgPrefix: '',
944
1504
  avgSuffix: '%',
945
1505
  icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
946
- measure: measures_js_1.MEASURE.ORDERS_ORDER_COST_TOTAL_PERCENT,
1506
+ measure: measures_js_1.MEASURE.ORDERS_VARIABLE_COSTS_PERCENT,
947
1507
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS,
948
1508
  subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_COGS,
949
1509
  valueType: measure_value_type_js_1.MeasureValueType.PERCENTAGE,
950
1510
  decimalPlaces: 2,
951
1511
  useCompactNotation: false,
952
1512
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
953
- tooltip: 'Order Cost (Total) as a percentage of net revenue.',
954
- formulaDisplay: 'Order Cost (Total) ÷ Net Revenue × 100',
955
- formula: '((order_cost_total) / (net_revenue)) * 100',
1513
+ tooltip: 'Variable costs as a percentage of net revenue.',
1514
+ formulaDisplay: '(Variable Costs) ÷ (Net Revenue) × 100',
1515
+ formula: '((variable_costs) / (net_revenue)) * 100',
956
1516
  },
957
1517
  [measures_js_1.MEASURE.ORDERS_REFUND_AMOUNT]: {
958
1518
  priority: 1,
@@ -1377,7 +1937,7 @@ exports.ORDERS_MEASURES_MAP = {
1377
1937
  [measures_js_1.MEASURE.ORDERS_SHIPPING]: {
1378
1938
  priority: 31,
1379
1939
  title: 'Shipping Revenue',
1380
- shortTitle: 'Shipping Revenue',
1940
+ shortTitle: 'Shipping',
1381
1941
  description: 'Total shipping revenue.',
1382
1942
  sumPrefix: '$',
1383
1943
  sumSuffix: '',
@@ -1395,9 +1955,8 @@ exports.ORDERS_MEASURES_MAP = {
1395
1955
  },
1396
1956
  [measures_js_1.MEASURE.ORDERS_SHIPPING_PERCENT]: {
1397
1957
  priority: 32,
1398
- title: 'Shipping Revenue %',
1399
- shortTitle: 'Shipping Revenue %',
1400
- description: 'Shipping revenue as percentage of total revenue.',
1958
+ title: 'Shipping %',
1959
+ description: 'Shipping as percentage of total revenue.',
1401
1960
  sumPrefix: '',
1402
1961
  sumSuffix: '%',
1403
1962
  avgPrefix: '',
@@ -1416,9 +1975,9 @@ exports.ORDERS_MEASURES_MAP = {
1416
1975
  },
1417
1976
  [measures_js_1.MEASURE.ORDERS_SHIPPING_PER_ORDER]: {
1418
1977
  priority: 33,
1419
- title: 'Shipping Revenue Per Order',
1420
- shortTitle: 'Shipping Revenue/Order',
1421
- description: 'Average shipping revenue per order.',
1978
+ title: 'Shipping Per Order',
1979
+ shortTitle: 'Shipping/Order',
1980
+ description: 'Average shipping per order.',
1422
1981
  sumPrefix: '$',
1423
1982
  sumSuffix: '',
1424
1983
  avgPrefix: '$',
@@ -1438,7 +1997,7 @@ exports.ORDERS_MEASURES_MAP = {
1438
1997
  [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_SHIPPING]: {
1439
1998
  priority: 34,
1440
1999
  title: 'New Customer Shipping Revenue',
1441
- shortTitle: 'NC Shipping Revenue',
2000
+ shortTitle: 'NC Shipping',
1442
2001
  description: 'Total shipping revenue from new customers.',
1443
2002
  sumPrefix: '$',
1444
2003
  sumSuffix: '',
@@ -1456,9 +2015,9 @@ exports.ORDERS_MEASURES_MAP = {
1456
2015
  },
1457
2016
  [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_SHIPPING_PERCENT]: {
1458
2017
  priority: 35,
1459
- title: 'New Customer Shipping Revenue %',
1460
- shortTitle: 'NC Shipping Revenue %',
1461
- description: 'Shipping revenue as percentage of new customer total revenue.',
2018
+ title: 'New Customer Shipping %',
2019
+ shortTitle: 'NC Ship. %',
2020
+ description: 'Shipping as percentage of new customer total revenue.',
1462
2021
  sumPrefix: '',
1463
2022
  sumSuffix: '%',
1464
2023
  avgPrefix: '',
@@ -1477,9 +2036,9 @@ exports.ORDERS_MEASURES_MAP = {
1477
2036
  },
1478
2037
  [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_SHIPPING_PER_ORDER]: {
1479
2038
  priority: 36,
1480
- title: 'New Customer Shipping Revenue Per Order',
1481
- shortTitle: 'NC Shipping Revenue/Order',
1482
- description: 'Average shipping revenue per new customer order.',
2039
+ title: 'New Customer Shipping Per Order',
2040
+ shortTitle: 'NC Shipping/Order',
2041
+ description: 'Average shipping per new customer order.',
1483
2042
  sumPrefix: '$',
1484
2043
  sumSuffix: '',
1485
2044
  avgPrefix: '$',
@@ -1499,7 +2058,7 @@ exports.ORDERS_MEASURES_MAP = {
1499
2058
  [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_SHIPPING]: {
1500
2059
  priority: 37,
1501
2060
  title: 'Returning Customer Shipping Revenue',
1502
- shortTitle: 'RC Shipping Revenue',
2061
+ shortTitle: 'RC Shipping',
1503
2062
  description: 'Total shipping revenue from returning customers.',
1504
2063
  sumPrefix: '$',
1505
2064
  sumSuffix: '',
@@ -1517,9 +2076,9 @@ exports.ORDERS_MEASURES_MAP = {
1517
2076
  },
1518
2077
  [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_SHIPPING_PERCENT]: {
1519
2078
  priority: 38,
1520
- title: 'Returning Customer Shipping Revenue %',
1521
- shortTitle: 'RC Shipping Revenue %',
1522
- description: 'Shipping revenue as percentage of returning customer total revenue.',
2079
+ title: 'Returning Customer Shipping %',
2080
+ shortTitle: 'RC Ship. %',
2081
+ description: 'Shipping as percentage of returning customer total revenue.',
1523
2082
  sumPrefix: '',
1524
2083
  sumSuffix: '%',
1525
2084
  avgPrefix: '',
@@ -1538,9 +2097,9 @@ exports.ORDERS_MEASURES_MAP = {
1538
2097
  },
1539
2098
  [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_SHIPPING_PER_ORDER]: {
1540
2099
  priority: 39,
1541
- title: 'Returning Customer Shipping Revenue Per Order',
1542
- shortTitle: 'RC Shipping Revenue/Order',
1543
- description: 'Average shipping revenue per returning customer order.',
2100
+ title: 'Returning Customer Shipping Per Order',
2101
+ shortTitle: 'RC Shipping/Order',
2102
+ description: 'Average shipping per returning customer order.',
1544
2103
  sumPrefix: '$',
1545
2104
  sumSuffix: '',
1546
2105
  avgPrefix: '$',
@@ -1784,19 +2343,20 @@ exports.ORDERS_MEASURES_MAP = {
1784
2343
  priority: 5,
1785
2344
  title: 'CM1 Per Order',
1786
2345
  shortTitle: 'CM1/Order',
1787
- description: 'Average CM1 per order. Net Revenue minus Effective COGS divided by order count.',
2346
+ description: 'Average CM1 per order. Net Revenue minus Total COGS divided by order count.',
1788
2347
  sumPrefix: '$',
1789
2348
  sumSuffix: '',
1790
2349
  avgPrefix: '$',
1791
2350
  avgSuffix: '',
1792
- icon: measure_icon_js_1.MEASURE_ICON.CHANNEL,
2351
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
1793
2352
  measure: measures_js_1.MEASURE.ORDERS_CM1_PER_ORDER,
1794
2353
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
2354
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1795
2355
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1796
2356
  decimalPlaces: 2,
1797
2357
  useCompactNotation: false,
1798
2358
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
1799
- tooltip: 'CM1 Per Order is the conservative gross margin per order using Net Revenue minus Effective COGS.',
2359
+ tooltip: 'CM1 Per Order is the conservative gross margin per order using Net Revenue minus Total COGS.',
1800
2360
  formulaDisplay: '(CM1) ÷ (Order Count)',
1801
2361
  formula: '(cm1) / (order_count)',
1802
2362
  },
@@ -1809,9 +2369,10 @@ exports.ORDERS_MEASURES_MAP = {
1809
2369
  sumSuffix: '',
1810
2370
  avgPrefix: '$',
1811
2371
  avgSuffix: '',
1812
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
2372
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
1813
2373
  measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM1_PER_ORDER,
1814
2374
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
2375
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1815
2376
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1816
2377
  decimalPlaces: 2,
1817
2378
  useCompactNotation: false,
@@ -1829,9 +2390,10 @@ exports.ORDERS_MEASURES_MAP = {
1829
2390
  sumSuffix: '',
1830
2391
  avgPrefix: '$',
1831
2392
  avgSuffix: '',
1832
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
2393
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
1833
2394
  measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM1_PER_ORDER,
1834
2395
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
2396
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1835
2397
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1836
2398
  decimalPlaces: 2,
1837
2399
  useCompactNotation: false,
@@ -1844,14 +2406,16 @@ exports.ORDERS_MEASURES_MAP = {
1844
2406
  priority: 6,
1845
2407
  hideFromUI: true,
1846
2408
  title: 'CM2 Per Order',
2409
+ shortTitle: 'CM2/Order',
1847
2410
  description: 'Average CM2 per order.',
1848
2411
  sumPrefix: '$',
1849
2412
  sumSuffix: '',
1850
2413
  avgPrefix: '$',
1851
2414
  avgSuffix: '',
1852
- icon: measure_icon_js_1.MEASURE_ICON.CHANNEL,
2415
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
1853
2416
  measure: measures_js_1.MEASURE.ORDERS_CM2_PER_ORDER,
1854
2417
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
2418
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1855
2419
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1856
2420
  decimalPlaces: 2,
1857
2421
  useCompactNotation: false,
@@ -1864,14 +2428,16 @@ exports.ORDERS_MEASURES_MAP = {
1864
2428
  priority: 7,
1865
2429
  hideFromUI: true,
1866
2430
  title: 'CM3 Per Order',
2431
+ shortTitle: 'CM3/Order',
1867
2432
  description: 'Average CM3 per order.',
1868
2433
  sumPrefix: '$',
1869
2434
  sumSuffix: '',
1870
2435
  avgPrefix: '$',
1871
2436
  avgSuffix: '',
1872
- icon: measure_icon_js_1.MEASURE_ICON.CHANNEL,
2437
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
1873
2438
  measure: measures_js_1.MEASURE.ORDERS_CM3_PER_ORDER,
1874
2439
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
2440
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1875
2441
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1876
2442
  decimalPlaces: 2,
1877
2443
  useCompactNotation: false,
@@ -1890,9 +2456,10 @@ exports.ORDERS_MEASURES_MAP = {
1890
2456
  sumSuffix: '',
1891
2457
  avgPrefix: '$',
1892
2458
  avgSuffix: '',
1893
- icon: measure_icon_js_1.MEASURE_ICON.CHANNEL,
2459
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
1894
2460
  measure: measures_js_1.MEASURE.ORDERS_CM4_PER_ORDER,
1895
2461
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
2462
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1896
2463
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1897
2464
  decimalPlaces: 2,
1898
2465
  useCompactNotation: false,
@@ -1910,9 +2477,10 @@ exports.ORDERS_MEASURES_MAP = {
1910
2477
  sumSuffix: '',
1911
2478
  avgPrefix: '$',
1912
2479
  avgSuffix: '',
1913
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
2480
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
1914
2481
  measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM2_PER_ORDER,
1915
2482
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
2483
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1916
2484
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1917
2485
  decimalPlaces: 2,
1918
2486
  useCompactNotation: false,
@@ -1930,9 +2498,10 @@ exports.ORDERS_MEASURES_MAP = {
1930
2498
  sumSuffix: '',
1931
2499
  avgPrefix: '$',
1932
2500
  avgSuffix: '',
1933
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
2501
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
1934
2502
  measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM3_PER_ORDER,
1935
2503
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
2504
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1936
2505
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1937
2506
  decimalPlaces: 2,
1938
2507
  useCompactNotation: false,
@@ -1950,9 +2519,10 @@ exports.ORDERS_MEASURES_MAP = {
1950
2519
  sumSuffix: '',
1951
2520
  avgPrefix: '$',
1952
2521
  avgSuffix: '',
1953
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
2522
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
1954
2523
  measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM4_PER_ORDER,
1955
2524
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
2525
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1956
2526
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1957
2527
  decimalPlaces: 2,
1958
2528
  useCompactNotation: false,
@@ -1970,9 +2540,10 @@ exports.ORDERS_MEASURES_MAP = {
1970
2540
  sumSuffix: '',
1971
2541
  avgPrefix: '$',
1972
2542
  avgSuffix: '',
1973
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
2543
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
1974
2544
  measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM2_PER_ORDER,
1975
2545
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
2546
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1976
2547
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1977
2548
  decimalPlaces: 2,
1978
2549
  useCompactNotation: false,
@@ -1990,9 +2561,10 @@ exports.ORDERS_MEASURES_MAP = {
1990
2561
  sumSuffix: '',
1991
2562
  avgPrefix: '$',
1992
2563
  avgSuffix: '',
1993
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
2564
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
1994
2565
  measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM3_PER_ORDER,
1995
2566
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
2567
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
1996
2568
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
1997
2569
  decimalPlaces: 2,
1998
2570
  useCompactNotation: false,
@@ -2010,9 +2582,10 @@ exports.ORDERS_MEASURES_MAP = {
2010
2582
  sumSuffix: '',
2011
2583
  avgPrefix: '$',
2012
2584
  avgSuffix: '',
2013
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
2585
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
2014
2586
  measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM4_PER_ORDER,
2015
2587
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
2588
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
2016
2589
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
2017
2590
  decimalPlaces: 2,
2018
2591
  useCompactNotation: false,
@@ -3330,7 +3903,7 @@ exports.ORDERS_MEASURES_MAP = {
3330
3903
  decimalPlaces: 2,
3331
3904
  useCompactNotation: false,
3332
3905
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
3333
- tooltip: 'How much contribution margin after all costs (CM3) you earn for every dollar spent on advertising.',
3906
+ tooltip: 'How much contribution margin after marketing and ad spend (CM3) you earn for every dollar spent on advertising.',
3334
3907
  formulaDisplay: 'CM3 ÷ Total Ad Spend',
3335
3908
  formula: 'cm3 / spend',
3336
3909
  },
@@ -3390,7 +3963,7 @@ exports.ORDERS_MEASURES_MAP = {
3390
3963
  decimalPlaces: 2,
3391
3964
  useCompactNotation: false,
3392
3965
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
3393
- tooltip: 'New customer contribution margin after all costs (CM3) per dollar spent on advertising.',
3966
+ tooltip: 'New customer contribution margin after marketing and ad spend (CM3) per dollar spent on advertising.',
3394
3967
  formulaDisplay: 'NC CM3 ÷ Ad Spend',
3395
3968
  formula: 'nc_cm3 / spend',
3396
3969
  },
@@ -3450,7 +4023,7 @@ exports.ORDERS_MEASURES_MAP = {
3450
4023
  decimalPlaces: 2,
3451
4024
  useCompactNotation: false,
3452
4025
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
3453
- tooltip: 'Returning customer contribution margin after all costs (CM3) per dollar spent on advertising.',
4026
+ tooltip: 'Returning customer contribution margin after marketing and ad spend (CM3) per dollar spent on advertising.',
3454
4027
  formulaDisplay: 'RC CM3 ÷ Ad Spend',
3455
4028
  formula: 'rc_cm3 / spend',
3456
4029
  },
@@ -3650,9 +4223,9 @@ exports.ORDERS_MEASURES_MAP = {
3650
4223
  decimalPlaces: 2,
3651
4224
  useCompactNotation: false,
3652
4225
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
3653
- tooltip: 'What percentage of your gross margin (CM1) is spent on advertising. Lower is better.',
3654
- formulaDisplay: '(Total Ad Spend ÷ CM1) × 100',
3655
- formula: '(spend / cm1) * 100',
4226
+ tooltip: 'Gross margin (CM1) as a percentage of ad spend. Higher is better.',
4227
+ formulaDisplay: '(CM1 ÷ Total Ad Spend) × 100',
4228
+ formula: '(cm1 / spend) * 100',
3656
4229
  },
3657
4230
  [measures_js_1.MEASURE.ORDERS_CM2_MER]: {
3658
4231
  priority: 62,
@@ -3671,9 +4244,9 @@ exports.ORDERS_MEASURES_MAP = {
3671
4244
  decimalPlaces: 2,
3672
4245
  useCompactNotation: false,
3673
4246
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
3674
- tooltip: 'What percentage of your contribution margin after variable costs (CM2) is spent on advertising.',
3675
- formulaDisplay: '(Total Ad Spend ÷ CM2) × 100',
3676
- formula: '(spend / cm2) * 100',
4247
+ tooltip: 'Contribution margin after variable costs (CM2) as a percentage of ad spend. Higher is better.',
4248
+ formulaDisplay: '(CM2 ÷ Total Ad Spend) × 100',
4249
+ formula: '(cm2 / spend) * 100',
3677
4250
  },
3678
4251
  [measures_js_1.MEASURE.ORDERS_CM3_MER]: {
3679
4252
  priority: 63,
@@ -3692,9 +4265,9 @@ exports.ORDERS_MEASURES_MAP = {
3692
4265
  decimalPlaces: 2,
3693
4266
  useCompactNotation: false,
3694
4267
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
3695
- tooltip: 'What percentage of your contribution margin after all costs (CM3) is spent on advertising.',
3696
- formulaDisplay: '(Total Ad Spend ÷ CM3) × 100',
3697
- formula: '(spend / cm3) * 100',
4268
+ tooltip: 'Contribution margin after marketing and ad spend (CM3) as a percentage of ad spend. Higher is better.',
4269
+ formulaDisplay: '(CM3 ÷ Total Ad Spend) × 100',
4270
+ formula: '(cm3 / spend) * 100',
3698
4271
  },
3699
4272
  [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM1_MER]: {
3700
4273
  priority: 64,
@@ -3712,9 +4285,9 @@ exports.ORDERS_MEASURES_MAP = {
3712
4285
  decimalPlaces: 2,
3713
4286
  useCompactNotation: false,
3714
4287
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
3715
- tooltip: 'What percentage of new customer gross margin (CM1) is spent on advertising.',
3716
- formulaDisplay: '(Ad Spend ÷ NC CM1) × 100',
3717
- formula: '(spend / nc_cm1) * 100',
4288
+ tooltip: 'New customer gross margin (CM1) as a percentage of ad spend. Higher is better.',
4289
+ formulaDisplay: '(NC CM1 ÷ Ad Spend) × 100',
4290
+ formula: '(nc_cm1 / spend) * 100',
3718
4291
  },
3719
4292
  [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM2_MER]: {
3720
4293
  priority: 65,
@@ -3732,9 +4305,9 @@ exports.ORDERS_MEASURES_MAP = {
3732
4305
  decimalPlaces: 2,
3733
4306
  useCompactNotation: false,
3734
4307
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
3735
- tooltip: 'What percentage of new customer contribution margin after variable costs (CM2) is spent on advertising.',
3736
- formulaDisplay: '(Ad Spend ÷ NC CM2) × 100',
3737
- formula: '(spend / nc_cm2) * 100',
4308
+ tooltip: 'New customer contribution margin after variable costs (CM2) as a percentage of ad spend. Higher is better.',
4309
+ formulaDisplay: '(NC CM2 ÷ Ad Spend) × 100',
4310
+ formula: '(nc_cm2 / spend) * 100',
3738
4311
  },
3739
4312
  [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM3_MER]: {
3740
4313
  priority: 66,
@@ -3752,9 +4325,9 @@ exports.ORDERS_MEASURES_MAP = {
3752
4325
  decimalPlaces: 2,
3753
4326
  useCompactNotation: false,
3754
4327
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
3755
- tooltip: 'What percentage of new customer contribution margin after all costs (CM3) is spent on advertising.',
3756
- formulaDisplay: '(Ad Spend ÷ NC CM3) × 100',
3757
- formula: '(spend / nc_cm3) * 100',
4328
+ tooltip: 'NC CM3 as a percentage of ad spend. Higher is better.',
4329
+ formulaDisplay: '(NC CM3 ÷ Ad Spend) × 100',
4330
+ formula: '(nc_cm3 / spend) * 100',
3758
4331
  },
3759
4332
  [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM1_MER]: {
3760
4333
  priority: 67,
@@ -3772,9 +4345,9 @@ exports.ORDERS_MEASURES_MAP = {
3772
4345
  decimalPlaces: 2,
3773
4346
  useCompactNotation: false,
3774
4347
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
3775
- tooltip: 'What percentage of returning customer gross margin (CM1) is spent on advertising.',
3776
- formulaDisplay: '(Ad Spend ÷ RC CM1) × 100',
3777
- formula: '(spend / rc_cm1) * 100',
4348
+ tooltip: 'Returning customer gross margin (CM1) as a percentage of ad spend. Higher is better.',
4349
+ formulaDisplay: '(RC CM1 ÷ Ad Spend) × 100',
4350
+ formula: '(rc_cm1 / spend) * 100',
3778
4351
  },
3779
4352
  [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM2_MER]: {
3780
4353
  priority: 68,
@@ -3792,9 +4365,9 @@ exports.ORDERS_MEASURES_MAP = {
3792
4365
  decimalPlaces: 2,
3793
4366
  useCompactNotation: false,
3794
4367
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
3795
- tooltip: 'What percentage of returning customer contribution margin after variable costs (CM2) is spent on advertising.',
3796
- formulaDisplay: '(Ad Spend ÷ RC CM2) × 100',
3797
- formula: '(spend / rc_cm2) * 100',
4368
+ tooltip: 'Returning customer contribution margin after variable costs (CM2) as a percentage of ad spend. Higher is better.',
4369
+ formulaDisplay: '(RC CM2 ÷ Ad Spend) × 100',
4370
+ formula: '(rc_cm2 / spend) * 100',
3798
4371
  },
3799
4372
  [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM3_MER]: {
3800
4373
  priority: 69,
@@ -3812,9 +4385,131 @@ exports.ORDERS_MEASURES_MAP = {
3812
4385
  decimalPlaces: 2,
3813
4386
  useCompactNotation: false,
3814
4387
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
3815
- tooltip: 'What percentage of returning customer contribution margin after all costs (CM3) is spent on advertising.',
3816
- formulaDisplay: '(Ad Spend ÷ RC CM3) × 100',
3817
- formula: '(spend / rc_cm3) * 100',
4388
+ tooltip: 'Returning customer contribution margin after marketing and ad spend (CM3) as a percentage of ad spend. Higher is better.',
4389
+ formulaDisplay: '(RC CM3 ÷ Ad Spend) × 100',
4390
+ formula: '(rc_cm3 / spend) * 100',
4391
+ },
4392
+ [measures_js_1.MEASURE.ORDERS_CM4_ROAS]: {
4393
+ priority: 70,
4394
+ hideFromUI: true,
4395
+ title: 'CM4 ROAS',
4396
+ shortTitle: 'CM4 ROAS',
4397
+ description: 'CM4 (Operating Profit) divided by Total Ad Spend.',
4398
+ sumPrefix: '',
4399
+ sumSuffix: 'x',
4400
+ avgPrefix: '',
4401
+ avgSuffix: 'x',
4402
+ icon: measure_icon_js_1.MEASURE_ICON.CHANNEL,
4403
+ measure: measures_js_1.MEASURE.ORDERS_CM4_ROAS,
4404
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_AD_PERFORMANCE,
4405
+ valueType: measure_value_type_js_1.MeasureValueType.MULTIPLIER,
4406
+ decimalPlaces: 2,
4407
+ useCompactNotation: false,
4408
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4409
+ tooltip: 'How much operating profit (CM4) you earn for every dollar spent on advertising. CM4 includes all costs: COGS, fulfillment, transaction, marketing, ad spend, agency fees, opex, and other costs.',
4410
+ formulaDisplay: 'CM4 ÷ Total Ad Spend',
4411
+ formula: 'cm4 / spend',
4412
+ },
4413
+ [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM4_ROAS]: {
4414
+ priority: 71,
4415
+ title: 'New Customer CM4 ROAS',
4416
+ shortTitle: 'NC CM4 ROAS',
4417
+ description: 'New Customer CM4 (Operating Profit) divided by Ad Spend.',
4418
+ sumPrefix: '',
4419
+ sumSuffix: 'x',
4420
+ avgPrefix: '',
4421
+ avgSuffix: 'x',
4422
+ icon: measure_icon_js_1.MEASURE_ICON.CHANNEL,
4423
+ measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM4_ROAS,
4424
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_AD_PERFORMANCE,
4425
+ valueType: measure_value_type_js_1.MeasureValueType.MULTIPLIER,
4426
+ decimalPlaces: 2,
4427
+ useCompactNotation: false,
4428
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4429
+ tooltip: 'New customer operating profit (CM4) per dollar spent on advertising.',
4430
+ formulaDisplay: 'NC CM4 ÷ Ad Spend',
4431
+ formula: 'nc_cm4 / spend',
4432
+ },
4433
+ [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM4_ROAS]: {
4434
+ priority: 72,
4435
+ title: 'Returning Customer CM4 ROAS',
4436
+ shortTitle: 'RC CM4 ROAS',
4437
+ description: 'Returning Customer CM4 (Operating Profit) divided by Ad Spend.',
4438
+ sumPrefix: '',
4439
+ sumSuffix: 'x',
4440
+ avgPrefix: '',
4441
+ avgSuffix: 'x',
4442
+ icon: measure_icon_js_1.MEASURE_ICON.CHANNEL,
4443
+ measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM4_ROAS,
4444
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_AD_PERFORMANCE,
4445
+ valueType: measure_value_type_js_1.MeasureValueType.MULTIPLIER,
4446
+ decimalPlaces: 2,
4447
+ useCompactNotation: false,
4448
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4449
+ tooltip: 'Returning customer operating profit (CM4) per dollar spent on advertising.',
4450
+ formulaDisplay: 'RC CM4 ÷ Ad Spend',
4451
+ formula: 'rc_cm4 / spend',
4452
+ },
4453
+ [measures_js_1.MEASURE.ORDERS_CM4_MER]: {
4454
+ priority: 73,
4455
+ hideFromUI: true,
4456
+ title: 'CM4 MER',
4457
+ shortTitle: 'CM4 MER',
4458
+ description: 'Marketing Efficiency Ratio using CM4 (Operating Profit).',
4459
+ sumPrefix: '',
4460
+ sumSuffix: '%',
4461
+ avgPrefix: '',
4462
+ avgSuffix: '%',
4463
+ icon: measure_icon_js_1.MEASURE_ICON.CHANNEL,
4464
+ measure: measures_js_1.MEASURE.ORDERS_CM4_MER,
4465
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_AD_PERFORMANCE,
4466
+ valueType: measure_value_type_js_1.MeasureValueType.PERCENTAGE,
4467
+ decimalPlaces: 2,
4468
+ useCompactNotation: false,
4469
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4470
+ tooltip: 'Operating profit (CM4) as a percentage of ad spend. CM4 includes all costs: COGS, fulfillment, transaction, marketing, ad spend, agency fees, opex, and other costs. Higher is better.',
4471
+ formulaDisplay: '(CM4 ÷ Total Ad Spend) × 100',
4472
+ formula: '(cm4 / spend) * 100',
4473
+ },
4474
+ [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM4_MER]: {
4475
+ priority: 74,
4476
+ title: 'New Customer CM4 MER',
4477
+ shortTitle: 'NC CM4 MER',
4478
+ description: 'Marketing Efficiency Ratio using New Customer CM4.',
4479
+ sumPrefix: '',
4480
+ sumSuffix: '%',
4481
+ avgPrefix: '',
4482
+ avgSuffix: '%',
4483
+ icon: measure_icon_js_1.MEASURE_ICON.CHANNEL,
4484
+ measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM4_MER,
4485
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_AD_PERFORMANCE,
4486
+ valueType: measure_value_type_js_1.MeasureValueType.PERCENTAGE,
4487
+ decimalPlaces: 2,
4488
+ useCompactNotation: false,
4489
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4490
+ tooltip: 'New customer operating profit (CM4) as a percentage of ad spend. Higher is better.',
4491
+ formulaDisplay: '(NC CM4 ÷ Ad Spend) × 100',
4492
+ formula: '(nc_cm4 / spend) * 100',
4493
+ },
4494
+ [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM4_MER]: {
4495
+ priority: 75,
4496
+ title: 'Returning Customer CM4 MER',
4497
+ shortTitle: 'RC CM4 MER',
4498
+ description: 'Marketing Efficiency Ratio using Returning Customer CM4.',
4499
+ sumPrefix: '',
4500
+ sumSuffix: '%',
4501
+ avgPrefix: '',
4502
+ avgSuffix: '%',
4503
+ icon: measure_icon_js_1.MEASURE_ICON.CHANNEL,
4504
+ measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM4_MER,
4505
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_AD_PERFORMANCE,
4506
+ valueType: measure_value_type_js_1.MeasureValueType.PERCENTAGE,
4507
+ decimalPlaces: 2,
4508
+ useCompactNotation: false,
4509
+ applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4510
+ tooltip: 'Returning customer operating profit (CM4) as a percentage of ad spend. Higher is better.',
4511
+ formulaDisplay: '(RC CM4 ÷ Ad Spend) × 100',
4512
+ formula: '(rc_cm4 / spend) * 100',
3818
4513
  },
3819
4514
  [measures_js_1.MEASURE.ORDERS_TOTAL_RAAD]: {
3820
4515
  priority: 71,
@@ -4181,21 +4876,22 @@ exports.ORDERS_MEASURES_MAP = {
4181
4876
  hideFromUI: true,
4182
4877
  title: 'Contribution Margin 2',
4183
4878
  shortTitle: 'CM2',
4184
- description: 'CM1 minus variable costs (handling, gateway, shipping, other).',
4879
+ description: 'CM1 minus fulfillment and transaction costs.',
4185
4880
  sumPrefix: '$',
4186
4881
  sumSuffix: '',
4187
4882
  avgPrefix: '$',
4188
4883
  avgSuffix: '',
4189
- icon: measure_icon_js_1.MEASURE_ICON.CHANNEL,
4884
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4190
4885
  measure: measures_js_1.MEASURE.ORDERS_CM2,
4191
4886
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4887
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4192
4888
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
4193
4889
  decimalPlaces: 2,
4194
4890
  useCompactNotation: true,
4195
4891
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4196
- tooltip: 'Profit after deducting variable order costs (handling, gateway, shipping, other).',
4197
- formulaDisplay: '(CM1) − (Handling Cost) (Gateway Cost) − (Shipping Cost) (Other Cost)',
4198
- formula: '(cm1) - (handling_cost) - (gateway_cost) - (shipping_cost) - (other_cost)',
4892
+ tooltip: 'Profit after deducting fulfillment costs (shipping, handling, other fulfillment) and transaction costs (gateway, other transaction).',
4893
+ formulaDisplay: 'CM1 − (Shipping Cost + Handling Cost + Other Fulfillment) − (Gateway Cost + Other Transaction)',
4894
+ formula: 'cm1 - shipping_cost - handling_cost - other_fulfillment_cost - gateway_cost - other_transaction_cost',
4199
4895
  },
4200
4896
  [measures_js_1.MEASURE.ORDERS_CM2_PERCENT]: {
4201
4897
  priority: 32,
@@ -4207,14 +4903,15 @@ exports.ORDERS_MEASURES_MAP = {
4207
4903
  sumSuffix: '%',
4208
4904
  avgPrefix: '',
4209
4905
  avgSuffix: '%',
4210
- icon: measure_icon_js_1.MEASURE_ICON.CHANNEL,
4906
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4211
4907
  measure: measures_js_1.MEASURE.ORDERS_CM2_PERCENT,
4212
4908
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4909
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4213
4910
  valueType: measure_value_type_js_1.MeasureValueType.PERCENTAGE,
4214
4911
  decimalPlaces: 2,
4215
4912
  useCompactNotation: false,
4216
4913
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4217
- tooltip: 'What percentage of net revenue remains after product and variable costs.',
4914
+ tooltip: 'What percentage of net revenue remains after COGS, fulfillment, and transaction costs.',
4218
4915
  formulaDisplay: '(CM2) ÷ (Net Revenue) × 100',
4219
4916
  formula: '((cm2) / (net_revenue)) * 100',
4220
4917
  },
@@ -4222,21 +4919,21 @@ exports.ORDERS_MEASURES_MAP = {
4222
4919
  priority: 12,
4223
4920
  title: 'New Customer Contribution Margin 2',
4224
4921
  shortTitle: 'NC CM2',
4225
- description: 'New customer CM1 minus variable costs (handling, gateway, shipping, other).',
4922
+ description: 'New customer CM1 minus fulfillment and transaction costs.',
4226
4923
  sumPrefix: '$',
4227
4924
  sumSuffix: '',
4228
4925
  avgPrefix: '$',
4229
4926
  avgSuffix: '',
4230
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
4927
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4231
4928
  measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM2,
4232
4929
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4930
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4233
4931
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
4234
4932
  decimalPlaces: 2,
4235
4933
  useCompactNotation: true,
4236
4934
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4237
- tooltip: 'Profit from new customers after deducting variable order costs (handling, gateway, shipping, other).',
4238
- formulaDisplay: '(NC CM1) − (Handling Cost) (Gateway Cost) − (Shipping Cost) (Other Cost)',
4239
- formula: '(nc_cm1) - (nc_handling_cost) - (nc_gateway_cost) - (nc_shipping_cost) - (nc_other_cost)',
4935
+ tooltip: 'Profit from new customers after deducting fulfillment and transaction costs.',
4936
+ formulaDisplay: 'NC CM1 − (NC Shipping + NC Handling + NC Other Fulfillment) − (NC Gateway + NC Other Transaction)',
4240
4937
  },
4241
4938
  [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM2_PERCENT]: {
4242
4939
  priority: 36,
@@ -4247,14 +4944,15 @@ exports.ORDERS_MEASURES_MAP = {
4247
4944
  sumSuffix: '%',
4248
4945
  avgPrefix: '',
4249
4946
  avgSuffix: '%',
4250
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
4947
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4251
4948
  measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM2_PERCENT,
4252
4949
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4950
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4253
4951
  valueType: measure_value_type_js_1.MeasureValueType.PERCENTAGE,
4254
4952
  decimalPlaces: 2,
4255
4953
  useCompactNotation: false,
4256
4954
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4257
- tooltip: 'What percentage of new customer net revenue remains after variable costs.',
4955
+ tooltip: 'What percentage of new customer net revenue remains after fulfillment and transaction costs.',
4258
4956
  formulaDisplay: '(NC CM2) ÷ (NC Net Revenue) × 100',
4259
4957
  formula: '((nc_cm2) / (nc_net_revenue)) * 100',
4260
4958
  },
@@ -4262,21 +4960,21 @@ exports.ORDERS_MEASURES_MAP = {
4262
4960
  priority: 22,
4263
4961
  title: 'Returning Customer Contribution Margin 2',
4264
4962
  shortTitle: 'RC CM2',
4265
- description: 'Returning customer CM1 minus variable costs (handling, gateway, shipping, other).',
4963
+ description: 'Returning customer CM1 minus fulfillment and transaction costs.',
4266
4964
  sumPrefix: '$',
4267
4965
  sumSuffix: '',
4268
4966
  avgPrefix: '$',
4269
4967
  avgSuffix: '',
4270
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
4968
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4271
4969
  measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM2,
4272
4970
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4971
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4273
4972
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
4274
4973
  decimalPlaces: 2,
4275
4974
  useCompactNotation: true,
4276
4975
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4277
- tooltip: 'Profit from returning customers after deducting variable order costs (handling, gateway, shipping, other).',
4278
- formulaDisplay: '(RC CM1) − (Handling Cost) (Gateway Cost) − (Shipping Cost) (Other Cost)',
4279
- formula: '(rc_cm1) - (rc_handling_cost) - (rc_gateway_cost) - (rc_shipping_cost) - (rc_other_cost)',
4976
+ tooltip: 'Profit from returning customers after deducting fulfillment and transaction costs.',
4977
+ formulaDisplay: 'RC CM1 − (RC Shipping + RC Handling + RC Other Fulfillment) − (RC Gateway + RC Other Transaction)',
4280
4978
  },
4281
4979
  [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM2_PERCENT]: {
4282
4980
  priority: 40,
@@ -4287,14 +4985,15 @@ exports.ORDERS_MEASURES_MAP = {
4287
4985
  sumSuffix: '%',
4288
4986
  avgPrefix: '',
4289
4987
  avgSuffix: '%',
4290
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
4988
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4291
4989
  measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM2_PERCENT,
4292
4990
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4991
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4293
4992
  valueType: measure_value_type_js_1.MeasureValueType.PERCENTAGE,
4294
4993
  decimalPlaces: 2,
4295
4994
  useCompactNotation: false,
4296
4995
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4297
- tooltip: 'What percentage of returning customer net revenue remains after variable costs.',
4996
+ tooltip: 'What percentage of returning customer net revenue remains after fulfillment and transaction costs.',
4298
4997
  formulaDisplay: '(RC CM2) ÷ (RC Net Revenue) × 100',
4299
4998
  formula: '((rc_cm2) / (rc_net_revenue)) * 100',
4300
4999
  },
@@ -4303,21 +5002,22 @@ exports.ORDERS_MEASURES_MAP = {
4303
5002
  hideFromUI: true,
4304
5003
  title: 'Contribution Margin 3',
4305
5004
  shortTitle: 'CM3',
4306
- description: 'CM2 minus ad spend.',
5005
+ description: 'CM2 minus marketing costs (ad spend plus user-defined marketing).',
4307
5006
  sumPrefix: '$',
4308
5007
  sumSuffix: '',
4309
5008
  avgPrefix: '$',
4310
5009
  avgSuffix: '',
4311
- icon: measure_icon_js_1.MEASURE_ICON.CHANNEL,
5010
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4312
5011
  measure: measures_js_1.MEASURE.ORDERS_CM3,
4313
5012
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
5013
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4314
5014
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
4315
5015
  decimalPlaces: 2,
4316
5016
  useCompactNotation: true,
4317
5017
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4318
- tooltip: 'Profit after all variable costs including advertising. Key metric for marketing profitability.',
4319
- formulaDisplay: '(CM2)(Ad Spend)',
4320
- formula: '(cm2) - (blended_ad_spend)',
5018
+ tooltip: 'Profit after all marketing costs. Includes ad spend and user-defined marketing costs. Key metric for marketing profitability.',
5019
+ formulaDisplay: 'CM2 − Marketing Cost − Ad Spend',
5020
+ formula: 'cm2 - marketing_cost - ad_spend',
4321
5021
  },
4322
5022
  [measures_js_1.MEASURE.ORDERS_CM3_PERCENT]: {
4323
5023
  priority: 33,
@@ -4329,14 +5029,15 @@ exports.ORDERS_MEASURES_MAP = {
4329
5029
  sumSuffix: '%',
4330
5030
  avgPrefix: '',
4331
5031
  avgSuffix: '%',
4332
- icon: measure_icon_js_1.MEASURE_ICON.CHANNEL,
5032
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4333
5033
  measure: measures_js_1.MEASURE.ORDERS_CM3_PERCENT,
4334
5034
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
5035
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4335
5036
  valueType: measure_value_type_js_1.MeasureValueType.PERCENTAGE,
4336
5037
  decimalPlaces: 2,
4337
5038
  useCompactNotation: false,
4338
5039
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4339
- tooltip: 'What percentage of net revenue remains after all variable costs including advertising.',
5040
+ tooltip: 'What percentage of net revenue remains after marketing and ad spend.',
4340
5041
  formulaDisplay: '(CM3) ÷ (Net Revenue) × 100',
4341
5042
  formula: '((cm3) / (net_revenue)) * 100',
4342
5043
  },
@@ -4344,21 +5045,21 @@ exports.ORDERS_MEASURES_MAP = {
4344
5045
  priority: 13,
4345
5046
  title: 'New Customer Contribution Margin 3',
4346
5047
  shortTitle: 'NC CM3',
4347
- description: 'New customer CM2 minus ad spend.',
5048
+ description: 'New customer CM2 minus marketing costs.',
4348
5049
  sumPrefix: '$',
4349
5050
  sumSuffix: '',
4350
5051
  avgPrefix: '$',
4351
5052
  avgSuffix: '',
4352
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
5053
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4353
5054
  measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM3,
4354
5055
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
5056
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4355
5057
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
4356
5058
  decimalPlaces: 2,
4357
5059
  useCompactNotation: true,
4358
5060
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4359
- tooltip: 'Profit from new customers after subtracting all variable costs including advertising.',
4360
- formulaDisplay: '(NC CM2)(Ad Spend)',
4361
- formula: '(nc_cm2) - (nc_ad_spend)',
5061
+ tooltip: 'Profit from new customers after deducting marketing costs (ad spend plus user-defined marketing).',
5062
+ formulaDisplay: 'NC CM2 − NC Marketing Cost − NC Ad Spend',
4362
5063
  },
4363
5064
  [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM3_PERCENT]: {
4364
5065
  priority: 37,
@@ -4369,14 +5070,15 @@ exports.ORDERS_MEASURES_MAP = {
4369
5070
  sumSuffix: '%',
4370
5071
  avgPrefix: '',
4371
5072
  avgSuffix: '%',
4372
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
5073
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4373
5074
  measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM3_PERCENT,
4374
5075
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
5076
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4375
5077
  valueType: measure_value_type_js_1.MeasureValueType.PERCENTAGE,
4376
5078
  decimalPlaces: 2,
4377
5079
  useCompactNotation: false,
4378
5080
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4379
- tooltip: 'What percentage of new customer net revenue remains after all variable costs.',
5081
+ tooltip: 'What percentage of new customer net revenue remains after marketing and ad spend.',
4380
5082
  formulaDisplay: '(NC CM3) ÷ (NC Net Revenue) × 100',
4381
5083
  formula: '((nc_cm3) / (nc_net_revenue)) * 100',
4382
5084
  },
@@ -4384,21 +5086,21 @@ exports.ORDERS_MEASURES_MAP = {
4384
5086
  priority: 23,
4385
5087
  title: 'Returning Customer Contribution Margin 3',
4386
5088
  shortTitle: 'RC CM3',
4387
- description: 'Returning customer CM2 minus ad spend.',
5089
+ description: 'Returning customer CM2 minus marketing costs.',
4388
5090
  sumPrefix: '$',
4389
5091
  sumSuffix: '',
4390
5092
  avgPrefix: '$',
4391
5093
  avgSuffix: '',
4392
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
5094
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4393
5095
  measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM3,
4394
5096
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
5097
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4395
5098
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
4396
5099
  decimalPlaces: 2,
4397
5100
  useCompactNotation: true,
4398
5101
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4399
- tooltip: 'Profit from returning customers after subtracting all variable costs including advertising.',
4400
- formulaDisplay: '(RC CM2)(Ad Spend)',
4401
- formula: '(rc_cm2) - (rc_ad_spend)',
5102
+ tooltip: 'Profit from returning customers after deducting marketing costs (ad spend plus user-defined marketing).',
5103
+ formulaDisplay: 'RC CM2 − RC Marketing Cost − RC Ad Spend',
4402
5104
  },
4403
5105
  [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM3_PERCENT]: {
4404
5106
  priority: 41,
@@ -4409,14 +5111,15 @@ exports.ORDERS_MEASURES_MAP = {
4409
5111
  sumSuffix: '%',
4410
5112
  avgPrefix: '',
4411
5113
  avgSuffix: '%',
4412
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
5114
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4413
5115
  measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM3_PERCENT,
4414
5116
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
5117
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4415
5118
  valueType: measure_value_type_js_1.MeasureValueType.PERCENTAGE,
4416
5119
  decimalPlaces: 2,
4417
5120
  useCompactNotation: false,
4418
5121
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4419
- tooltip: 'What percentage of returning customer net revenue remains after all variable costs.',
5122
+ tooltip: 'What percentage of returning customer net revenue remains after marketing and ad spend.',
4420
5123
  formulaDisplay: '(RC CM3) ÷ (RC Net Revenue) × 100',
4421
5124
  formula: '((rc_cm3) / (rc_net_revenue)) * 100',
4422
5125
  },
@@ -4425,21 +5128,22 @@ exports.ORDERS_MEASURES_MAP = {
4425
5128
  hideFromUI: true,
4426
5129
  title: 'CM4 (Operating Profit)',
4427
5130
  shortTitle: 'CM4',
4428
- description: 'CM3 minus Fixed Costs. Your operating profit after all variable and fixed costs.',
5131
+ description: 'CM3 minus agency fees, opex, and other costs. Your operating profit.',
4429
5132
  sumPrefix: '$',
4430
5133
  sumSuffix: '',
4431
5134
  avgPrefix: '$',
4432
5135
  avgSuffix: '',
4433
- icon: measure_icon_js_1.MEASURE_ICON.CHANNEL,
5136
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4434
5137
  measure: measures_js_1.MEASURE.ORDERS_CM4,
4435
5138
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
5139
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4436
5140
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
4437
5141
  decimalPlaces: 2,
4438
5142
  useCompactNotation: true,
4439
5143
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4440
- tooltip: 'CM4 is your operating profit after all costs. Calculated as CM3 (profit after marketing) minus Fixed Costs (salaries, software, rent).',
4441
- formulaDisplay: '(CM3)(Fixed Costs)',
4442
- formula: '(cm3) - (fixed_costs)',
5144
+ tooltip: 'Operating profit after all costs. Calculated as CM3 minus agency fees, operating expenses, and other costs.',
5145
+ formulaDisplay: 'CM3 − Agency Fees − Opex − Other Cost',
5146
+ formula: 'cm3 - agency_fees_cost - opex_cost - other_cost',
4443
5147
  },
4444
5148
  [measures_js_1.MEASURE.ORDERS_CM4_PERCENT]: {
4445
5149
  priority: 34,
@@ -4451,36 +5155,36 @@ exports.ORDERS_MEASURES_MAP = {
4451
5155
  sumSuffix: '%',
4452
5156
  avgPrefix: '',
4453
5157
  avgSuffix: '%',
4454
- icon: measure_icon_js_1.MEASURE_ICON.CHANNEL,
5158
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4455
5159
  measure: measures_js_1.MEASURE.ORDERS_CM4_PERCENT,
4456
5160
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
5161
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4457
5162
  valueType: measure_value_type_js_1.MeasureValueType.PERCENTAGE,
4458
5163
  decimalPlaces: 2,
4459
5164
  useCompactNotation: false,
4460
5165
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4461
- tooltip: 'What percentage of net revenue becomes operating profit. The ultimate efficiency metric showing profitability after all variable and fixed costs.',
4462
- formulaDisplay: '((CM4) ÷ (Net Revenue)) × 100',
4463
- formula: '((cm4) / (net_revenue)) * 100',
5166
+ tooltip: 'What percentage of net revenue becomes operating profit after agency fees, opex, and other costs.',
5167
+ formulaDisplay: 'CM4 ÷ Net Revenue × 100',
4464
5168
  },
4465
5169
  [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM4]: {
4466
5170
  priority: 14,
4467
5171
  title: 'New Customer CM4 (Operating Profit)',
4468
5172
  shortTitle: 'NC CM4',
4469
- description: 'New customer CM3 minus Fixed Costs. Operating profit from new customer acquisitions.',
5173
+ description: 'New customer CM3 minus agency fees, opex, and other costs.',
4470
5174
  sumPrefix: '$',
4471
5175
  sumSuffix: '',
4472
5176
  avgPrefix: '$',
4473
5177
  avgSuffix: '',
4474
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
5178
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4475
5179
  measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM4,
4476
5180
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
5181
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4477
5182
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
4478
5183
  decimalPlaces: 2,
4479
5184
  useCompactNotation: true,
4480
5185
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4481
- tooltip: 'Operating profit from new customer acquisitions after all variable and fixed costs.',
4482
- formulaDisplay: '(NC CM3)(NC Fixed Costs)',
4483
- formula: '(nc_cm3) - (nc_fixed_costs)',
5186
+ tooltip: 'Operating profit from new customer acquisitions after agency fees, opex, and other costs.',
5187
+ formulaDisplay: 'NC CM3 − NC Agency Fees − NC Opex − NC Other Cost',
4484
5188
  hideFromUI: true,
4485
5189
  },
4486
5190
  [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM4_PERCENT]: {
@@ -4492,15 +5196,16 @@ exports.ORDERS_MEASURES_MAP = {
4492
5196
  sumSuffix: '%',
4493
5197
  avgPrefix: '',
4494
5198
  avgSuffix: '%',
4495
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
5199
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4496
5200
  measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM4_PERCENT,
4497
5201
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
5202
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4498
5203
  valueType: measure_value_type_js_1.MeasureValueType.PERCENTAGE,
4499
5204
  decimalPlaces: 2,
4500
5205
  useCompactNotation: false,
4501
5206
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4502
- tooltip: 'What percentage of new customer net revenue becomes operating profit after all costs.',
4503
- formulaDisplay: '((NC CM4) ÷ (NC Net Revenue)) × 100',
5207
+ tooltip: 'What percentage of new customer net revenue becomes operating profit after all overhead costs.',
5208
+ formulaDisplay: 'NC CM4 ÷ NC Net Revenue × 100',
4504
5209
  formula: '((nc_cm4) / (nc_net_revenue)) * 100',
4505
5210
  hideFromUI: true,
4506
5211
  },
@@ -4508,21 +5213,21 @@ exports.ORDERS_MEASURES_MAP = {
4508
5213
  priority: 24,
4509
5214
  title: 'Returning Customer CM4 (Operating Profit)',
4510
5215
  shortTitle: 'RC CM4',
4511
- description: 'Returning customer CM3 minus Fixed Costs. Operating profit from repeat purchases.',
5216
+ description: 'Returning customer CM3 minus agency fees, opex, and other costs.',
4512
5217
  sumPrefix: '$',
4513
5218
  sumSuffix: '',
4514
5219
  avgPrefix: '$',
4515
5220
  avgSuffix: '',
4516
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
5221
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4517
5222
  measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM4,
4518
5223
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
5224
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4519
5225
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
4520
5226
  decimalPlaces: 2,
4521
5227
  useCompactNotation: true,
4522
5228
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4523
- tooltip: 'Operating profit from returning customer orders after all variable and fixed costs.',
4524
- formulaDisplay: '(RC CM3)(RC Fixed Costs)',
4525
- formula: '(rc_cm3) - (rc_fixed_costs)',
5229
+ tooltip: 'Operating profit from returning customers after agency fees, opex, and other costs.',
5230
+ formulaDisplay: 'RC CM3 − RC Agency Fees − RC Opex − RC Other Cost',
4526
5231
  hideFromUI: true,
4527
5232
  },
4528
5233
  [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM4_PERCENT]: {
@@ -4534,15 +5239,16 @@ exports.ORDERS_MEASURES_MAP = {
4534
5239
  sumSuffix: '%',
4535
5240
  avgPrefix: '',
4536
5241
  avgSuffix: '%',
4537
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
5242
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4538
5243
  measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM4_PERCENT,
4539
- category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_AD_PERFORMANCE,
5244
+ category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
5245
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4540
5246
  valueType: measure_value_type_js_1.MeasureValueType.PERCENTAGE,
4541
5247
  decimalPlaces: 2,
4542
5248
  useCompactNotation: false,
4543
5249
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4544
- tooltip: 'What percentage of returning customer net revenue becomes operating profit after all costs.',
4545
- formulaDisplay: '((RC CM4) ÷ (RC Net Revenue)) × 100',
5250
+ tooltip: 'What percentage of returning customer net revenue becomes operating profit after all overhead costs.',
5251
+ formulaDisplay: 'RC CM4 ÷ RC Net Revenue × 100',
4546
5252
  formula: '((rc_cm4) / (rc_net_revenue)) * 100',
4547
5253
  hideFromUI: true,
4548
5254
  },
@@ -4550,39 +5256,41 @@ exports.ORDERS_MEASURES_MAP = {
4550
5256
  priority: 1,
4551
5257
  title: 'CM1 (Gross Margin)',
4552
5258
  shortTitle: 'CM1',
4553
- description: 'Net Revenue minus Effective COGS. Includes impact of returns/discounts.',
5259
+ description: 'Net Revenue minus Total COGS (product costs plus user-defined COGS).',
4554
5260
  sumPrefix: '$',
4555
5261
  sumSuffix: '',
4556
5262
  avgPrefix: '$',
4557
5263
  avgSuffix: '',
4558
- icon: measure_icon_js_1.MEASURE_ICON.CHANNEL,
5264
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4559
5265
  measure: measures_js_1.MEASURE.ORDERS_CM1,
4560
5266
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
5267
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4561
5268
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
4562
5269
  decimalPlaces: 2,
4563
5270
  useCompactNotation: true,
4564
5271
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4565
- tooltip: 'CM1 is the conservative gross margin calculation using Net Revenue (after returns/discounts) minus Effective COGS.',
4566
- formulaDisplay: '(Net Revenue) − (Effective COGS)',
4567
- formula: '(net_revenue) - (effective_cogs)',
5272
+ tooltip: 'Gross margin calculated as Net Revenue minus Total COGS (product variant costs plus user-defined COGS entries).',
5273
+ formulaDisplay: 'Net Revenue − (COGS + Other COGS)',
5274
+ formula: 'net_revenue - cogs - other_cogs',
4568
5275
  },
4569
5276
  [measures_js_1.MEASURE.ORDERS_CM1_PERCENT]: {
4570
5277
  priority: 31,
4571
5278
  title: 'CM1 % (Gross Margin %)',
4572
5279
  shortTitle: 'CM1 %',
4573
- description: 'CM1 as a percentage of Net Revenue. Includes impact of returns/discounts.',
5280
+ description: 'CM1 as a percentage of Net Revenue.',
4574
5281
  sumPrefix: '',
4575
5282
  sumSuffix: '%',
4576
5283
  avgPrefix: '',
4577
5284
  avgSuffix: '%',
4578
- icon: measure_icon_js_1.MEASURE_ICON.CHANNEL,
5285
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4579
5286
  measure: measures_js_1.MEASURE.ORDERS_CM1_PERCENT,
4580
5287
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
5288
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4581
5289
  valueType: measure_value_type_js_1.MeasureValueType.PERCENTAGE,
4582
5290
  decimalPlaces: 2,
4583
5291
  useCompactNotation: false,
4584
5292
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4585
- tooltip: 'CM1 as a percentage of Net Revenue. The conservative gross margin percentage calculation.',
5293
+ tooltip: 'Gross margin percentage. What percentage of net revenue remains after deducting total COGS.',
4586
5294
  formulaDisplay: '(CM1) ÷ (Net Revenue) × 100',
4587
5295
  formula: '((cm1) / (net_revenue)) * 100',
4588
5296
  },
@@ -4590,20 +5298,21 @@ exports.ORDERS_MEASURES_MAP = {
4590
5298
  priority: 11,
4591
5299
  title: 'New Customer CM1 (Gross Margin)',
4592
5300
  shortTitle: 'NC CM1',
4593
- description: 'New customer Net Revenue minus Effective COGS. Includes impact of returns/discounts.',
5301
+ description: 'New customer Net Revenue minus Total COGS. Includes impact of returns/discounts.',
4594
5302
  sumPrefix: '$',
4595
5303
  sumSuffix: '',
4596
5304
  avgPrefix: '$',
4597
5305
  avgSuffix: '',
4598
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
5306
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4599
5307
  measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM1,
4600
5308
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
5309
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4601
5310
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
4602
5311
  decimalPlaces: 2,
4603
5312
  useCompactNotation: true,
4604
5313
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4605
- tooltip: 'NC CM1 is the conservative gross margin for new customers using Net Revenue minus Effective COGS.',
4606
- formulaDisplay: '(NC Net Revenue) − (NC Effective COGS)',
5314
+ tooltip: 'NC CM1 is the conservative gross margin for new customers using Net Revenue minus Total COGS.',
5315
+ formulaDisplay: '(NC Net Revenue) − (NC Total COGS)',
4607
5316
  formula: '(nc_net_revenue) - (nc_effective_cogs)',
4608
5317
  },
4609
5318
  [measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM1_PERCENT]: {
@@ -4615,9 +5324,10 @@ exports.ORDERS_MEASURES_MAP = {
4615
5324
  sumSuffix: '%',
4616
5325
  avgPrefix: '',
4617
5326
  avgSuffix: '%',
4618
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
5327
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4619
5328
  measure: measures_js_1.MEASURE.ORDERS_NEW_CUSTOMER_CM1_PERCENT,
4620
5329
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
5330
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4621
5331
  valueType: measure_value_type_js_1.MeasureValueType.PERCENTAGE,
4622
5332
  decimalPlaces: 2,
4623
5333
  useCompactNotation: false,
@@ -4630,20 +5340,21 @@ exports.ORDERS_MEASURES_MAP = {
4630
5340
  priority: 21,
4631
5341
  title: 'Returning Customer CM1 (Gross Margin)',
4632
5342
  shortTitle: 'RC CM1',
4633
- description: 'Returning customer Net Revenue minus Effective COGS. Includes impact of returns/discounts.',
5343
+ description: 'Returning customer Net Revenue minus Total COGS. Includes impact of returns/discounts.',
4634
5344
  sumPrefix: '$',
4635
5345
  sumSuffix: '',
4636
5346
  avgPrefix: '$',
4637
5347
  avgSuffix: '',
4638
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
5348
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4639
5349
  measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM1,
4640
5350
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
5351
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4641
5352
  valueType: measure_value_type_js_1.MeasureValueType.CURRENCY,
4642
5353
  decimalPlaces: 2,
4643
5354
  useCompactNotation: true,
4644
5355
  applicableContexts: measure_applicable_contexts_js_1.STANDARD_APPLICABLE_CONTEXTS,
4645
- tooltip: 'RC CM1 is the conservative gross margin for returning customers using Net Revenue minus Effective COGS.',
4646
- formulaDisplay: '(RC Net Revenue) − (RC Effective COGS)',
5356
+ tooltip: 'RC CM1 is the conservative gross margin for returning customers using Net Revenue minus Total COGS.',
5357
+ formulaDisplay: '(RC Net Revenue) − (RC Total COGS)',
4647
5358
  formula: '(rc_net_revenue) - (rc_effective_cogs)',
4648
5359
  },
4649
5360
  [measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM1_PERCENT]: {
@@ -4655,9 +5366,10 @@ exports.ORDERS_MEASURES_MAP = {
4655
5366
  sumSuffix: '%',
4656
5367
  avgPrefix: '',
4657
5368
  avgSuffix: '%',
4658
- icon: measure_icon_js_1.MEASURE_ICON.SHOPIFY,
5369
+ icon: measure_icon_js_1.MEASURE_ICON.UPSTACK,
4659
5370
  measure: measures_js_1.MEASURE.ORDERS_RETURNING_CUSTOMER_CM1_PERCENT,
4660
5371
  category: measure_categories_js_1.MEASURE_CATEGORY.ORDERS_CONTRIBUTION_MARGIN,
5372
+ subcategory: measure_categories_js_1.MEASURE_SUBCATEGORY.ORDERS_CONTRIBUTION_MARGIN,
4661
5373
  valueType: measure_value_type_js_1.MeasureValueType.PERCENTAGE,
4662
5374
  decimalPlaces: 2,
4663
5375
  useCompactNotation: false,