@segment/action-destinations 3.31.0 → 3.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/destinations/amplitude/generated-types.d.ts +1 -0
- package/dist/destinations/amplitude/groupIdentifyUser/index.js +3 -2
- package/dist/destinations/amplitude/groupIdentifyUser/index.js.map +1 -1
- package/dist/destinations/amplitude/identifyUser/index.js +2 -1
- package/dist/destinations/amplitude/identifyUser/index.js.map +1 -1
- package/dist/destinations/amplitude/index.js +21 -2
- package/dist/destinations/amplitude/index.js.map +1 -1
- package/dist/destinations/amplitude/logEvent/index.js +2 -3
- package/dist/destinations/amplitude/logEvent/index.js.map +1 -1
- package/dist/destinations/amplitude/mapUser/index.js +2 -1
- package/dist/destinations/amplitude/mapUser/index.js.map +1 -1
- package/dist/destinations/amplitude/regional-endpoints.d.ts +32 -0
- package/dist/destinations/amplitude/regional-endpoints.js +39 -0
- package/dist/destinations/amplitude/regional-endpoints.js.map +1 -0
- package/dist/destinations/customerio/createUpdatePerson/index.js +11 -8
- package/dist/destinations/customerio/createUpdatePerson/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addPaymentInfo/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/addPaymentInfo/index.js +8 -138
- package/dist/destinations/google-analytics-4/addPaymentInfo/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addToCart/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/addToCart/index.js +6 -127
- package/dist/destinations/google-analytics-4/addToCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addToWishlist/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/addToWishlist/index.js +6 -125
- package/dist/destinations/google-analytics-4/addToWishlist/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/beginCheckout/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/beginCheckout/index.js +7 -138
- package/dist/destinations/google-analytics-4/beginCheckout/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/customEvent/index.js +6 -14
- package/dist/destinations/google-analytics-4/customEvent/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/ga4-properties.d.ts +17 -0
- package/dist/destinations/google-analytics-4/ga4-properties.js +276 -0
- package/dist/destinations/google-analytics-4/ga4-properties.js.map +1 -0
- package/dist/destinations/google-analytics-4/generateLead/index.js +4 -23
- package/dist/destinations/google-analytics-4/generateLead/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/login/index.js +2 -13
- package/dist/destinations/google-analytics-4/login/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/pageView/index.js +2 -13
- package/dist/destinations/google-analytics-4/pageView/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/purchase/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/purchase/index.js +11 -172
- package/dist/destinations/google-analytics-4/purchase/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/refund/index.js +9 -148
- package/dist/destinations/google-analytics-4/refund/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/removeFromCart/index.js +6 -125
- package/dist/destinations/google-analytics-4/removeFromCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/search/index.js +2 -13
- package/dist/destinations/google-analytics-4/search/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/selectItem/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/selectItem/index.js +4 -114
- package/dist/destinations/google-analytics-4/selectItem/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/selectPromotion/generated-types.d.ts +4 -4
- package/dist/destinations/google-analytics-4/selectPromotion/index.js +13 -145
- package/dist/destinations/google-analytics-4/selectPromotion/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/signUp/index.js +2 -13
- package/dist/destinations/google-analytics-4/signUp/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewCart/index.js +6 -125
- package/dist/destinations/google-analytics-4/viewCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewItem/generated-types.d.ts +1 -1
- package/dist/destinations/google-analytics-4/viewItem/index.js +6 -130
- package/dist/destinations/google-analytics-4/viewItem/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewItemList/index.js +4 -115
- package/dist/destinations/google-analytics-4/viewItemList/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewPromotion/generated-types.d.ts +4 -4
- package/dist/destinations/google-analytics-4/viewPromotion/index.js +13 -154
- package/dist/destinations/google-analytics-4/viewPromotion/index.js.map +1 -1
- package/dist/destinations/mixpanel/alias/generated-types.d.ts +1 -1
- package/dist/destinations/mixpanel/alias/index.js +6 -6
- package/dist/destinations/mixpanel/alias/index.js.map +1 -1
- package/dist/destinations/mixpanel/groupIdentifyUser/generated-types.d.ts +1 -0
- package/dist/destinations/mixpanel/groupIdentifyUser/index.js +14 -9
- package/dist/destinations/mixpanel/groupIdentifyUser/index.js.map +1 -1
- package/dist/destinations/mixpanel/identifyUser/generated-types.d.ts +1 -0
- package/dist/destinations/mixpanel/identifyUser/index.js +43 -10
- package/dist/destinations/mixpanel/identifyUser/index.js.map +1 -1
- package/dist/destinations/mixpanel/trackEvent/generated-types.d.ts +1 -0
- package/dist/destinations/mixpanel/trackEvent/index.js +9 -0
- package/dist/destinations/mixpanel/trackEvent/index.js.map +1 -1
- package/dist/destinations/mixpanel/trackEvent/types.d.ts +1 -0
- package/package.json +2 -2
|
@@ -2,24 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const actions_core_1 = require("@segment/actions-core");
|
|
4
4
|
const constants_1 = require("../constants");
|
|
5
|
+
const ga4_properties_1 = require("../ga4-properties");
|
|
5
6
|
const action = {
|
|
6
7
|
title: 'View Item List',
|
|
7
8
|
description: 'Send event when a user views a list of items or offerings',
|
|
8
9
|
defaultSubscription: 'type = "track" and event = "Product List Viewed"',
|
|
9
10
|
fields: {
|
|
10
|
-
client_id: {
|
|
11
|
-
label: 'Client ID',
|
|
12
|
-
description: 'Uniquely identifies a user instance of a web client.',
|
|
13
|
-
type: 'string',
|
|
14
|
-
required: true,
|
|
15
|
-
default: {
|
|
16
|
-
'@if': {
|
|
17
|
-
exists: { '@path': '$.userId' },
|
|
18
|
-
then: { '@path': '$.userId' },
|
|
19
|
-
else: { '@path': '$.anonymousId' }
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
11
|
+
client_id: { ...ga4_properties_1.client_id },
|
|
23
12
|
item_list_id: {
|
|
24
13
|
label: 'Item List ID',
|
|
25
14
|
type: 'string',
|
|
@@ -37,108 +26,8 @@ const action = {
|
|
|
37
26
|
}
|
|
38
27
|
},
|
|
39
28
|
items: {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
type: 'object',
|
|
43
|
-
multiple: true,
|
|
44
|
-
required: true,
|
|
45
|
-
properties: {
|
|
46
|
-
item_id: {
|
|
47
|
-
label: 'Product ID',
|
|
48
|
-
type: 'string',
|
|
49
|
-
description: 'Identifier for the product being purchased.'
|
|
50
|
-
},
|
|
51
|
-
item_name: {
|
|
52
|
-
label: 'Name',
|
|
53
|
-
type: 'string',
|
|
54
|
-
description: 'Name of the product being purchased.'
|
|
55
|
-
},
|
|
56
|
-
affiliation: {
|
|
57
|
-
label: 'Affiliation',
|
|
58
|
-
type: 'string',
|
|
59
|
-
description: 'A product affiliation to designate a supplying company or brick and mortar store location.'
|
|
60
|
-
},
|
|
61
|
-
coupon: {
|
|
62
|
-
label: 'Coupon',
|
|
63
|
-
type: 'string',
|
|
64
|
-
description: 'Coupon code used for a purchase.'
|
|
65
|
-
},
|
|
66
|
-
currency: {
|
|
67
|
-
label: 'Currency',
|
|
68
|
-
type: 'string',
|
|
69
|
-
description: 'Currency of the purchase or items associated with the event, in 3-letter ISO 4217 format.'
|
|
70
|
-
},
|
|
71
|
-
discount: {
|
|
72
|
-
label: 'Discount',
|
|
73
|
-
type: 'number',
|
|
74
|
-
description: 'Monetary value of discount associated with a purchase.'
|
|
75
|
-
},
|
|
76
|
-
index: {
|
|
77
|
-
label: 'Index',
|
|
78
|
-
type: 'number',
|
|
79
|
-
description: 'The index/position of the item in a list.'
|
|
80
|
-
},
|
|
81
|
-
item_brand: {
|
|
82
|
-
label: 'Brand',
|
|
83
|
-
type: 'string',
|
|
84
|
-
description: 'Brand associated with the product.'
|
|
85
|
-
},
|
|
86
|
-
item_category: {
|
|
87
|
-
label: 'Category',
|
|
88
|
-
type: 'string',
|
|
89
|
-
description: 'The category of the item.'
|
|
90
|
-
},
|
|
91
|
-
item_category2: {
|
|
92
|
-
label: 'Category 2',
|
|
93
|
-
type: 'string',
|
|
94
|
-
description: 'The second category hierarchy or additional taxonomy for the item.'
|
|
95
|
-
},
|
|
96
|
-
item_category3: {
|
|
97
|
-
label: 'Category 3',
|
|
98
|
-
type: 'string',
|
|
99
|
-
description: 'The third category hierarchy or additional taxonomy for the item.'
|
|
100
|
-
},
|
|
101
|
-
item_category4: {
|
|
102
|
-
label: 'Category 4',
|
|
103
|
-
type: 'string',
|
|
104
|
-
description: 'The fourth category hierarchy or additional taxonomy for the item.'
|
|
105
|
-
},
|
|
106
|
-
item_category5: {
|
|
107
|
-
label: 'Category 5',
|
|
108
|
-
type: 'string',
|
|
109
|
-
description: 'The fifth category hierarchy or additional taxonomy for the item.'
|
|
110
|
-
},
|
|
111
|
-
item_list_id: {
|
|
112
|
-
label: 'Item List ID',
|
|
113
|
-
type: 'string',
|
|
114
|
-
description: 'The ID of the list in which the item was presented to the user.'
|
|
115
|
-
},
|
|
116
|
-
item_list_name: {
|
|
117
|
-
label: 'Item List Name',
|
|
118
|
-
type: 'string',
|
|
119
|
-
description: 'The name of the list in which the item was presented to the user.'
|
|
120
|
-
},
|
|
121
|
-
item_variant: {
|
|
122
|
-
label: 'Variant',
|
|
123
|
-
type: 'string',
|
|
124
|
-
description: 'Variant of the product (e.g. Black).'
|
|
125
|
-
},
|
|
126
|
-
location_id: {
|
|
127
|
-
label: 'Location ID',
|
|
128
|
-
type: 'string',
|
|
129
|
-
description: 'The location associated with the item.'
|
|
130
|
-
},
|
|
131
|
-
price: {
|
|
132
|
-
label: 'Price',
|
|
133
|
-
type: 'number',
|
|
134
|
-
description: 'Price of the product being purchased, in units of the specified currency parameter.'
|
|
135
|
-
},
|
|
136
|
-
quantity: {
|
|
137
|
-
label: 'Quantity',
|
|
138
|
-
type: 'number',
|
|
139
|
-
description: 'Item Quantity'
|
|
140
|
-
}
|
|
141
|
-
}
|
|
29
|
+
...ga4_properties_1.items_multi_products,
|
|
30
|
+
required: true
|
|
142
31
|
}
|
|
143
32
|
},
|
|
144
33
|
perform: (request, { payload }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/viewItemList/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,4CAAiD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/viewItemList/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,4CAAiD;AACjD,sDAAmE;AASnE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,2DAA2D;IACxE,mBAAmB,EAAE,kDAAkD;IACvE,MAAM,EAAE;QACN,SAAS,EAAE,EAAE,GAAG,0BAAS,EAAE;QAC3B,YAAY,EAAE;YACZ,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iEAAiE;YAC9E,OAAO,EAAE;gBACP,OAAO,EAAE,sBAAsB;aAChC;SACF;QACD,cAAc,EAAE;YACd,KAAK,EAAE,gBAAgB;YACvB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,mEAAmE;YAChF,OAAO,EAAE;gBACP,OAAO,EAAE,uBAAuB;aACjC;SACF;QACD,KAAK,EAAE;YACL,GAAG,qCAAoB;YACvB,QAAQ,EAAE,IAAI;SACf;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAChC,IAAI,WAAW,GAAkB,EAAE,CAAA;QAEnC,IAAI,OAAO,CAAC,KAAK,EAAE;YACjB,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;gBAC1C,IAAI,OAAO,CAAC,SAAS,KAAK,SAAS,IAAI,OAAO,CAAC,OAAO,KAAK,SAAS,EAAE;oBACpE,MAAM,IAAI,+BAAgB,CACxB,+EAA+E,EAC/E,8BAA8B,EAC9B,GAAG,CACJ,CAAA;iBACF;gBAED,IAAI,OAAO,CAAC,QAAQ,IAAI,CAAC,8BAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;oBACtE,MAAM,IAAI,+BAAgB,CAAC,GAAG,OAAO,CAAC,QAAQ,gCAAgC,EAAE,wBAAwB,EAAE,GAAG,CAAC,CAAA;iBAC/G;gBAED,OAAO,OAAsB,CAAA;YAC/B,CAAC,CAAC,CAAA;SACH;QAED,OAAO,OAAO,CAAC,6CAA6C,EAAE;YAC5D,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,gBAAgB;wBACtB,MAAM,EAAE;4BACN,YAAY,EAAE,OAAO,CAAC,YAAY;4BAClC,cAAc,EAAE,OAAO,CAAC,cAAc;4BACtC,KAAK,EAAE,WAAW;yBACnB;qBACF;iBACF;aACF;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -11,8 +11,6 @@ export interface Payload {
|
|
|
11
11
|
affiliation?: string;
|
|
12
12
|
coupon?: string;
|
|
13
13
|
currency?: string;
|
|
14
|
-
creative_name?: string;
|
|
15
|
-
creative_slot?: string;
|
|
16
14
|
discount?: number;
|
|
17
15
|
index?: number;
|
|
18
16
|
item_brand?: string;
|
|
@@ -26,8 +24,10 @@ export interface Payload {
|
|
|
26
24
|
item_variant?: string;
|
|
27
25
|
location_id?: string;
|
|
28
26
|
price?: number;
|
|
29
|
-
promotion_id?: string;
|
|
30
|
-
promotion_name?: string;
|
|
31
27
|
quantity?: number;
|
|
28
|
+
creative_name?: string;
|
|
29
|
+
creative_slot?: string;
|
|
30
|
+
promotion_name?: string;
|
|
31
|
+
promotion_id?: string;
|
|
32
32
|
}[];
|
|
33
33
|
}
|
|
@@ -2,37 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const actions_core_1 = require("@segment/actions-core");
|
|
4
4
|
const constants_1 = require("../constants");
|
|
5
|
+
const ga4_properties_1 = require("../ga4-properties");
|
|
5
6
|
const action = {
|
|
6
7
|
title: 'View Promotion',
|
|
7
8
|
description: 'Send event when a promotion is shown to a user',
|
|
8
9
|
defaultSubscription: 'type = "track" and event = "Promotion Viewed"',
|
|
9
10
|
fields: {
|
|
10
|
-
client_id: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
type: 'string',
|
|
14
|
-
required: true,
|
|
15
|
-
default: {
|
|
16
|
-
'@if': {
|
|
17
|
-
exists: { '@path': '$.userId' },
|
|
18
|
-
then: { '@path': '$.userId' },
|
|
19
|
-
else: { '@path': '$.anonymousId' }
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
creative_name: {
|
|
24
|
-
label: 'Creative Name',
|
|
25
|
-
type: 'string',
|
|
26
|
-
description: 'The name of the promotional creative.'
|
|
27
|
-
},
|
|
28
|
-
creative_slot: {
|
|
29
|
-
label: 'Creative Slot',
|
|
30
|
-
type: 'string',
|
|
31
|
-
description: 'The name of the promotional creative slot associated with the event.',
|
|
32
|
-
default: {
|
|
33
|
-
'@path': '$.properties.creative'
|
|
34
|
-
}
|
|
35
|
-
},
|
|
11
|
+
client_id: { ...ga4_properties_1.client_id },
|
|
12
|
+
creative_name: { ...ga4_properties_1.creative_name },
|
|
13
|
+
creative_slot: { ...ga4_properties_1.creative_slot, default: { '@path': '$.properties.creative' } },
|
|
36
14
|
location_id: {
|
|
37
15
|
label: 'Location ID',
|
|
38
16
|
type: 'string',
|
|
@@ -41,143 +19,24 @@ const action = {
|
|
|
41
19
|
'@path': '$.properties.position'
|
|
42
20
|
}
|
|
43
21
|
},
|
|
44
|
-
promotion_id: {
|
|
45
|
-
|
|
46
|
-
type: 'string',
|
|
47
|
-
description: 'The ID of the promotion associated with the event.',
|
|
48
|
-
default: {
|
|
49
|
-
'@path': '$.properties.promotion_id'
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
promotion_name: {
|
|
53
|
-
label: 'Promotion Name',
|
|
54
|
-
type: 'string',
|
|
55
|
-
description: 'The name of the promotion associated with the event.',
|
|
56
|
-
default: {
|
|
57
|
-
'@path': '$.properties.name'
|
|
58
|
-
}
|
|
59
|
-
},
|
|
22
|
+
promotion_id: { ...ga4_properties_1.promotion_id, default: { '@path': '$.properties.promotion_id' } },
|
|
23
|
+
promotion_name: { ...ga4_properties_1.promotion_name, default: { '@path': '$.properties.name' } },
|
|
60
24
|
items: {
|
|
61
|
-
|
|
62
|
-
description: 'The list of products in the event.',
|
|
63
|
-
type: 'object',
|
|
64
|
-
multiple: true,
|
|
25
|
+
...ga4_properties_1.items_single_products,
|
|
65
26
|
required: true,
|
|
66
27
|
properties: {
|
|
67
|
-
|
|
68
|
-
label: 'Product ID',
|
|
69
|
-
type: 'string',
|
|
70
|
-
description: 'Identifier for the product being purchased.'
|
|
71
|
-
},
|
|
72
|
-
item_name: {
|
|
73
|
-
label: 'Name',
|
|
74
|
-
type: 'string',
|
|
75
|
-
description: 'Name of the product being purchased.'
|
|
76
|
-
},
|
|
77
|
-
affiliation: {
|
|
78
|
-
label: 'Affiliation',
|
|
79
|
-
type: 'string',
|
|
80
|
-
description: 'A product affiliation to designate a supplying company or brick and mortar store location.'
|
|
81
|
-
},
|
|
82
|
-
coupon: {
|
|
83
|
-
label: 'Coupon',
|
|
84
|
-
type: 'string',
|
|
85
|
-
description: 'Coupon code used for a purchase.'
|
|
86
|
-
},
|
|
87
|
-
currency: {
|
|
88
|
-
label: 'Currency',
|
|
89
|
-
type: 'string',
|
|
90
|
-
description: 'Currency of the purchase or items associated with the event, in 3-letter ISO 4217 format.'
|
|
91
|
-
},
|
|
28
|
+
...ga4_properties_1.minimal_items.properties,
|
|
92
29
|
creative_name: {
|
|
93
|
-
|
|
94
|
-
type: 'string',
|
|
95
|
-
description: 'The name of the promotional creative.'
|
|
30
|
+
...ga4_properties_1.creative_name
|
|
96
31
|
},
|
|
97
32
|
creative_slot: {
|
|
98
|
-
|
|
99
|
-
type: 'string',
|
|
100
|
-
description: 'The name of the promotional creative slot associated with the item.'
|
|
101
|
-
},
|
|
102
|
-
discount: {
|
|
103
|
-
label: 'Discount',
|
|
104
|
-
type: 'number',
|
|
105
|
-
description: 'Monetary value of discount associated with a purchase.'
|
|
106
|
-
},
|
|
107
|
-
index: {
|
|
108
|
-
label: 'Index',
|
|
109
|
-
type: 'number',
|
|
110
|
-
description: 'The index/position of the item in a list.'
|
|
111
|
-
},
|
|
112
|
-
item_brand: {
|
|
113
|
-
label: 'Brand',
|
|
114
|
-
type: 'string',
|
|
115
|
-
description: 'Brand associated with the product.'
|
|
116
|
-
},
|
|
117
|
-
item_category: {
|
|
118
|
-
label: 'Category',
|
|
119
|
-
type: 'string',
|
|
120
|
-
description: 'The category of the item.'
|
|
121
|
-
},
|
|
122
|
-
item_category2: {
|
|
123
|
-
label: 'Category 2',
|
|
124
|
-
type: 'string',
|
|
125
|
-
description: 'The second category hierarchy or additional taxonomy for the item.'
|
|
126
|
-
},
|
|
127
|
-
item_category3: {
|
|
128
|
-
label: 'Category 3',
|
|
129
|
-
type: 'string',
|
|
130
|
-
description: 'The third category hierarchy or additional taxonomy for the item.'
|
|
131
|
-
},
|
|
132
|
-
item_category4: {
|
|
133
|
-
label: 'Category 4',
|
|
134
|
-
type: 'string',
|
|
135
|
-
description: 'The fourth category hierarchy or additional taxonomy for the item.'
|
|
136
|
-
},
|
|
137
|
-
item_category5: {
|
|
138
|
-
label: 'Category 5',
|
|
139
|
-
type: 'string',
|
|
140
|
-
description: 'The fifth category hierarchy or additional taxonomy for the item.'
|
|
141
|
-
},
|
|
142
|
-
item_list_id: {
|
|
143
|
-
label: 'Item List ID',
|
|
144
|
-
type: 'string',
|
|
145
|
-
description: 'The ID of the list in which the item was presented to the user.'
|
|
146
|
-
},
|
|
147
|
-
item_list_name: {
|
|
148
|
-
label: 'Item List Name',
|
|
149
|
-
type: 'string',
|
|
150
|
-
description: 'The name of the list in which the item was presented to the user.'
|
|
151
|
-
},
|
|
152
|
-
item_variant: {
|
|
153
|
-
label: 'Variant',
|
|
154
|
-
type: 'string',
|
|
155
|
-
description: 'Variant of the product (e.g. Black).'
|
|
156
|
-
},
|
|
157
|
-
location_id: {
|
|
158
|
-
label: 'Location ID',
|
|
159
|
-
type: 'string',
|
|
160
|
-
description: 'The location associated with the item.'
|
|
161
|
-
},
|
|
162
|
-
price: {
|
|
163
|
-
label: 'Price',
|
|
164
|
-
type: 'number',
|
|
165
|
-
description: 'Price of the product being purchased, in units of the specified currency parameter.'
|
|
166
|
-
},
|
|
167
|
-
promotion_id: {
|
|
168
|
-
label: 'Promotion ID',
|
|
169
|
-
type: 'string',
|
|
170
|
-
description: 'The ID of the promotion associated with the item.'
|
|
33
|
+
...ga4_properties_1.creative_slot
|
|
171
34
|
},
|
|
172
35
|
promotion_name: {
|
|
173
|
-
|
|
174
|
-
type: 'string',
|
|
175
|
-
description: 'The name of the promotion associated with the item.'
|
|
36
|
+
...ga4_properties_1.promotion_name
|
|
176
37
|
},
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
type: 'number',
|
|
180
|
-
description: 'Item Quantity'
|
|
38
|
+
promotion_id: {
|
|
39
|
+
...ga4_properties_1.promotion_id
|
|
181
40
|
}
|
|
182
41
|
}
|
|
183
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/viewPromotion/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,4CAAiD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/viewPromotion/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,4CAAiD;AACjD,sDAQ0B;AAS1B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,gDAAgD;IAC7D,mBAAmB,EAAE,+CAA+C;IACpE,MAAM,EAAE;QACN,SAAS,EAAE,EAAE,GAAG,0BAAS,EAAE;QAC3B,aAAa,EAAE,EAAE,GAAG,8BAAa,EAAE;QACnC,aAAa,EAAE,EAAE,GAAG,8BAAa,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,uBAAuB,EAAE,EAAE;QAClF,WAAW,EAAE;YACX,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,yBAAyB;YACtC,OAAO,EAAE;gBACP,OAAO,EAAE,uBAAuB;aACjC;SACF;QACD,YAAY,EAAE,EAAE,GAAG,6BAAY,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE,EAAE;QACpF,cAAc,EAAE,EAAE,GAAG,+BAAc,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE,EAAE;QAChF,KAAK,EAAE;YACL,GAAG,sCAAqB;YACxB,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE;gBACV,GAAG,8BAAa,CAAC,UAAU;gBAC3B,aAAa,EAAE;oBACb,GAAG,8BAAa;iBACjB;gBACD,aAAa,EAAE;oBACb,GAAG,8BAAa;iBACjB;gBACD,cAAc,EAAE;oBACd,GAAG,+BAAc;iBAClB;gBACD,YAAY,EAAE;oBACZ,GAAG,6BAAY;iBAChB;aACF;SACF;KACF;IAED,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAChC,IAAI,WAAW,GAA2B,EAAE,CAAA;QAE5C,IAAI,OAAO,CAAC,KAAK,EAAE;YACjB,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;gBAC1C,IAAI,OAAO,CAAC,SAAS,KAAK,SAAS,IAAI,OAAO,CAAC,OAAO,KAAK,SAAS,EAAE;oBACpE,MAAM,IAAI,+BAAgB,CAAC,0CAA0C,EAAE,8BAA8B,EAAE,GAAG,CAAC,CAAA;iBAC5G;gBAED,IAAI,OAAO,CAAC,QAAQ,IAAI,CAAC,8BAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;oBACtE,MAAM,IAAI,+BAAgB,CAAC,GAAG,OAAO,CAAC,QAAQ,gCAAgC,EAAE,wBAAwB,EAAE,GAAG,CAAC,CAAA;iBAC/G;gBAED,OAAO,OAA+B,CAAA;YACxC,CAAC,CAAC,CAAA;SACH;QAED,OAAO,OAAO,CAAC,6CAA6C,EAAE;YAC5D,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,gBAAgB;wBACtB,MAAM,EAAE;4BACN,aAAa,EAAE,OAAO,CAAC,aAAa;4BACpC,aAAa,EAAE,OAAO,CAAC,aAAa;4BACpC,WAAW,EAAE,OAAO,CAAC,WAAW;4BAChC,YAAY,EAAE,OAAO,CAAC,YAAY;4BAClC,cAAc,EAAE,OAAO,CAAC,cAAc;4BACtC,KAAK,EAAE,WAAW;yBACnB;qBACF;iBACF;aACF;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -8,7 +8,7 @@ const action = {
|
|
|
8
8
|
label: 'Alias',
|
|
9
9
|
type: 'string',
|
|
10
10
|
allowNull: true,
|
|
11
|
-
description: '
|
|
11
|
+
description: 'A new distinct id to be merged with the original distinct id. Each alias can only map to one distinct id.',
|
|
12
12
|
default: {
|
|
13
13
|
'@if': {
|
|
14
14
|
exists: { '@path': '$.userId' },
|
|
@@ -17,10 +17,10 @@ const action = {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
|
|
21
|
-
label: '
|
|
20
|
+
distinct_id: {
|
|
21
|
+
label: 'Distinct ID',
|
|
22
22
|
type: 'string',
|
|
23
|
-
description: '
|
|
23
|
+
description: 'A distinct id to be merged with the alias.',
|
|
24
24
|
default: {
|
|
25
25
|
'@path': '$.previousId'
|
|
26
26
|
}
|
|
@@ -30,12 +30,12 @@ const action = {
|
|
|
30
30
|
const data = {
|
|
31
31
|
event: '$create_alias',
|
|
32
32
|
properties: {
|
|
33
|
-
distinct_id: payload.
|
|
33
|
+
distinct_id: payload.distinct_id,
|
|
34
34
|
alias: payload.alias,
|
|
35
35
|
token: settings.projectToken
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
return request('https://api.mixpanel.com/track
|
|
38
|
+
return request('https://api.mixpanel.com/track', {
|
|
39
39
|
method: 'post',
|
|
40
40
|
body: new URLSearchParams({ data: JSON.stringify(data) })
|
|
41
41
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/mixpanel/alias/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,kCAAkC;IAC/C,MAAM,EAAE;QACN,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,IAAI;YACf,WAAW,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/mixpanel/alias/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,kCAAkC;IAC/C,MAAM,EAAE;QACN,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,IAAI;YACf,WAAW,EACT,2GAA2G;YAC7G,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;oBAC/B,IAAI,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;oBAC7B,IAAI,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE;iBACnC;aACF;SACF;QACD,WAAW,EAAE;YACX,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4CAA4C;YACzD,OAAO,EAAE;gBACP,OAAO,EAAE,cAAc;aACxB;SACF;KACF;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAChD,MAAM,IAAI,GAAG;YACX,KAAK,EAAE,eAAe;YACtB,UAAU,EAAE;gBACV,WAAW,EAAE,OAAO,CAAC,WAAW;gBAChC,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,KAAK,EAAE,QAAQ,CAAC,YAAY;aAC7B;SACF,CAAA;QAED,OAAO,OAAO,CAAC,gCAAgC,EAAE;YAC/C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI,eAAe,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;SAC1D,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -6,36 +6,41 @@ const action = {
|
|
|
6
6
|
description: 'Updates or adds properties to a group profile. The profile is created if it does not exist.',
|
|
7
7
|
defaultSubscription: 'type = "group"',
|
|
8
8
|
fields: {
|
|
9
|
+
group_id: {
|
|
10
|
+
label: 'Group ID',
|
|
11
|
+
type: 'string',
|
|
12
|
+
description: 'The unique identifier of the group.',
|
|
13
|
+
default: {
|
|
14
|
+
'@path': '$.groupId'
|
|
15
|
+
}
|
|
16
|
+
},
|
|
9
17
|
group_key: {
|
|
10
18
|
label: 'Group Key',
|
|
11
19
|
type: 'string',
|
|
12
|
-
description: 'The group key. If this is not
|
|
13
|
-
default: 'name'
|
|
20
|
+
description: 'The group key you specified in Mixpanel under Project settings. If this is not specified, this is defaulted to "$group_id".'
|
|
14
21
|
},
|
|
15
22
|
traits: {
|
|
16
23
|
label: 'Group Properties',
|
|
17
24
|
type: 'object',
|
|
18
|
-
description: '
|
|
25
|
+
description: 'The properties to set on the group profile.',
|
|
19
26
|
default: {
|
|
20
27
|
'@path': '$.traits'
|
|
21
28
|
}
|
|
22
29
|
}
|
|
23
30
|
},
|
|
24
31
|
perform: (request, { payload, settings }) => {
|
|
25
|
-
const group_key = payload.group_key || '
|
|
32
|
+
const group_key = payload.group_key || '$group_id';
|
|
26
33
|
if (!payload.traits) {
|
|
27
34
|
throw new actions_core_1.IntegrationError('"traits" is a required field', 'Missing required fields');
|
|
28
35
|
}
|
|
29
|
-
|
|
30
|
-
throw new actions_core_1.IntegrationError('Group traits does not include proper group key', 'Misconfigured required field');
|
|
31
|
-
}
|
|
36
|
+
const group_id = payload.traits[group_key] || payload.group_id;
|
|
32
37
|
const data = {
|
|
33
38
|
$token: settings.projectToken,
|
|
34
39
|
$group_key: group_key,
|
|
35
|
-
$group_id:
|
|
40
|
+
$group_id: group_id,
|
|
36
41
|
$set: payload.traits
|
|
37
42
|
};
|
|
38
|
-
return request('https://api.mixpanel.com/groups
|
|
43
|
+
return request('https://api.mixpanel.com/groups', {
|
|
39
44
|
method: 'post',
|
|
40
45
|
body: new URLSearchParams({ data: JSON.stringify(data) })
|
|
41
46
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/mixpanel/groupIdentifyUser/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAI1E,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,6FAA6F;IAC1G,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/mixpanel/groupIdentifyUser/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAI1E,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,6FAA6F;IAC1G,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,QAAQ,EAAE;YACR,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,qCAAqC;YAClD,OAAO,EAAE;gBACP,OAAO,EAAE,WAAW;aACrB;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,6HAA6H;SAChI;QACD,MAAM,EAAE;YACN,KAAK,EAAE,kBAAkB;YACzB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,6CAA6C;YAC1D,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,WAAW,CAAA;QAClD,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;YACnB,MAAM,IAAI,+BAAgB,CAAC,8BAA8B,EAAE,yBAAyB,CAAC,CAAA;SACtF;QAMD,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAA;QAE9D,MAAM,IAAI,GAAG;YACX,MAAM,EAAE,QAAQ,CAAC,YAAY;YAC7B,UAAU,EAAE,SAAS;YACrB,SAAS,EAAE,QAAQ;YACnB,IAAI,EAAE,OAAO,CAAC,MAAM;SACrB,CAAA;QAED,OAAO,OAAO,CAAC,iCAAiC,EAAE;YAChD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI,eAAe,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;SAC1D,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
3
4
|
const action = {
|
|
4
5
|
title: 'Identify User',
|
|
5
6
|
description: 'Set the user ID for a particular device ID or update user properties',
|
|
@@ -14,6 +15,15 @@ const action = {
|
|
|
14
15
|
'@path': '$.userId'
|
|
15
16
|
}
|
|
16
17
|
},
|
|
18
|
+
anonymous_id: {
|
|
19
|
+
label: 'Anonymous ID',
|
|
20
|
+
type: 'string',
|
|
21
|
+
allowNull: true,
|
|
22
|
+
description: 'The generated anonymous ID for the user',
|
|
23
|
+
default: {
|
|
24
|
+
'@path': '$.anonymousId'
|
|
25
|
+
}
|
|
26
|
+
},
|
|
17
27
|
traits: {
|
|
18
28
|
label: 'User Properties',
|
|
19
29
|
type: 'object',
|
|
@@ -23,16 +33,39 @@ const action = {
|
|
|
23
33
|
}
|
|
24
34
|
}
|
|
25
35
|
},
|
|
26
|
-
perform: (request, { payload, settings }) => {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
perform: async (request, { payload, settings }) => {
|
|
37
|
+
if (!settings.projectToken) {
|
|
38
|
+
throw new actions_core_1.IntegrationError('Missing project token');
|
|
39
|
+
}
|
|
40
|
+
const responses = [];
|
|
41
|
+
if (payload.anonymous_id) {
|
|
42
|
+
const identifyEvent = {
|
|
43
|
+
event: '$identify',
|
|
44
|
+
properties: {
|
|
45
|
+
$identified_id: payload.user_id,
|
|
46
|
+
$anon_id: payload.anonymous_id,
|
|
47
|
+
token: settings.projectToken
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
const identifyResponse = await request('https://api.mixpanel.com/track', {
|
|
51
|
+
method: 'post',
|
|
52
|
+
body: new URLSearchParams({ data: JSON.stringify(identifyEvent) })
|
|
53
|
+
});
|
|
54
|
+
responses.push(identifyResponse);
|
|
55
|
+
}
|
|
56
|
+
if (payload.traits && Object.keys(payload.traits).length > 0) {
|
|
57
|
+
const data = {
|
|
58
|
+
$token: settings.projectToken,
|
|
59
|
+
$distinct_id: payload.user_id,
|
|
60
|
+
$set: payload.traits
|
|
61
|
+
};
|
|
62
|
+
const engageResponse = request('https://api.mixpanel.com/engage', {
|
|
63
|
+
method: 'post',
|
|
64
|
+
body: new URLSearchParams({ data: JSON.stringify(data) })
|
|
65
|
+
});
|
|
66
|
+
responses.push(engageResponse);
|
|
67
|
+
}
|
|
68
|
+
return Promise.all(responses);
|
|
36
69
|
}
|
|
37
70
|
};
|
|
38
71
|
exports.default = action;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/mixpanel/identifyUser/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/mixpanel/identifyUser/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAI1E,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,sEAAsE;IACnF,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,IAAI;YACf,WAAW,EAAE,uCAAuC;YACpD,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,IAAI;YACf,WAAW,EAAE,yCAAyC;YACtD,OAAO,EAAE;gBACP,OAAO,EAAE,eAAe;aACzB;SACF;QACD,MAAM,EAAE;YACN,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uCAAuC;YACpD,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;KACF;IAED,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAChD,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE;YAC1B,MAAM,IAAI,+BAAgB,CAAC,uBAAuB,CAAC,CAAA;SACpD;QACD,MAAM,SAAS,GAAG,EAAE,CAAA;QACpB,IAAI,OAAO,CAAC,YAAY,EAAE;YACxB,MAAM,aAAa,GAAG;gBACpB,KAAK,EAAE,WAAW;gBAClB,UAAU,EAAE;oBACV,cAAc,EAAE,OAAO,CAAC,OAAO;oBAC/B,QAAQ,EAAE,OAAO,CAAC,YAAY;oBAC9B,KAAK,EAAE,QAAQ,CAAC,YAAY;iBAC7B;aACF,CAAA;YAED,MAAM,gBAAgB,GAAG,MAAM,OAAO,CAAC,gCAAgC,EAAE;gBACvE,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,IAAI,eAAe,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,CAAC;aACnE,CAAC,CAAA;YACF,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;SACjC;QAED,IAAI,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAC5D,MAAM,IAAI,GAAG;gBACX,MAAM,EAAE,QAAQ,CAAC,YAAY;gBAC7B,YAAY,EAAE,OAAO,CAAC,OAAO;gBAC7B,IAAI,EAAE,OAAO,CAAC,MAAM;aACrB,CAAA;YAED,MAAM,cAAc,GAAG,OAAO,CAAC,iCAAiC,EAAE;gBAChE,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,IAAI,eAAe,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;aAC1D,CAAC,CAAA;YACF,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;SAC/B;QACD,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;IAC/B,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -316,6 +316,14 @@ const action = {
|
|
|
316
316
|
default: {
|
|
317
317
|
'@path': '$.context.userAgent'
|
|
318
318
|
}
|
|
319
|
+
},
|
|
320
|
+
group_id: {
|
|
321
|
+
label: 'Group ID',
|
|
322
|
+
type: 'string',
|
|
323
|
+
description: 'The unique identifier of the group that performed this event.',
|
|
324
|
+
default: {
|
|
325
|
+
'@path': '$.context.groupId'
|
|
326
|
+
}
|
|
319
327
|
}
|
|
320
328
|
},
|
|
321
329
|
perform: async (request, { payload, settings }) => {
|
|
@@ -348,6 +356,7 @@ const action = {
|
|
|
348
356
|
$device_id: payload.device_id,
|
|
349
357
|
$device_type: payload.device_type,
|
|
350
358
|
$device_name: payload.device_name,
|
|
359
|
+
$group_id: payload.group_id,
|
|
351
360
|
$insert_id: utils_1.cheapGuid(),
|
|
352
361
|
$ios_ifa: payload.idfa,
|
|
353
362
|
$lib_version: payload.library_version,
|