@segment/action-destinations 3.77.1-alpha.4 → 3.78.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/index.js +2 -10
- package/dist/destinations/amplitude/index.js.map +1 -1
- package/dist/destinations/amplitude/logEvent/generated-types.d.ts +1 -0
- package/dist/destinations/amplitude/logEvent/index.d.ts +1 -1
- package/dist/destinations/amplitude/logEvent/index.js +30 -1
- package/dist/destinations/amplitude/logEvent/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addPaymentInfo/generated-types.d.ts +0 -1
- package/dist/destinations/google-analytics-4/addPaymentInfo/index.js +20 -5
- package/dist/destinations/google-analytics-4/addPaymentInfo/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addToCart/generated-types.d.ts +0 -1
- package/dist/destinations/google-analytics-4/addToCart/index.js +15 -4
- package/dist/destinations/google-analytics-4/addToCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addToWishlist/generated-types.d.ts +0 -1
- package/dist/destinations/google-analytics-4/addToWishlist/index.js +21 -5
- package/dist/destinations/google-analytics-4/addToWishlist/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/beginCheckout/generated-types.d.ts +0 -1
- package/dist/destinations/google-analytics-4/beginCheckout/index.js +15 -4
- package/dist/destinations/google-analytics-4/beginCheckout/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/customEvent/generated-types.d.ts +0 -1
- package/dist/destinations/google-analytics-4/customEvent/index.js +1 -4
- package/dist/destinations/google-analytics-4/customEvent/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/ga4-functions.d.ts +0 -6
- package/dist/destinations/google-analytics-4/ga4-functions.js +1 -68
- package/dist/destinations/google-analytics-4/ga4-functions.js.map +1 -1
- package/dist/destinations/google-analytics-4/ga4-properties.d.ts +0 -1
- package/dist/destinations/google-analytics-4/ga4-properties.js +1 -13
- package/dist/destinations/google-analytics-4/ga4-properties.js.map +1 -1
- package/dist/destinations/google-analytics-4/generateLead/generated-types.d.ts +0 -1
- package/dist/destinations/google-analytics-4/generateLead/index.js +1 -3
- package/dist/destinations/google-analytics-4/generateLead/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/login/generated-types.d.ts +0 -1
- package/dist/destinations/google-analytics-4/login/index.js +1 -4
- package/dist/destinations/google-analytics-4/login/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/pageView/generated-types.d.ts +0 -1
- package/dist/destinations/google-analytics-4/pageView/index.js +1 -4
- package/dist/destinations/google-analytics-4/pageView/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/purchase/generated-types.d.ts +0 -1
- package/dist/destinations/google-analytics-4/purchase/index.js +15 -4
- package/dist/destinations/google-analytics-4/purchase/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/refund/generated-types.d.ts +0 -1
- package/dist/destinations/google-analytics-4/refund/index.js +21 -5
- package/dist/destinations/google-analytics-4/refund/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/removeFromCart/generated-types.d.ts +0 -1
- package/dist/destinations/google-analytics-4/removeFromCart/index.js +21 -5
- package/dist/destinations/google-analytics-4/removeFromCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/search/generated-types.d.ts +0 -1
- package/dist/destinations/google-analytics-4/search/index.js +1 -4
- package/dist/destinations/google-analytics-4/search/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/selectItem/generated-types.d.ts +0 -1
- package/dist/destinations/google-analytics-4/selectItem/index.js +15 -4
- package/dist/destinations/google-analytics-4/selectItem/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/selectPromotion/generated-types.d.ts +0 -1
- package/dist/destinations/google-analytics-4/selectPromotion/index.js +18 -4
- package/dist/destinations/google-analytics-4/selectPromotion/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/signUp/generated-types.d.ts +0 -1
- package/dist/destinations/google-analytics-4/signUp/index.js +1 -4
- package/dist/destinations/google-analytics-4/signUp/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewCart/generated-types.d.ts +0 -1
- package/dist/destinations/google-analytics-4/viewCart/index.js +21 -5
- package/dist/destinations/google-analytics-4/viewCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewItem/generated-types.d.ts +0 -1
- package/dist/destinations/google-analytics-4/viewItem/index.js +27 -4
- package/dist/destinations/google-analytics-4/viewItem/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewItemList/generated-types.d.ts +0 -1
- package/dist/destinations/google-analytics-4/viewItemList/index.js +15 -4
- package/dist/destinations/google-analytics-4/viewItemList/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewPromotion/generated-types.d.ts +0 -1
- package/dist/destinations/google-analytics-4/viewPromotion/index.js +15 -4
- package/dist/destinations/google-analytics-4/viewPromotion/index.js.map +1 -1
- package/dist/destinations/google-sheets/postSheet/index.js +4 -4
- package/dist/destinations/google-sheets/postSheet/index.js.map +1 -1
- package/dist/destinations/google-sheets/postSheet/operations.js +3 -3
- package/dist/destinations/google-sheets/postSheet/operations.js.map +1 -1
- package/dist/destinations/salesforce/lead/index.js +0 -7
- package/dist/destinations/salesforce/lead/index.js.map +1 -1
- package/dist/destinations/salesforce/sf-operations.d.ts +1 -1
- package/dist/destinations/salesforce/sf-operations.js +3 -0
- package/dist/destinations/salesforce/sf-operations.js.map +1 -1
- package/dist/destinations/salesforce/sf-utils.js +6 -4
- package/dist/destinations/salesforce/sf-utils.js.map +1 -1
- package/dist/destinations/snap-conversions-api/_tests_/index.test.js +4 -4
- package/dist/destinations/snap-conversions-api/_tests_/index.test.js.map +1 -1
- package/dist/destinations/snap-conversions-api/index.js +1 -1
- package/dist/destinations/snap-conversions-api/index.js.map +1 -1
- package/dist/destinations/snap-conversions-api/reportConversionEvent/index.js +2 -1
- package/dist/destinations/snap-conversions-api/reportConversionEvent/index.js.map +1 -1
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js +1 -1
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +1 -1
- package/dist/destinations/webhook/__test__/webhook.test.js +5 -21
- package/dist/destinations/webhook/__test__/webhook.test.js.map +1 -1
- package/dist/destinations/webhook/send/generated-types.d.ts +3 -0
- package/dist/destinations/webhook/send/index.js +9 -1
- package/dist/destinations/webhook/send/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/destinations/amplitude/logPurchase/generated-types.d.ts +0 -64
- package/dist/destinations/amplitude/logPurchase/generated-types.js +0 -3
- package/dist/destinations/amplitude/logPurchase/generated-types.js.map +0 -1
- package/dist/destinations/amplitude/logPurchase/index.d.ts +0 -13
- package/dist/destinations/amplitude/logPurchase/index.js +0 -197
- package/dist/destinations/amplitude/logPurchase/index.js.map +0 -1
|
@@ -8,21 +8,14 @@ const identifyUser_1 = __importDefault(require("./identifyUser"));
|
|
|
8
8
|
const logEvent_1 = __importDefault(require("./logEvent"));
|
|
9
9
|
const mapUser_1 = __importDefault(require("./mapUser"));
|
|
10
10
|
const groupIdentifyUser_1 = __importDefault(require("./groupIdentifyUser"));
|
|
11
|
-
const logPurchase_1 = __importDefault(require("./logPurchase"));
|
|
12
11
|
const regional_endpoints_1 = require("./regional-endpoints");
|
|
13
12
|
const presets = [
|
|
14
13
|
{
|
|
15
14
|
name: 'Track Calls',
|
|
16
|
-
subscribe: 'type = "track"
|
|
15
|
+
subscribe: 'type = "track"',
|
|
17
16
|
partnerAction: 'logEvent',
|
|
18
17
|
mapping: actions_core_1.defaultValues(logEvent_1.default.fields)
|
|
19
18
|
},
|
|
20
|
-
{
|
|
21
|
-
name: 'Track Calls',
|
|
22
|
-
subscribe: 'type = "track" and event = "Order Completed"',
|
|
23
|
-
partnerAction: 'logPurchase',
|
|
24
|
-
mapping: actions_core_1.defaultValues(logPurchase_1.default.fields)
|
|
25
|
-
},
|
|
26
19
|
{
|
|
27
20
|
name: 'Page Calls',
|
|
28
21
|
subscribe: 'type = "page"',
|
|
@@ -118,8 +111,7 @@ const destination = {
|
|
|
118
111
|
logEvent: logEvent_1.default,
|
|
119
112
|
identifyUser: identifyUser_1.default,
|
|
120
113
|
mapUser: mapUser_1.default,
|
|
121
|
-
groupIdentifyUser: groupIdentifyUser_1.default
|
|
122
|
-
logPurchase: logPurchase_1.default
|
|
114
|
+
groupIdentifyUser: groupIdentifyUser_1.default
|
|
123
115
|
}
|
|
124
116
|
};
|
|
125
117
|
exports.default = destination;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/amplitude/index.ts"],"names":[],"mappings":";;;;;AACA,wDAAqD;AACrD,kEAAyC;AACzC,0DAAiC;AACjC,wDAA+B;AAC/B,4EAAmD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/amplitude/index.ts"],"names":[],"mappings":";;;;;AACA,wDAAqD;AACrD,kEAAyC;AACzC,0DAAiC;AACjC,wDAA+B;AAC/B,4EAAmD;AAEnD,6DAA0D;AAG1D,MAAM,OAAO,GAAqC;IAChD;QACE,IAAI,EAAE,aAAa;QACnB,SAAS,EAAE,gBAAgB;QAC3B,aAAa,EAAE,UAAU;QACzB,OAAO,EAAE,4BAAa,CAAC,kBAAQ,CAAC,MAAM,CAAC;KACxC;IACD;QACE,IAAI,EAAE,YAAY;QAClB,SAAS,EAAE,eAAe;QAC1B,aAAa,EAAE,UAAU;QACzB,OAAO,EAAE;YACP,GAAG,4BAAa,CAAC,kBAAQ,CAAC,MAAM,CAAC;YACjC,UAAU,EAAE;gBACV,WAAW,EAAE,iBAAiB;aAC/B;SACF;KACF;IACD;QACE,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,iBAAiB;QAC5B,aAAa,EAAE,UAAU;QACzB,OAAO,EAAE;YACP,GAAG,4BAAa,CAAC,kBAAQ,CAAC,MAAM,CAAC;YACjC,UAAU,EAAE;gBACV,WAAW,EAAE,iBAAiB;aAC/B;SACF;KACF;IACD;QACE,IAAI,EAAE,gBAAgB;QACtB,SAAS,EAAE,mBAAmB;QAC9B,aAA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E,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QACjD,OAAO,OAAO,CAAC,wCAAmB,CAAC,WAAW,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE;YAClE,QAAQ,EAAE,QAAQ,CAAC,MAAM;YACzB,QAAQ,EAAE,QAAQ,CAAC,SAAS;YAC5B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;gBAC1B,SAAS,EAAE,SAAS;aACrB;SACF,CAAC,CAAA;IACJ,CAAC;IACD,OAAO;IACP,OAAO,EAAE;QACP,QAAQ,EAAR,kBAAQ;QACR,YAAY,EAAZ,sBAAY;QACZ,OAAO,EAAP,iBAAO;QACP,iBAAiB,EAAjB,2BAAiB;KAClB;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ActionDefinition } from '@segment/actions-core';
|
|
2
2
|
import type { Settings } from '../generated-types';
|
|
3
3
|
import type { Payload } from './generated-types';
|
|
4
|
-
export interface AmplitudeEvent extends Omit<Payload, 'products' | 'time' | 'session_id'> {
|
|
4
|
+
export interface AmplitudeEvent extends Omit<Payload, 'products' | 'trackRevenuePerProduct' | 'time' | 'session_id'> {
|
|
5
5
|
library?: string;
|
|
6
6
|
time?: number;
|
|
7
7
|
session_id?: number;
|
|
@@ -12,11 +12,29 @@ const merge_user_properties_1 = require("../merge-user-properties");
|
|
|
12
12
|
const user_agent_1 = require("../user-agent");
|
|
13
13
|
const regional_endpoints_1 = require("../regional-endpoints");
|
|
14
14
|
const revenueKeys = ['revenue', 'price', 'productId', 'quantity', 'revenueType'];
|
|
15
|
+
function getRevenueProperties(payload) {
|
|
16
|
+
if (typeof payload.revenue !== 'number') {
|
|
17
|
+
return {};
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
revenue: payload.revenue,
|
|
21
|
+
revenueType: payload.revenueType ?? 'Purchase',
|
|
22
|
+
quantity: typeof payload.quantity === 'number' ? Math.round(payload.quantity) : undefined,
|
|
23
|
+
price: payload.price,
|
|
24
|
+
productId: payload.productId
|
|
25
|
+
};
|
|
26
|
+
}
|
|
15
27
|
const action = {
|
|
16
28
|
title: 'Log Event',
|
|
17
29
|
description: 'Send an event to Amplitude.',
|
|
18
30
|
defaultSubscription: 'type = "track"',
|
|
19
31
|
fields: {
|
|
32
|
+
trackRevenuePerProduct: {
|
|
33
|
+
label: 'Track Revenue Per Product',
|
|
34
|
+
description: 'When enabled, track revenue with each product within the event. When disabled, track total revenue once for the event.',
|
|
35
|
+
type: 'boolean',
|
|
36
|
+
default: false
|
|
37
|
+
},
|
|
20
38
|
...event_schema_1.eventSchema,
|
|
21
39
|
products: {
|
|
22
40
|
label: 'Products',
|
|
@@ -124,7 +142,7 @@ const action = {
|
|
|
124
142
|
}
|
|
125
143
|
},
|
|
126
144
|
perform: (request, { payload, settings }) => {
|
|
127
|
-
const { time, session_id, userAgent, userAgentParsing, utm_properties, referrer, min_id_length, library, ...rest } = actions_core_1.omit(payload, revenueKeys);
|
|
145
|
+
const { products = [], trackRevenuePerProduct, time, session_id, userAgent, userAgentParsing, utm_properties, referrer, min_id_length, library, ...rest } = actions_core_1.omit(payload, revenueKeys);
|
|
128
146
|
const properties = rest;
|
|
129
147
|
let options;
|
|
130
148
|
if (properties.platform) {
|
|
@@ -150,9 +168,20 @@ const action = {
|
|
|
150
168
|
{
|
|
151
169
|
...(userAgentParsing && user_agent_1.parseUserAgentProperties(userAgent)),
|
|
152
170
|
...actions_core_1.removeUndefined(properties),
|
|
171
|
+
...(products.length && trackRevenuePerProduct ? {} : getRevenueProperties(payload)),
|
|
153
172
|
library: 'segment'
|
|
154
173
|
}
|
|
155
174
|
];
|
|
175
|
+
for (const product of products) {
|
|
176
|
+
events.push({
|
|
177
|
+
...properties,
|
|
178
|
+
...(trackRevenuePerProduct ? getRevenueProperties(product) : {}),
|
|
179
|
+
event_properties: product,
|
|
180
|
+
event_type: 'Product Purchased',
|
|
181
|
+
insert_id: properties.insert_id ? `${properties.insert_id}-${events.length + 1}` : undefined,
|
|
182
|
+
library: 'segment'
|
|
183
|
+
});
|
|
184
|
+
}
|
|
156
185
|
const endpoint = regional_endpoints_1.getEndpointByRegion(payload.use_batch_endpoint ? 'batch' : 'httpapi', settings.endpoint);
|
|
157
186
|
return request(endpoint, {
|
|
158
187
|
method: 'post',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/amplitude/logEvent/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA6D;AAC7D,+DAAsC;AACtC,kDAA6C;AAI7C,gCAA6C;AAC7C,0CAAqD;AACrD,oEAA8D;AAC9D,8CAAwD;AACxD,8DAA2D;AAW3D,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/amplitude/logEvent/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA6D;AAC7D,+DAAsC;AACtC,kDAA6C;AAI7C,gCAA6C;AAC7C,0CAAqD;AACrD,oEAA8D;AAC9D,8CAAwD;AACxD,8DAA2D;AAW3D,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,CAAC,CAAA;AAUhF,SAAS,oBAAoB,CAAC,OAAqB;IACjD,IAAI,OAAO,OAAO,CAAC,OAAO,KAAK,QAAQ,EAAE;QACvC,OAAO,EAAE,CAAA;KACV;IAED,OAAO;QACL,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,UAAU;QAC9C,QAAQ,EAAE,OAAO,OAAO,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CA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A;QAEzG,OAAO,OAAO,CAAC,QAAQ,EAAE;YACvB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,OAAO,EAAE,QAAQ,CAAC,MAAM;gBACxB,MAAM;gBACN,OAAO;aACR;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -10,7 +10,6 @@ const action = {
|
|
|
10
10
|
fields: {
|
|
11
11
|
client_id: { ...ga4_properties_1.client_id },
|
|
12
12
|
user_id: { ...ga4_properties_1.user_id },
|
|
13
|
-
timestamp_micros: { ...ga4_properties_1.timestamp_micros },
|
|
14
13
|
currency: { ...ga4_properties_1.currency },
|
|
15
14
|
value: { ...ga4_properties_1.value },
|
|
16
15
|
coupon: { ...ga4_properties_1.coupon },
|
|
@@ -30,13 +29,29 @@ const action = {
|
|
|
30
29
|
if (payload.currency) {
|
|
31
30
|
ga4_functions_1.verifyCurrency(payload.currency);
|
|
32
31
|
}
|
|
33
|
-
|
|
32
|
+
if (payload.value && payload.currency === undefined) {
|
|
33
|
+
throw new actions_core_1.IntegrationError('Currency is required if value is set.', 'Misconfigured required field', 400);
|
|
34
|
+
}
|
|
35
|
+
if (payload.currency === undefined && payload.items[0].currency === undefined) {
|
|
36
|
+
throw new actions_core_1.IntegrationError('One of item-level currency or top-level currency is required.', 'Misconfigured required field', 400);
|
|
37
|
+
}
|
|
38
|
+
let googleItems = [];
|
|
39
|
+
if (payload.items) {
|
|
40
|
+
googleItems = payload.items.map((product) => {
|
|
41
|
+
if (product.item_name === undefined && product.item_id === undefined) {
|
|
42
|
+
throw new actions_core_1.IntegrationError('One of product name or product id is required for product or impression data.', 'Misconfigured required field', 400);
|
|
43
|
+
}
|
|
44
|
+
if (product.currency) {
|
|
45
|
+
ga4_functions_1.verifyCurrency(product.currency);
|
|
46
|
+
}
|
|
47
|
+
return product;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
34
50
|
return request('https://www.google-analytics.com/mp/collect', {
|
|
35
51
|
method: 'POST',
|
|
36
52
|
json: {
|
|
37
53
|
client_id: payload.client_id,
|
|
38
54
|
user_id: payload.user_id,
|
|
39
|
-
timestamp_micros: ga4_functions_1.convertTimestamp(payload.timestamp_micros),
|
|
40
55
|
events: [
|
|
41
56
|
{
|
|
42
57
|
name: 'add_payment_info',
|
|
@@ -45,9 +60,9 @@ const action = {
|
|
|
45
60
|
value: payload.value,
|
|
46
61
|
coupon: payload.coupon,
|
|
47
62
|
payment_type: payload.payment_type,
|
|
48
|
-
items:
|
|
63
|
+
items: googleItems,
|
|
49
64
|
engagement_time_msec: payload.engagement_time_msec,
|
|
50
|
-
...
|
|
65
|
+
...payload.params
|
|
51
66
|
}
|
|
52
67
|
}
|
|
53
68
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/addPaymentInfo/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/addPaymentInfo/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAI1E,oDAAiD;AACjD,sDAY0B;AAE1B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,0DAA0D;IACvE,mBAAmB,EAAE,mDAAmD;IACxE,MAAM,EAAE;QACN,SAAS,EAAE,EAAE,GAAG,0BAAS,EAAE;QAC3B,OAAO,EAAE,EAAE,GAAG,wBAAO,EAAE;QACvB,QAAQ,EAAE,EAAE,GAAG,yBAAQ,EAAE;QACzB,KAAK,EAAE,EAAE,GAAG,sBAAK,EAAE;QACnB,MAAM,EAAE,EAAE,GAAG,uBAAM,EAAE;QACrB,YAAY,EAAE,EAAE,GAAG,6BAAY,EAAE;QACjC,KAAK,EAAE;YACL,GAAG,qCAAoB;YACvB,QAAQ,EAAE,IAAI;SACf;QACD,eAAe,EAAE,gCAAe;QAChC,oB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O,CAAC,6CAA6C,EAAE;YAC5D,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,kBAAkB;wBACxB,MAAM,EAAE;4BACN,QAAQ,EAAE,OAAO,CAAC,QAAQ;4BAC1B,KAAK,EAAE,OAAO,CAAC,KAAK;4BACpB,MAAM,EAAE,OAAO,CAAC,MAAM;4BACtB,YAAY,EAAE,OAAO,CAAC,YAAY;4BAClC,KAAK,EAAE,WAAW;4BAClB,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;4BAClD,GAAG,OAAO,CAAC,MAAM;yBAClB;qBACF;iBACF;gBACD,GAAG,qCAAoB,CAAC,OAAO,CAAC,eAAe,CAAC;aACjD;SACF,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 ga4_functions_1 = require("../ga4-functions");
|
|
4
5
|
const ga4_properties_1 = require("../ga4-properties");
|
|
5
6
|
const action = {
|
|
@@ -9,7 +10,6 @@ const action = {
|
|
|
9
10
|
fields: {
|
|
10
11
|
client_id: { ...ga4_properties_1.client_id },
|
|
11
12
|
user_id: { ...ga4_properties_1.user_id },
|
|
12
|
-
timestamp_micros: { ...ga4_properties_1.timestamp_micros },
|
|
13
13
|
currency: { ...ga4_properties_1.currency },
|
|
14
14
|
items: {
|
|
15
15
|
...ga4_properties_1.items_single_products,
|
|
@@ -21,24 +21,35 @@ const action = {
|
|
|
21
21
|
params: ga4_properties_1.params
|
|
22
22
|
},
|
|
23
23
|
perform: (request, { payload }) => {
|
|
24
|
+
let googleItems = [];
|
|
24
25
|
if (payload.currency) {
|
|
25
26
|
ga4_functions_1.verifyCurrency(payload.currency);
|
|
26
27
|
}
|
|
28
|
+
if (payload.items) {
|
|
29
|
+
googleItems = payload.items.map((product) => {
|
|
30
|
+
if (product.item_name === undefined && product.item_id === undefined) {
|
|
31
|
+
throw new actions_core_1.IntegrationError('One of product name or product id is required for product or impression data.', 'Misconfigured required field', 400);
|
|
32
|
+
}
|
|
33
|
+
if (product.currency) {
|
|
34
|
+
ga4_functions_1.verifyCurrency(product.currency);
|
|
35
|
+
}
|
|
36
|
+
return product;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
27
39
|
return request('https://www.google-analytics.com/mp/collect', {
|
|
28
40
|
method: 'POST',
|
|
29
41
|
json: {
|
|
30
42
|
client_id: payload.client_id,
|
|
31
43
|
user_id: payload.user_id,
|
|
32
|
-
timestamp_micros: ga4_functions_1.convertTimestamp(payload.timestamp_micros),
|
|
33
44
|
events: [
|
|
34
45
|
{
|
|
35
46
|
name: 'add_to_cart',
|
|
36
47
|
params: {
|
|
37
48
|
currency: payload.currency,
|
|
38
|
-
items:
|
|
49
|
+
items: googleItems,
|
|
39
50
|
value: payload.value,
|
|
40
51
|
engagement_time_msec: payload.engagement_time_msec,
|
|
41
|
-
...
|
|
52
|
+
...payload.params
|
|
42
53
|
}
|
|
43
54
|
}
|
|
44
55
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/addToCart/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/addToCart/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAI1E,oDAAiD;AACjD,sDAU0B;AAE1B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,6CAA6C;IAC1D,mBAAmB,EAAE,4CAA4C;IACjE,MAAM,EAAE;QACN,SAAS,EAAE,EAAE,GAAG,0BAA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,EAAE,OAAO,CAAC,KAAK;4BACpB,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;4BAClD,GAAG,OAAO,CAAC,MAAM;yBAClB;qBACF;iBACF;gBACD,GAAG,qCAAoB,CAAC,OAAO,CAAC,eAAe,CAAC;aACjD;SACF,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 ga4_functions_1 = require("../ga4-functions");
|
|
4
5
|
const ga4_properties_1 = require("../ga4-properties");
|
|
5
6
|
const action = {
|
|
@@ -9,7 +10,6 @@ const action = {
|
|
|
9
10
|
fields: {
|
|
10
11
|
client_id: { ...ga4_properties_1.client_id },
|
|
11
12
|
user_id: { ...ga4_properties_1.user_id },
|
|
12
|
-
timestamp_micros: { ...ga4_properties_1.timestamp_micros },
|
|
13
13
|
currency: { ...ga4_properties_1.currency },
|
|
14
14
|
value: { ...ga4_properties_1.value },
|
|
15
15
|
items: {
|
|
@@ -24,22 +24,38 @@ const action = {
|
|
|
24
24
|
if (payload.currency) {
|
|
25
25
|
ga4_functions_1.verifyCurrency(payload.currency);
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
if (payload.value && payload.currency === undefined) {
|
|
28
|
+
throw new actions_core_1.IntegrationError('Currency is required if value is set.', 'Misconfigured required field', 400);
|
|
29
|
+
}
|
|
30
|
+
if (payload.currency === undefined && (!payload.items || !payload.items[0] || !payload.items[0].currency)) {
|
|
31
|
+
throw new actions_core_1.IntegrationError('One of item-level currency or top-level currency is required.', 'Misconfigured required field', 400);
|
|
32
|
+
}
|
|
33
|
+
let googleItems = [];
|
|
34
|
+
if (payload.items) {
|
|
35
|
+
googleItems = payload.items.map((product) => {
|
|
36
|
+
if (product.item_name === undefined && product.item_id === undefined) {
|
|
37
|
+
throw new actions_core_1.IntegrationError('One of product name or product id is required for product or impression data.', 'Misconfigured required field', 400);
|
|
38
|
+
}
|
|
39
|
+
if (product.currency) {
|
|
40
|
+
ga4_functions_1.verifyCurrency(product.currency);
|
|
41
|
+
}
|
|
42
|
+
return product;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
28
45
|
return request('https://www.google-analytics.com/mp/collect', {
|
|
29
46
|
method: 'POST',
|
|
30
47
|
json: {
|
|
31
48
|
client_id: payload.client_id,
|
|
32
49
|
user_id: payload.user_id,
|
|
33
|
-
timestamp_micros: ga4_functions_1.convertTimestamp(payload.timestamp_micros),
|
|
34
50
|
events: [
|
|
35
51
|
{
|
|
36
52
|
name: 'add_to_wishlist',
|
|
37
53
|
params: {
|
|
38
54
|
currency: payload.currency,
|
|
39
55
|
value: payload.value,
|
|
40
|
-
items:
|
|
56
|
+
items: googleItems,
|
|
41
57
|
engagement_time_msec: payload.engagement_time_msec,
|
|
42
|
-
...
|
|
58
|
+
...payload.params
|
|
43
59
|
}
|
|
44
60
|
}
|
|
45
61
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/addToWishlist/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/addToWishlist/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAI1E,oDAAiD;AACjD,sDAU0B;AAE1B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,iDAAiD;IAC9D,mBAAmB,EAAE,wDAAwD;IAC7E,MAAM,EAAE;QACN,SAAS,EAAE,EAAE,GAAG,0BAAS,EAAE;QAC3B,OAAO,EAAE,EAAE,GAAG,wBAAO,EAAE;QACvB,QAAQ,EAAE,EAAE,GAAG,yBAAQ,EAAE;QACzB,KAAK,EAAE,EAAE,GAAG,sBAAK,EAAE;QACnB,KA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OAAO,OAAO,CAAC,6CAA6C,EAAE;YAC5D,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,iBAAiB;wBACvB,MAAM,EAAE;4BACN,QAAQ,EAAE,OAAO,CAAC,QAAQ;4BAC1B,KAAK,EAAE,OAAO,CAAC,KAAK;4BACpB,KAAK,EAAE,WAAW;4BAClB,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;4BAClD,GAAG,OAAO,CAAC,MAAM;yBAClB;qBACF;iBACF;gBACD,GAAG,qCAAoB,CAAC,OAAO,CAAC,eAAe,CAAC;aACjD;SACF,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 ga4_functions_1 = require("../ga4-functions");
|
|
4
5
|
const ga4_properties_1 = require("../ga4-properties");
|
|
5
6
|
const action = {
|
|
@@ -9,7 +10,6 @@ const action = {
|
|
|
9
10
|
fields: {
|
|
10
11
|
client_id: { ...ga4_properties_1.client_id },
|
|
11
12
|
user_id: { ...ga4_properties_1.user_id },
|
|
12
|
-
timestamp_micros: { ...ga4_properties_1.timestamp_micros },
|
|
13
13
|
coupon: { ...ga4_properties_1.coupon, default: { '@path': '$.properties.coupon' } },
|
|
14
14
|
currency: { ...ga4_properties_1.currency },
|
|
15
15
|
items: {
|
|
@@ -25,22 +25,33 @@ const action = {
|
|
|
25
25
|
if (payload.currency) {
|
|
26
26
|
ga4_functions_1.verifyCurrency(payload.currency);
|
|
27
27
|
}
|
|
28
|
+
let googleItems = [];
|
|
29
|
+
if (payload.items) {
|
|
30
|
+
googleItems = payload.items.map((product) => {
|
|
31
|
+
if (product.item_name === undefined && product.item_id === undefined) {
|
|
32
|
+
throw new actions_core_1.IntegrationError('One of product name or product id is required for product or impression data.', 'Misconfigured required field', 400);
|
|
33
|
+
}
|
|
34
|
+
if (product.currency) {
|
|
35
|
+
ga4_functions_1.verifyCurrency(product.currency);
|
|
36
|
+
}
|
|
37
|
+
return product;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
28
40
|
return request('https://www.google-analytics.com/mp/collect', {
|
|
29
41
|
method: 'POST',
|
|
30
42
|
json: {
|
|
31
43
|
client_id: payload.client_id,
|
|
32
44
|
user_id: payload.user_id,
|
|
33
|
-
timestamp_micros: ga4_functions_1.convertTimestamp(payload.timestamp_micros),
|
|
34
45
|
events: [
|
|
35
46
|
{
|
|
36
47
|
name: 'begin_checkout',
|
|
37
48
|
params: {
|
|
38
49
|
coupon: payload.coupon,
|
|
39
50
|
currency: payload.currency,
|
|
40
|
-
items:
|
|
51
|
+
items: googleItems,
|
|
41
52
|
value: payload.value,
|
|
42
53
|
engagement_time_msec: payload.engagement_time_msec,
|
|
43
|
-
...
|
|
54
|
+
...payload.params
|
|
44
55
|
}
|
|
45
56
|
}
|
|
46
57
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/beginCheckout/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/beginCheckout/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,oDAAiD;AACjD,sDAW0B;AAK1B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,wCAAwC;IACrD,mBAAmB,EAAE,+CAA+C;IACpE,MAAM,EAAE;QACN,SAAS,EAAE,EAAE,GAAG,0BAAS,EAAE;QAC3B,OAAO,EAAE,EAAE,GAAG,wBAAO,EAAE;QACvB,MAAM,EAAE,EAAE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,OAAO,CAAC,QAAQ;4BAC1B,KAAK,EAAE,WAAW;4BAClB,KAAK,EAAE,OAAO,CAAC,KAAK;4BACpB,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;4BAClD,GAAG,OAAO,CAAC,MAAM;yBAClB;qBACF;iBACF;gBACD,GAAG,qCAAoB,CAAC,OAAO,CAAC,eAAe,CAAC;aACjD;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ga4_functions_1 = require("../ga4-functions");
|
|
4
3
|
const ga4_properties_1 = require("../ga4-properties");
|
|
5
4
|
const normalizeEventName = (name, lowercase) => {
|
|
6
5
|
name = name.trim();
|
|
@@ -17,7 +16,6 @@ const action = {
|
|
|
17
16
|
fields: {
|
|
18
17
|
clientId: { ...ga4_properties_1.client_id },
|
|
19
18
|
user_id: { ...ga4_properties_1.user_id },
|
|
20
|
-
timestamp_micros: { ...ga4_properties_1.timestamp_micros },
|
|
21
19
|
name: {
|
|
22
20
|
label: 'Event Name',
|
|
23
21
|
description: 'The unique name of the custom event created in GA4. GA4 does not accept spaces in event names so Segment will replace any spaces with underscores. More information about GA4 event name rules is available in [their docs](https://support.google.com/analytics/answer/10085872?hl=en&ref_topic=9756175#event-name-rules&zippy=%2Cin-this-article.%2Cin-this-article).',
|
|
@@ -44,13 +42,12 @@ const action = {
|
|
|
44
42
|
json: {
|
|
45
43
|
client_id: payload.clientId,
|
|
46
44
|
user_id: payload.user_id,
|
|
47
|
-
timestamp_micros: ga4_functions_1.convertTimestamp(payload.timestamp_micros),
|
|
48
45
|
events: [
|
|
49
46
|
{
|
|
50
47
|
name: event_name,
|
|
51
48
|
params: {
|
|
52
49
|
engagement_time_msec: payload.engagement_time_msec,
|
|
53
|
-
...
|
|
50
|
+
...payload.params
|
|
54
51
|
}
|
|
55
52
|
}
|
|
56
53
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/customEvent/index.ts"],"names":[],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/customEvent/index.ts"],"names":[],"mappings":";;AAGA,sDAO0B;AAE1B,MAAM,kBAAkB,GAAG,CAAC,IAAY,EAAE,SAA8B,EAAU,EAAE;IAClF,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,CAAA;IAClB,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;IAE/B,IAAI,SAAS,EAAE;QACb,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE,CAAA;KAC1B;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,uBAAuB;IACpC,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,QAAQ,EAAE,EAAE,GAAG,0BAAS,EAAE;QAC1B,OAAO,EAAE,EAAE,GAAG,wBAAO,EAAE;QACvB,IAAI,EAAE;YACJ,KAAK,EAAE,YAAY;YACnB,WAAW,EACT,yWAAyW;YAC3W,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,SAAS;aACnB;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EACT,qZAAqZ;YACvZ,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;SACf;QACD,eAAe,EAAE,gCAAe;QAChC,oBAAoB,EAAE,qCAAoB;QAC1C,MAAM,EAAE,EAAE,GAAG,uBAAM,EAAE;KACtB;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAChC,MAAM,UAAU,GAAG,kBAAkB,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,CAAA;QACtE,OAAO,OAAO,CAAC,6CAA6C,EAAE;YAC5D,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,SAAS,EAAE,OAAO,CAAC,QAAQ;gBAC3B,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,UAAU;wBAChB,MAAM,EAAE;4BACN,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;4BAClD,GAAG,OAAO,CAAC,MAAM;yBAClB;qBACF;iBACF;gBACD,GAAG,qCAAoB,CAAC,OAAO,CAAC,eAAe,CAAC;aACjD;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AACD,kBAAe,MAAM,CAAA"}
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
import { ProductItem, PromotionProductItem } from './ga4-types';
|
|
2
1
|
export declare function verifyCurrency(currency: string): void;
|
|
3
|
-
export declare function verifyParams(params: object | undefined): object | undefined;
|
|
4
|
-
export declare function checkCurrencyDefinition(value: number | undefined, eventCurrency: string | undefined, items: ProductItem[] | undefined): void;
|
|
5
|
-
export declare function convertTimestamp(timestamp: string | undefined): number | undefined;
|
|
6
|
-
export declare function formatItems(items: ProductItem[] | PromotionProductItem[] | undefined): ProductItem[] | PromotionProductItem[] | undefined;
|
|
7
|
-
export declare function formatPromotionItems(items: PromotionProductItem[] | undefined): PromotionProductItem[] | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.verifyCurrency = void 0;
|
|
4
4
|
const actions_core_1 = require("@segment/actions-core");
|
|
5
5
|
const constants_1 = require("./constants");
|
|
6
6
|
function verifyCurrency(currency) {
|
|
@@ -9,71 +9,4 @@ function verifyCurrency(currency) {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.verifyCurrency = verifyCurrency;
|
|
12
|
-
function verifyParams(params) {
|
|
13
|
-
if (!params) {
|
|
14
|
-
return undefined;
|
|
15
|
-
}
|
|
16
|
-
Object.entries(params).forEach(([_, value]) => {
|
|
17
|
-
if (typeof value != 'string' && typeof value != 'number') {
|
|
18
|
-
throw new actions_core_1.IntegrationError('GA4 only accepts string or number values for event parameters and item parameters. Please ensure you are not including null, array, or nested values.', 'Invalid value', 400);
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
return params;
|
|
22
|
-
}
|
|
23
|
-
exports.verifyParams = verifyParams;
|
|
24
|
-
function checkCurrencyDefinition(value, eventCurrency, items) {
|
|
25
|
-
if (value && eventCurrency === undefined) {
|
|
26
|
-
throw new actions_core_1.IntegrationError('Currency is required if value is set.', 'Misconfigured required field', 400);
|
|
27
|
-
}
|
|
28
|
-
if (eventCurrency === undefined && (!items || !items[0] || !items[0].currency)) {
|
|
29
|
-
throw new actions_core_1.IntegrationError('One of item-level currency or top-level currency is required.', 'Misconfigured required field', 400);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.checkCurrencyDefinition = checkCurrencyDefinition;
|
|
33
|
-
function convertTimestamp(timestamp) {
|
|
34
|
-
if (!timestamp) {
|
|
35
|
-
return undefined;
|
|
36
|
-
}
|
|
37
|
-
if (!isNaN(+timestamp)) {
|
|
38
|
-
return +timestamp;
|
|
39
|
-
}
|
|
40
|
-
return Date.parse(timestamp) * 1000;
|
|
41
|
-
}
|
|
42
|
-
exports.convertTimestamp = convertTimestamp;
|
|
43
|
-
function formatItems(items) {
|
|
44
|
-
if (!items) {
|
|
45
|
-
return undefined;
|
|
46
|
-
}
|
|
47
|
-
const googleItems = items.map((product) => {
|
|
48
|
-
if (product.item_name === undefined && product.item_id === undefined) {
|
|
49
|
-
throw new actions_core_1.IntegrationError('One of product name or product id is required for product or impression data.', 'Misconfigured required field', 400);
|
|
50
|
-
}
|
|
51
|
-
if (product.currency) {
|
|
52
|
-
verifyCurrency(product.currency);
|
|
53
|
-
}
|
|
54
|
-
return product;
|
|
55
|
-
});
|
|
56
|
-
return googleItems;
|
|
57
|
-
}
|
|
58
|
-
exports.formatItems = formatItems;
|
|
59
|
-
function formatPromotionItems(items) {
|
|
60
|
-
if (!items) {
|
|
61
|
-
return undefined;
|
|
62
|
-
}
|
|
63
|
-
let googleItems = [];
|
|
64
|
-
googleItems = items.map((product) => {
|
|
65
|
-
if (product.item_name === undefined && product.item_id === undefined) {
|
|
66
|
-
throw new actions_core_1.IntegrationError('One of product name or product id is required for product or impression data.', 'Misconfigured required field', 400);
|
|
67
|
-
}
|
|
68
|
-
if (product.promotion_id === undefined && product.promotion_name === undefined) {
|
|
69
|
-
throw new actions_core_1.IntegrationError('One of promotion name or promotion id is required.', 'Misconfigured required field', 400);
|
|
70
|
-
}
|
|
71
|
-
if (product.currency) {
|
|
72
|
-
verifyCurrency(product.currency);
|
|
73
|
-
}
|
|
74
|
-
return product;
|
|
75
|
-
});
|
|
76
|
-
return googleItems;
|
|
77
|
-
}
|
|
78
|
-
exports.formatPromotionItems = formatPromotionItems;
|
|
79
12
|
//# sourceMappingURL=ga4-functions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ga4-functions.js","sourceRoot":"","sources":["../../../src/destinations/google-analytics-4/ga4-functions.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,2CAAgD;
|
|
1
|
+
{"version":3,"file":"ga4-functions.js","sourceRoot":"","sources":["../../../src/destinations/google-analytics-4/ga4-functions.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,2CAAgD;AAGhD,SAAgB,cAAc,CAAC,QAAgB;IAC7C,IAAI,CAAC,8BAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,EAAE;QACxD,MAAM,IAAI,+BAAgB,CAAC,GAAG,QAAQ,gCAAgC,EAAE,wBAAwB,EAAE,GAAG,CAAC,CAAA;KACvG;AACH,CAAC;AAJD,wCAIC"}
|
|
@@ -20,4 +20,3 @@ export declare const minimal_items: InputField;
|
|
|
20
20
|
export declare const items_single_products: InputField;
|
|
21
21
|
export declare const items_multi_products: InputField;
|
|
22
22
|
export declare const engagement_time_msec: InputField;
|
|
23
|
-
export declare const timestamp_micros: InputField;
|