@segment/action-destinations 3.125.1-staging.104 → 3.125.1-staging.107
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/README.md +1 -1
- package/dist/destinations/actable-predictive/sendCustomEvent/index.js +1 -1
- package/dist/destinations/actable-predictive/sendCustomEvent/index.js.map +1 -1
- package/dist/destinations/actable-predictive/sendEmailEvent/index.js +1 -1
- package/dist/destinations/actable-predictive/sendEmailEvent/index.js.map +1 -1
- package/dist/destinations/actable-predictive/sendTransactionEvent/index.js +1 -1
- package/dist/destinations/actable-predictive/sendTransactionEvent/index.js.map +1 -1
- package/dist/destinations/actable-predictive/sendWebEvent/index.js +1 -1
- package/dist/destinations/actable-predictive/sendWebEvent/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addPaymentInfo/generated-types.d.ts +3 -1
- package/dist/destinations/google-analytics-4/addPaymentInfo/index.js +9 -3
- package/dist/destinations/google-analytics-4/addPaymentInfo/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addToCart/generated-types.d.ts +3 -1
- package/dist/destinations/google-analytics-4/addToCart/index.js +9 -3
- package/dist/destinations/google-analytics-4/addToCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addToWishlist/generated-types.d.ts +3 -1
- package/dist/destinations/google-analytics-4/addToWishlist/index.js +9 -3
- package/dist/destinations/google-analytics-4/addToWishlist/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/beginCheckout/generated-types.d.ts +3 -1
- package/dist/destinations/google-analytics-4/beginCheckout/index.js +9 -3
- package/dist/destinations/google-analytics-4/beginCheckout/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/customEvent/generated-types.d.ts +3 -1
- package/dist/destinations/google-analytics-4/customEvent/index.js +9 -3
- package/dist/destinations/google-analytics-4/customEvent/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/ga4-functions.d.ts +3 -0
- package/dist/destinations/google-analytics-4/ga4-functions.js +31 -1
- package/dist/destinations/google-analytics-4/ga4-functions.js.map +1 -1
- package/dist/destinations/google-analytics-4/ga4-properties.d.ts +2 -0
- package/dist/destinations/google-analytics-4/ga4-properties.js +17 -2
- package/dist/destinations/google-analytics-4/ga4-properties.js.map +1 -1
- package/dist/destinations/google-analytics-4/ga4-types.d.ts +14 -0
- package/dist/destinations/google-analytics-4/ga4-types.js +6 -0
- package/dist/destinations/google-analytics-4/ga4-types.js.map +1 -1
- package/dist/destinations/google-analytics-4/generateLead/generated-types.d.ts +3 -1
- package/dist/destinations/google-analytics-4/generateLead/index.js +9 -3
- package/dist/destinations/google-analytics-4/generateLead/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/generated-types.d.ts +2 -1
- package/dist/destinations/google-analytics-4/index.js +8 -10
- package/dist/destinations/google-analytics-4/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/login/generated-types.d.ts +3 -1
- package/dist/destinations/google-analytics-4/login/index.js +9 -3
- package/dist/destinations/google-analytics-4/login/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/pageView/generated-types.d.ts +3 -1
- package/dist/destinations/google-analytics-4/pageView/index.js +9 -3
- package/dist/destinations/google-analytics-4/pageView/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/purchase/generated-types.d.ts +3 -1
- package/dist/destinations/google-analytics-4/purchase/index.js +9 -3
- package/dist/destinations/google-analytics-4/purchase/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/refund/generated-types.d.ts +3 -1
- package/dist/destinations/google-analytics-4/refund/index.js +9 -3
- package/dist/destinations/google-analytics-4/refund/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/removeFromCart/generated-types.d.ts +3 -1
- package/dist/destinations/google-analytics-4/removeFromCart/index.js +9 -3
- package/dist/destinations/google-analytics-4/removeFromCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/search/generated-types.d.ts +3 -1
- package/dist/destinations/google-analytics-4/search/index.js +9 -3
- package/dist/destinations/google-analytics-4/search/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/selectItem/generated-types.d.ts +3 -1
- package/dist/destinations/google-analytics-4/selectItem/index.js +9 -3
- package/dist/destinations/google-analytics-4/selectItem/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/selectPromotion/generated-types.d.ts +3 -1
- package/dist/destinations/google-analytics-4/selectPromotion/index.js +9 -3
- package/dist/destinations/google-analytics-4/selectPromotion/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/signUp/generated-types.d.ts +3 -1
- package/dist/destinations/google-analytics-4/signUp/index.js +9 -3
- package/dist/destinations/google-analytics-4/signUp/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewCart/generated-types.d.ts +3 -1
- package/dist/destinations/google-analytics-4/viewCart/index.js +9 -3
- package/dist/destinations/google-analytics-4/viewCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewItem/generated-types.d.ts +3 -1
- package/dist/destinations/google-analytics-4/viewItem/index.js +9 -3
- package/dist/destinations/google-analytics-4/viewItem/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewItemList/generated-types.d.ts +3 -1
- package/dist/destinations/google-analytics-4/viewItemList/index.js +9 -3
- package/dist/destinations/google-analytics-4/viewItemList/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewPromotion/generated-types.d.ts +3 -1
- package/dist/destinations/google-analytics-4/viewPromotion/index.js +9 -3
- package/dist/destinations/google-analytics-4/viewPromotion/index.js.map +1 -1
- package/dist/destinations/index.js +1 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/pipedrive/pipedriveApi/pipedrive-client.js +7 -1
- package/dist/destinations/pipedrive/pipedriveApi/pipedrive-client.js.map +1 -1
- package/dist/destinations/vwo/generated-types.d.ts +3 -0
- package/dist/destinations/vwo/generated-types.js +3 -0
- package/dist/destinations/vwo/generated-types.js.map +1 -0
- package/dist/destinations/vwo/identifyUser/generated-types.d.ts +12 -0
- package/dist/destinations/vwo/identifyUser/generated-types.js +3 -0
- package/dist/destinations/vwo/identifyUser/generated-types.js.map +1 -0
- package/dist/destinations/vwo/identifyUser/index.d.ts +5 -0
- package/dist/destinations/vwo/identifyUser/index.js +80 -0
- package/dist/destinations/vwo/identifyUser/index.js.map +1 -0
- package/dist/destinations/vwo/index.d.ts +4 -0
- package/dist/destinations/vwo/index.js +60 -0
- package/dist/destinations/vwo/index.js.map +1 -0
- package/dist/destinations/vwo/pageVisit/generated-types.d.ts +10 -0
- package/dist/destinations/vwo/pageVisit/generated-types.js +3 -0
- package/dist/destinations/vwo/pageVisit/generated-types.js.map +1 -0
- package/dist/destinations/vwo/pageVisit/index.d.ts +5 -0
- package/dist/destinations/vwo/pageVisit/index.js +77 -0
- package/dist/destinations/vwo/pageVisit/index.js.map +1 -0
- package/dist/destinations/vwo/trackEvent/generated-types.d.ts +13 -0
- package/dist/destinations/vwo/trackEvent/generated-types.js +3 -0
- package/dist/destinations/vwo/trackEvent/generated-types.js.map +1 -0
- package/dist/destinations/vwo/trackEvent/index.d.ts +5 -0
- package/dist/destinations/vwo/trackEvent/index.js +86 -0
- package/dist/destinations/vwo/trackEvent/index.js.map +1 -0
- package/dist/destinations/vwo/types.d.ts +42 -0
- package/dist/destinations/vwo/types.js +3 -0
- package/dist/destinations/vwo/types.js.map +1 -0
- package/dist/destinations/vwo/utility.d.ts +13 -0
- package/dist/destinations/vwo/utility.js +59 -0
- package/dist/destinations/vwo/utility.js.map +1 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Destination definitions and their actions
|
|
|
6
6
|
|
|
7
7
|
MIT License
|
|
8
8
|
|
|
9
|
-
Copyright (c)
|
|
9
|
+
Copyright (c) 2023 Segment
|
|
10
10
|
|
|
11
11
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
12
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const index_1 = require("../index");
|
|
4
4
|
const action = {
|
|
5
5
|
title: 'Send Custom Event',
|
|
6
|
-
description:
|
|
6
|
+
description: "Send a custom event to Actable for prediction. Use this to supply events that are not in Actable 's customer view.",
|
|
7
7
|
fields: {
|
|
8
8
|
customer_id: {
|
|
9
9
|
label: 'Customer ID',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/actable-predictive/sendCustomEvent/index.ts"],"names":[],"mappings":";;AAGA,oCAAgE;AAEhE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,mBAAmB;IAC1B,WAAW,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/actable-predictive/sendCustomEvent/index.ts"],"names":[],"mappings":";;AAGA,oCAAgE;AAEhE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EACT,oHAAoH;IACtH,MAAM,EAAE;QACN,WAAW,EAAE;YACX,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,SAAS,EAAE;YACT,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,oBAAoB;YAC3B,WAAW,EAAE,6CAA6C;YAC1D,MAAM,EAAE,WAAW;YACnB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,aAAa;aACvB;SACF;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EAAE,qFAAqF;YAClG,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE;SACrC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,MAAM;YACd,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,sEAAsE;YACnF,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,QAAQ;SAClB;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,oCAA4B,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;QAE7E,OAAO,OAAO,CAAC,eAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;SAC/B,CAAC,CAAA;IACJ,CAAC;IACD,YAAY,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QAC9B,KAAK,MAAM,EAAE,IAAI,IAAI,CAAC,OAAO,EAAE;YAC7B,EAAE,CAAC,SAAS,GAAG,oCAA4B,CAAC,EAAE,CAAC,SAAS,CAAC,CAAA;SAC1D;QACD,OAAO,OAAO,CAAC,eAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE;SAC7B,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const index_1 = require("../index");
|
|
4
4
|
const action = {
|
|
5
5
|
title: 'Send Email Event',
|
|
6
|
-
description: '',
|
|
6
|
+
description: 'Send an email event to Actable for prediction. Use this to supply clicks, opens, and unsubscribes.',
|
|
7
7
|
fields: {
|
|
8
8
|
customer_id: {
|
|
9
9
|
label: 'Customer ID',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/actable-predictive/sendEmailEvent/index.ts"],"names":[],"mappings":";;AAGA,oCAAgE;AAEhE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/actable-predictive/sendEmailEvent/index.ts"],"names":[],"mappings":";;AAGA,oCAAgE;AAEhE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,oGAAoG;IACjH,MAAM,EAAE;QACN,WAAW,EAAE;YACX,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,eAAe,EAAE;YACf,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,oBAAoB;YAC3B,WAAW,EAAE,oBAAoB;YACjC,MAAM,EAAE,WAAW;YACnB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,aAAa;aACvB;SACF;QACD,aAAa,EAAE;YACb,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,wBAAwB;YAC/B,WAAW,EAAE,gDAAgD;YAC7D,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,yBAAyB;aACnC;SACF;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EAAE,8CAA8C;YAC3D,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,KAAK;SAChB;QACD,WAAW,EAAE;YACX,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EAAE,4CAA4C;YACzD,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,KAAK;SAChB;QACD,UAAU,EAAE;YACV,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,6BAA6B;YACpC,WAAW,EAAE,yEAAyE;YACtF,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,KAAK;SAChB;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,MAAM;YACd,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,oEAAoE;YACjF,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,OAAO;SACjB;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,IAAI,CAAC,OAAO,CAAC,eAAe,GAAG,oCAA4B,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAA;QAEzF,OAAO,OAAO,CAAC,eAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;SAC/B,CAAC,CAAA;IACJ,CAAC;IACD,YAAY,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QAC9B,KAAK,MAAM,EAAE,IAAI,IAAI,CAAC,OAAO,EAAE;YAC7B,EAAE,CAAC,eAAe,GAAG,oCAA4B,CAAC,EAAE,CAAC,eAAe,CAAC,CAAA;SACtE;QACD,OAAO,OAAO,CAAC,eAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE;SAC7B,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -32,7 +32,7 @@ function formatPurchasePayload(purchaseEvent) {
|
|
|
32
32
|
}
|
|
33
33
|
const action = {
|
|
34
34
|
title: 'Send Transaction Event',
|
|
35
|
-
description: '',
|
|
35
|
+
description: 'Send a purchase event to Actable for prediction. Purchase events should be in v2 Commerce Spec.',
|
|
36
36
|
fields: {
|
|
37
37
|
customer_id: {
|
|
38
38
|
label: 'Customer ID',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/actable-predictive/sendTransactionEvent/index.ts"],"names":[],"mappings":";;AAAA,wDAA8D;AAG9D,oCAAgE;AAEhE,SAAS,qBAAqB,CAAC,aAAsB;IACnD,aAAa,CAAC,iBAAiB,GAAG,oCAA4B,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAA;IAG/F,MAAM,QAAQ,GAAG,EAAE,CAAA;IACnB,IAAI,aAAa,CAAC,aAAa,EAAE;QAC/B,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,CAAA;KAC3C;IACD,IAAI,aAAa,CAAC,QAAQ,EAAE;QAC1B,KAAK,MAAM,OAAO,IAAI,aAAa,CAAC,QAAQ,EAAE;YAC5C,IAAI,OAAO,CAAC,MAAM,EAAE;gBAClB,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;aAC9B;SACF;KACF;IAGD,MAAM,WAAW,GAAG,EAAE,CAAA;IACtB,IAAI,aAAa,CAAC,QAAQ,EAAE;QAC1B,KAAK,MAAM,OAAO,IAAI,aAAa,CAAC,QAAQ,EAAE;YAC5C,MAAM,iBAAiB,GAAG,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,GAAG,CAAA;YAC3D,IAAI,iBAAiB,EAAE;gBACrB,WAAW,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAA;aACpC;SACF;KACF;IAED,OAAO;QACL,GAAG,mBAAI,CAAC,aAAa,EAAE,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;QACrD,cAAc,EAAE,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC;QACrC,aAAa,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC;KAClC,CAAA;AACH,CAAC;AAED,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,wBAAwB;IAC/B,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/actable-predictive/sendTransactionEvent/index.ts"],"names":[],"mappings":";;AAAA,wDAA8D;AAG9D,oCAAgE;AAEhE,SAAS,qBAAqB,CAAC,aAAsB;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AAI,EAAE,EAAE,IAAI,EAAE,CAAC,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE;SACtD,CAAC,CAAA;IACJ,CAAC;IACD,YAAY,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QAC9B,MAAM,gBAAgB,GAAa,EAAE,CAAA;QAErC,KAAK,MAAM,EAAE,IAAI,IAAI,CAAC,OAAO,EAAE;YAC7B,gBAAgB,CAAC,IAAI,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC,CAAA;SACjD;QACD,OAAO,OAAO,CAAC,eAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;SACjC,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AACD,kBAAe,MAAM,CAAA"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const index_1 = require("../index");
|
|
4
4
|
const action = {
|
|
5
5
|
title: 'Send Web Activity Event',
|
|
6
|
-
description: '',
|
|
6
|
+
description: 'Send a Web (or app) event to Actable for prediction. Use this to supply events like page views, link clicks, etc.',
|
|
7
7
|
fields: {
|
|
8
8
|
customer_id: {
|
|
9
9
|
label: 'Customer ID',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/actable-predictive/sendWebEvent/index.ts"],"names":[],"mappings":";;AAGA,oCAAgE;AAEhE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,yBAAyB;IAChC,WAAW,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/actable-predictive/sendWebEvent/index.ts"],"names":[],"mappings":";;AAGA,oCAAgE;AAEhE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,yBAAyB;IAChC,WAAW,EACT,mHAAmH;IACrH,MAAM,EAAE;QACN,WAAW,EAAE;YACX,KAAK,EAAE,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AAQ,EAAE,IAAI;YACd,OAAO,EAAE,KAAK;SACf;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,oCAA4B,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;QAE3E,OAAO,OAAO,CAAC,eAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;SAC/B,CAAC,CAAA;IACJ,CAAC;IACD,YAAY,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QAC9B,KAAK,MAAM,EAAE,IAAI,IAAI,CAAC,OAAO,EAAE;YAC7B,EAAE,CAAC,QAAQ,GAAG,oCAA4B,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAA;SACxD;QACD,OAAO,OAAO,CAAC,eAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE;SAC7B,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const actions_core_1 = require("@segment/actions-core");
|
|
4
|
+
const ga4_types_1 = require("../ga4-types");
|
|
4
5
|
const ga4_functions_1 = require("../ga4-functions");
|
|
5
6
|
const ga4_properties_1 = require("../ga4-properties");
|
|
6
7
|
const action = {
|
|
@@ -8,6 +9,8 @@ const action = {
|
|
|
8
9
|
description: 'Send event when a user submits their payment information',
|
|
9
10
|
defaultSubscription: 'type = "track" and event = "Payment Info Entered"',
|
|
10
11
|
fields: {
|
|
12
|
+
data_stream_type: { ...ga4_properties_1.data_stream_type },
|
|
13
|
+
app_instance_id: { ...ga4_properties_1.app_instance_id },
|
|
11
14
|
client_id: { ...ga4_properties_1.client_id },
|
|
12
15
|
user_id: { ...ga4_properties_1.user_id },
|
|
13
16
|
timestamp_micros: { ...ga4_properties_1.timestamp_micros },
|
|
@@ -23,7 +26,10 @@ const action = {
|
|
|
23
26
|
engagement_time_msec: ga4_properties_1.engagement_time_msec,
|
|
24
27
|
params: ga4_properties_1.params
|
|
25
28
|
},
|
|
26
|
-
perform: (request, { payload, features }) => {
|
|
29
|
+
perform: (request, { payload, features, settings }) => {
|
|
30
|
+
const stream_params = payload.data_stream_type === ga4_types_1.DataStreamType.Mobile
|
|
31
|
+
? ga4_functions_1.getMobileStreamParams(settings.apiSecret, settings.firebaseAppId, payload.app_instance_id)
|
|
32
|
+
: ga4_functions_1.getWebStreamParams(settings.apiSecret, settings.measurementId, payload.client_id);
|
|
27
33
|
if (payload.items && !payload.items.length) {
|
|
28
34
|
throw new actions_core_1.IntegrationError('Google requires one or more products in add_payment_info events.', 'Misconfigured required field', 400);
|
|
29
35
|
}
|
|
@@ -53,7 +59,7 @@ const action = {
|
|
|
53
59
|
ga4_functions_1.verifyUserProps(payload.user_properties);
|
|
54
60
|
}
|
|
55
61
|
const request_object = {
|
|
56
|
-
|
|
62
|
+
...stream_params.identifier,
|
|
57
63
|
user_id: payload.user_id,
|
|
58
64
|
events: [
|
|
59
65
|
{
|
|
@@ -74,7 +80,7 @@ const action = {
|
|
|
74
80
|
if (features && features['actions-google-analytics-4-add-timestamp']) {
|
|
75
81
|
request_object.timestamp_micros = ga4_functions_1.convertTimestamp(payload.timestamp_micros);
|
|
76
82
|
}
|
|
77
|
-
return request(
|
|
83
|
+
return request(`https://www.google-analytics.com/mp/collect?${stream_params.search_params}`, {
|
|
78
84
|
method: 'POST',
|
|
79
85
|
json: request_object
|
|
80
86
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/addPaymentInfo/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E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AAe,CAAC,CAAA;SACzC;QAED,MAAM,cAAc,GAA+B;YACjD,GAAG,aAAa,CAAC,UAAU;YAC3B,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,MAAM,EAAE;gBACN;oBACE,IAAI,EAAE,kBAAkB;oBACxB,MAAM,EAAE;wBACN,QAAQ,EAAE,OAAO,CAAC,QAAQ;wBAC1B,KAAK,EAAE,OAAO,CAAC,KAAK;wBACpB,MAAM,EAAE,OAAO,CAAC,MAAM;wBACtB,YAAY,EAAE,OAAO,CAAC,YAAY;wBAClC,KAAK,EAAE,WAAW;wBAClB,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;wBAClD,GAAG,OAAO,CAAC,MAAM;qBAClB;iBACF;aACF;YACD,GAAG,qCAAoB,CAAC,OAAO,CAAC,eAAe,CAAC;SACjD,CAAA;QAED,IAAI,QAAQ,IAAI,QAAQ,CAAC,0CAA0C,CAAC,EAAE;YACpE,cAAc,CAAC,gBAAgB,GAAG,gCAAgB,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;SAC7E;QAGD,OAAO,OAAO,CAAC,+CAA+C,aAAa,CAAC,aAAa,EAAE,EAAE;YAC3F,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,cAAc;SACrB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const actions_core_1 = require("@segment/actions-core");
|
|
4
|
+
const ga4_types_1 = require("../ga4-types");
|
|
4
5
|
const ga4_functions_1 = require("../ga4-functions");
|
|
5
6
|
const ga4_properties_1 = require("../ga4-properties");
|
|
6
7
|
const action = {
|
|
@@ -8,6 +9,8 @@ const action = {
|
|
|
8
9
|
description: 'Send event when a user adds items to a cart',
|
|
9
10
|
defaultSubscription: 'type = "track" and event = "Product Added"',
|
|
10
11
|
fields: {
|
|
12
|
+
data_stream_type: { ...ga4_properties_1.data_stream_type },
|
|
13
|
+
app_instance_id: { ...ga4_properties_1.app_instance_id },
|
|
11
14
|
client_id: { ...ga4_properties_1.client_id },
|
|
12
15
|
user_id: { ...ga4_properties_1.user_id },
|
|
13
16
|
timestamp_micros: { ...ga4_properties_1.timestamp_micros },
|
|
@@ -21,7 +24,10 @@ const action = {
|
|
|
21
24
|
engagement_time_msec: ga4_properties_1.engagement_time_msec,
|
|
22
25
|
params: ga4_properties_1.params
|
|
23
26
|
},
|
|
24
|
-
perform: (request, { payload, features }) => {
|
|
27
|
+
perform: (request, { payload, features, settings }) => {
|
|
28
|
+
const stream_params = payload.data_stream_type === ga4_types_1.DataStreamType.Mobile
|
|
29
|
+
? ga4_functions_1.getMobileStreamParams(settings.apiSecret, settings.firebaseAppId, payload.app_instance_id)
|
|
30
|
+
: ga4_functions_1.getWebStreamParams(settings.apiSecret, settings.measurementId, payload.client_id);
|
|
25
31
|
let googleItems = [];
|
|
26
32
|
if (payload.currency) {
|
|
27
33
|
ga4_functions_1.verifyCurrency(payload.currency);
|
|
@@ -42,7 +48,7 @@ const action = {
|
|
|
42
48
|
ga4_functions_1.verifyUserProps(payload.user_properties);
|
|
43
49
|
}
|
|
44
50
|
const request_object = {
|
|
45
|
-
|
|
51
|
+
...stream_params.identifier,
|
|
46
52
|
user_id: payload.user_id,
|
|
47
53
|
events: [
|
|
48
54
|
{
|
|
@@ -61,7 +67,7 @@ const action = {
|
|
|
61
67
|
if (features && features['actions-google-analytics-4-add-timestamp']) {
|
|
62
68
|
request_object.timestamp_micros = ga4_functions_1.convertTimestamp(payload.timestamp_micros);
|
|
63
69
|
}
|
|
64
|
-
return request(
|
|
70
|
+
return request(`https://www.google-analytics.com/mp/collect?${stream_params.search_params}`, {
|
|
65
71
|
method: 'POST',
|
|
66
72
|
json: request_object
|
|
67
73
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/addToCart/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/addToCart/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAG1E,4CAA0D;AAC1D,oDAOyB;AACzB,sDAa0B;AAE1B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,6CAA6C;IAC1D,mBAAmB,EAAE,4CAA4C;IACjE,MAAM,EAAE;QACN,gBAAgB,EAAE,EAAE,GAAG,iCAAgB,EAAE;QACzC,eAAe,EAAE,EAAE,GAAG,gCAAe,EAAE;QACvC,SAAS,EAAE,EAAE,GAAG,0BAAS,EAAE;QAC3B,OAAO,EAAE,EAAE,GAAG,wBAAO,EAAE;QACvB,gBAAgB,EAAE,EAAE,GAAG,iCAAgB,EAAE;QACzC,QAAQ,EAAE,EAAE,GAAG,yBAAQ,EAAE;QACzB,KAAK,EAAE;YACL,GAAG,sCAAqB;YACxB,QAAQ,EAAE,IAAI;SACf;QACD,KAAK,EAAE,EAAE,GAAG,sBAAK,EAAE;QACnB,eAAe,EAAE,gCAAe;QAChC,oBAAoB,EAAE,qCAAoB;QAC1C,MAAM,EAAE,uBAAM;KACf;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;QACpD,MAAM,aAAa,GACjB,OAAO,CAAC,gBAAgB,KAAK,0BAAc,CAAC,MAAM;YAChD,CAAC,CAAC,qCAAqB,CAAC,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC,eAAe,CAAC;YAC5F,CAAC,CAAC,kCAAkB,CAAC,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC,SAAS,CAAC,CAAA;QAEvF,IAAI,WAAW,GAAkB,EAAE,CAAA;QAEnC,IAAI,OA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AA;SAC7E;QAGD,OAAO,OAAO,CAAC,+CAA+C,aAAa,CAAC,aAAa,EAAE,EAAE;YAC3F,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,cAAc;SACrB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const actions_core_1 = require("@segment/actions-core");
|
|
4
|
+
const ga4_types_1 = require("../ga4-types");
|
|
4
5
|
const ga4_functions_1 = require("../ga4-functions");
|
|
5
6
|
const ga4_properties_1 = require("../ga4-properties");
|
|
6
7
|
const action = {
|
|
@@ -8,6 +9,8 @@ const action = {
|
|
|
8
9
|
description: 'Send event when a user adds items to a wishlist',
|
|
9
10
|
defaultSubscription: 'type = "track" and event = "Product Added to Wishlist"',
|
|
10
11
|
fields: {
|
|
12
|
+
data_stream_type: { ...ga4_properties_1.data_stream_type },
|
|
13
|
+
app_instance_id: { ...ga4_properties_1.app_instance_id },
|
|
11
14
|
client_id: { ...ga4_properties_1.client_id },
|
|
12
15
|
user_id: { ...ga4_properties_1.user_id },
|
|
13
16
|
timestamp_micros: { ...ga4_properties_1.timestamp_micros },
|
|
@@ -21,7 +24,10 @@ const action = {
|
|
|
21
24
|
engagement_time_msec: ga4_properties_1.engagement_time_msec,
|
|
22
25
|
params: ga4_properties_1.params
|
|
23
26
|
},
|
|
24
|
-
perform: (request, { payload, features }) => {
|
|
27
|
+
perform: (request, { payload, features, settings }) => {
|
|
28
|
+
const stream_params = payload.data_stream_type === ga4_types_1.DataStreamType.Mobile
|
|
29
|
+
? ga4_functions_1.getMobileStreamParams(settings.apiSecret, settings.firebaseAppId, payload.app_instance_id)
|
|
30
|
+
: ga4_functions_1.getWebStreamParams(settings.apiSecret, settings.measurementId, payload.client_id);
|
|
25
31
|
if (payload.currency) {
|
|
26
32
|
ga4_functions_1.verifyCurrency(payload.currency);
|
|
27
33
|
}
|
|
@@ -48,7 +54,7 @@ const action = {
|
|
|
48
54
|
ga4_functions_1.verifyUserProps(payload.user_properties);
|
|
49
55
|
}
|
|
50
56
|
const request_object = {
|
|
51
|
-
|
|
57
|
+
...stream_params.identifier,
|
|
52
58
|
user_id: payload.user_id,
|
|
53
59
|
events: [
|
|
54
60
|
{
|
|
@@ -67,7 +73,7 @@ const action = {
|
|
|
67
73
|
if (features && features['actions-google-analytics-4-add-timestamp']) {
|
|
68
74
|
request_object.timestamp_micros = ga4_functions_1.convertTimestamp(payload.timestamp_micros);
|
|
69
75
|
}
|
|
70
|
-
return request(
|
|
76
|
+
return request(`https://www.google-analytics.com/mp/collect?${stream_params.search_params}`, {
|
|
71
77
|
method: 'POST',
|
|
72
78
|
json: request_object
|
|
73
79
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/addToWishlist/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/addToWishlist/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,4CAA0D;AAG1D,oDAOyB;AACzB,sDAa0B;AAE1B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,iDAAiD;IAC9D,mBAAmB,EAAE,wDAAwD;IAC7E,MAAM,EAAE;QACN,gBAAgB,EAAE,EAAE,GAAG,iCAAgB,EAAE;QACzC,eAAe,EAAE,EAAE,GAAG,gCAAe,EAAE;QACvC,SAAS,EAAE,EAAE,GAAG,0BAAS,EAAE;QAC3B,OAAO,EAAE,EAAE,GAAG,wBAAO,EAAE;QACvB,gBAAgB,EAAE,EAAE,GAAG,iCAAgB,EAAE;QACzC,QAAQ,EAAE,EAAE,GAAG,yBAAQ,EAAE;QACzB,KAAK,EAAE,EAAE,GAAG,sBAAK,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|
|
@@ -3,11 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const actions_core_1 = require("@segment/actions-core");
|
|
4
4
|
const ga4_functions_1 = require("../ga4-functions");
|
|
5
5
|
const ga4_properties_1 = require("../ga4-properties");
|
|
6
|
+
const ga4_types_1 = require("../ga4-types");
|
|
6
7
|
const action = {
|
|
7
8
|
title: 'Begin Checkout',
|
|
8
9
|
description: 'Send event when a user begins checkout',
|
|
9
10
|
defaultSubscription: 'type = "track" and event = "Checkout Started"',
|
|
10
11
|
fields: {
|
|
12
|
+
data_stream_type: { ...ga4_properties_1.data_stream_type },
|
|
13
|
+
app_instance_id: { ...ga4_properties_1.app_instance_id },
|
|
11
14
|
client_id: { ...ga4_properties_1.client_id },
|
|
12
15
|
user_id: { ...ga4_properties_1.user_id },
|
|
13
16
|
timestamp_micros: { ...ga4_properties_1.timestamp_micros },
|
|
@@ -22,7 +25,10 @@ const action = {
|
|
|
22
25
|
engagement_time_msec: ga4_properties_1.engagement_time_msec,
|
|
23
26
|
params: ga4_properties_1.params
|
|
24
27
|
},
|
|
25
|
-
perform: (request, { payload, features }) => {
|
|
28
|
+
perform: (request, { payload, features, settings }) => {
|
|
29
|
+
const stream_params = payload.data_stream_type === ga4_types_1.DataStreamType.Mobile
|
|
30
|
+
? ga4_functions_1.getMobileStreamParams(settings.apiSecret, settings.firebaseAppId, payload.app_instance_id)
|
|
31
|
+
: ga4_functions_1.getWebStreamParams(settings.apiSecret, settings.measurementId, payload.client_id);
|
|
26
32
|
if (payload.currency) {
|
|
27
33
|
ga4_functions_1.verifyCurrency(payload.currency);
|
|
28
34
|
}
|
|
@@ -43,7 +49,7 @@ const action = {
|
|
|
43
49
|
ga4_functions_1.verifyUserProps(payload.user_properties);
|
|
44
50
|
}
|
|
45
51
|
const request_object = {
|
|
46
|
-
|
|
52
|
+
...stream_params.identifier,
|
|
47
53
|
user_id: payload.user_id,
|
|
48
54
|
events: [
|
|
49
55
|
{
|
|
@@ -63,7 +69,7 @@ const action = {
|
|
|
63
69
|
if (features && features['actions-google-analytics-4-add-timestamp']) {
|
|
64
70
|
request_object.timestamp_micros = ga4_functions_1.convertTimestamp(payload.timestamp_micros);
|
|
65
71
|
}
|
|
66
|
-
return request(
|
|
72
|
+
return request(`https://www.google-analytics.com/mp/collect?${stream_params.search_params}`, {
|
|
67
73
|
method: 'POST',
|
|
68
74
|
json: request_object
|
|
69
75
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/beginCheckout/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-analytics-4/beginCheckout/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAC1E,oDAOyB;AACzB,sDAc0B;AAC1B,4CAA0D;AAI1D,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,wCAAwC;IACrD,mBAAmB,EAAE,+CAA+C;IACpE,MAAM,EAAE;QACN,gBAAgB,EAAE,EAAE,GAAG,iCAAgB,EAAE;QACzC,eAAe,EAAE,EAAE,GAAG,gCAAe,EAAE;QACvC,SAAS,EAAE,EAAE,GAAG,0BAAS,EAAE;QAC3B,OAAO,EAAE,EAAE,GAAG,wBAAO,EAAE;QACvB,gBAAgB,EAAE,EAAE,GAAG,iCAAgB,EAAE;QACzC,MAAM,EAAE,EAAE,GAAG,uBAAM,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE,EAAE;QAClE,QAAQ,EAAE,EAAE,GAAG,yBAAQ,EAAE;QAGzB,KAAK,EAAE;YACL,GAAG,qCAAoB;YACvB,QAAQ,EAAE,IAAI;SACf;QACD,KAAK,EAAE,EAAE,GAAG,sBAAK,EAAE;QACnB,eAAe,EAAE,gCAAe;QAChC,oBAAoB,EAAE,qCAAoB;QAC1C,M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AO;YACxB,MAAM,EAAE;gBACN;oBACE,IAAI,EAAE,gBAAgB;oBACtB,MAAM,EAAE;wBACN,MAAM,EAAE,OAAO,CAAC,MAAM;wBACtB,QAAQ,EAAE,OAAO,CAAC,QAAQ;wBAC1B,KAAK,EAAE,WAAW;wBAClB,KAAK,EAAE,OAAO,CAAC,KAAK;wBACpB,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;wBAClD,GAAG,OAAO,CAAC,MAAM;qBAClB;iBACF;aACF;YACD,GAAG,qCAAoB,CAAC,OAAO,CAAC,eAAe,CAAC;SACjD,CAAA;QAED,IAAI,QAAQ,IAAI,QAAQ,CAAC,0CAA0C,CAAC,EAAE;YACpE,cAAc,CAAC,gBAAgB,GAAG,gCAAgB,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;SAC7E;QAGD,OAAO,OAAO,CAAC,+CAA+C,aAAa,CAAC,aAAa,EAAE,EAAE;YAC3F,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,cAAc;SACrB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const ga4_functions_1 = require("../ga4-functions");
|
|
4
4
|
const ga4_properties_1 = require("../ga4-properties");
|
|
5
|
+
const ga4_types_1 = require("../ga4-types");
|
|
5
6
|
const normalizeEventName = (name, lowercase) => {
|
|
6
7
|
name = name.trim();
|
|
7
8
|
name = name.replace(/\s/g, '_');
|
|
@@ -15,6 +16,8 @@ const action = {
|
|
|
15
16
|
description: 'Send any custom event',
|
|
16
17
|
defaultSubscription: 'type = "track"',
|
|
17
18
|
fields: {
|
|
19
|
+
data_stream_type: { ...ga4_properties_1.data_stream_type },
|
|
20
|
+
app_instance_id: { ...ga4_properties_1.app_instance_id },
|
|
18
21
|
clientId: { ...ga4_properties_1.client_id },
|
|
19
22
|
user_id: { ...ga4_properties_1.user_id },
|
|
20
23
|
timestamp_micros: { ...ga4_properties_1.timestamp_micros },
|
|
@@ -37,14 +40,17 @@ const action = {
|
|
|
37
40
|
engagement_time_msec: ga4_properties_1.engagement_time_msec,
|
|
38
41
|
params: { ...ga4_properties_1.params }
|
|
39
42
|
},
|
|
40
|
-
perform: (request, { payload, features }) => {
|
|
43
|
+
perform: (request, { payload, features, settings }) => {
|
|
44
|
+
const stream_params = payload.data_stream_type === ga4_types_1.DataStreamType.Mobile
|
|
45
|
+
? ga4_functions_1.getMobileStreamParams(settings.apiSecret, settings.firebaseAppId, payload.app_instance_id)
|
|
46
|
+
: ga4_functions_1.getWebStreamParams(settings.apiSecret, settings.measurementId, payload.clientId);
|
|
41
47
|
const event_name = normalizeEventName(payload.name, payload.lowercase);
|
|
42
48
|
if (features && features['actions-google-analytics-4-verify-params-feature']) {
|
|
43
49
|
ga4_functions_1.verifyParams(payload.params);
|
|
44
50
|
ga4_functions_1.verifyUserProps(payload.user_properties);
|
|
45
51
|
}
|
|
46
52
|
const request_object = {
|
|
47
|
-
|
|
53
|
+
...stream_params.identifier,
|
|
48
54
|
user_id: payload.user_id,
|
|
49
55
|
events: [
|
|
50
56
|
{
|
|
@@ -60,7 +66,7 @@ const action = {
|
|
|
60
66
|
if (features && features['actions-google-analytics-4-add-timestamp']) {
|
|
61
67
|
request_object.timestamp_micros = ga4_functions_1.convertTimestamp(payload.timestamp_micros);
|
|
62
68
|
}
|
|
63
|
-
return request(
|
|
69
|
+
return request(`https://www.google-analytics.com/mp/collect?${stream_params.search_params}`, {
|
|
64
70
|
method: 'POST',
|
|
65
71
|
json: request_object
|
|
66
72
|
});
|
|
@@ -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":";;AA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
|
|
2
3
|
export declare function verifyParams(params: object | undefined): void;
|
|
3
4
|
export declare function verifyUserProps(userProperties: object | undefined): void;
|
|
4
5
|
export declare function convertTimestamp(timestamp: string | undefined): number | undefined;
|
|
6
|
+
export declare function getMobileStreamParams(api_secret: string, firebase_app_id?: string, app_instance_id?: string): DataStreamParams;
|
|
7
|
+
export declare function getWebStreamParams(api_secret: string, measurement_id?: string, client_id?: string): DataStreamParams;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.convertTimestamp = exports.verifyUserProps = exports.verifyParams = exports.verifyCurrency = void 0;
|
|
3
|
+
exports.getWebStreamParams = exports.getMobileStreamParams = exports.convertTimestamp = exports.verifyUserProps = exports.verifyParams = 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) {
|
|
@@ -50,4 +50,34 @@ function convertTimestamp(timestamp) {
|
|
|
50
50
|
return Date.parse(timestamp) * 1000;
|
|
51
51
|
}
|
|
52
52
|
exports.convertTimestamp = convertTimestamp;
|
|
53
|
+
function getMobileStreamParams(api_secret, firebase_app_id, app_instance_id) {
|
|
54
|
+
if (!firebase_app_id) {
|
|
55
|
+
throw new actions_core_1.IntegrationError(`Firebase App ID is required for mobile app streams`, 'Invalid value', 400);
|
|
56
|
+
}
|
|
57
|
+
if (!app_instance_id) {
|
|
58
|
+
throw new actions_core_1.IntegrationError(`Firebase App Instance ID is required for mobile app streams`, 'Invalid value', 400);
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
search_params: `api_secret=${api_secret}&firebase_app_id=${firebase_app_id}`,
|
|
62
|
+
identifier: {
|
|
63
|
+
app_instance_id
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
exports.getMobileStreamParams = getMobileStreamParams;
|
|
68
|
+
function getWebStreamParams(api_secret, measurement_id, client_id) {
|
|
69
|
+
if (!measurement_id) {
|
|
70
|
+
throw new actions_core_1.IntegrationError(`Measurement ID is required for web streams`, 'Invalid value', 400);
|
|
71
|
+
}
|
|
72
|
+
if (!client_id) {
|
|
73
|
+
throw new actions_core_1.IntegrationError(`Client ID is required for web streams`, 'Invalid value', 400);
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
search_params: `api_secret=${api_secret}&measurement_id=${measurement_id}`,
|
|
77
|
+
identifier: {
|
|
78
|
+
client_id
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
exports.getWebStreamParams = getWebStreamParams;
|
|
53
83
|
//# 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;AAIhD,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;AAGD,SAAgB,YAAY,CAAC,MAA0B;IACrD,IAAI,CAAC,MAAM,EAAE;QACX,OAAM;KACP;IAED,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAC9C,IAAI,KAAK,YAAY,KAAK,EAAE;YAC1B,MAAM,IAAI,+BAAg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ED,SAAgB,qBAAqB,CACnC,UAAkB,EAClB,eAAwB,EACxB,eAAwB;IAExB,IAAI,CAAC,eAAe,EAAE;QACpB,MAAM,IAAI,+BAAgB,CAAC,oDAAoD,EAAE,eAAe,EAAE,GAAG,CAAC,CAAA;KACvG;IACD,IAAI,CAAC,eAAe,EAAE;QACpB,MAAM,IAAI,+BAAgB,CAAC,6DAA6D,EAAE,eAAe,EAAE,GAAG,CAAC,CAAA;KAChH;IACD,OAAO;QACL,aAAa,EAAE,cAAc,UAAU,oBAAoB,eAAe,EAAE;QAC5E,UAAU,EAAE;YACV,eAAe;SAChB;KACF,CAAA;AACH,CAAC;AAjBD,sDAiBC;AAED,SAAgB,kBAAkB,CAAC,UAAkB,EAAE,cAAuB,EAAE,SAAkB;IAChG,IAAI,CAAC,cAAc,EAAE;QACnB,MAAM,IAAI,+BAAgB,CAAC,4CAA4C,EAAE,eAAe,EAAE,GAAG,CAAC,CAAA;KAC/F;IACD,IAAI,CAAC,SAAS,EAAE;QACd,MAAM,IAAI,+BAAgB,CAAC,uCAAuC,EAAE,eAAe,EAAE,GAAG,CAAC,CAAA;KAC1F;IACD,OAAO;QACL,aAAa,EAAE,cAAc,UAAU,mBAAmB,cAAc,EAAE;QAC1E,UAAU,EAAE;YACV,SAAS;SACV;KACF,CAAA;AACH,CAAC;AAbD,gDAaC"}
|
|
@@ -12,6 +12,7 @@ export declare const shipping: InputField;
|
|
|
12
12
|
export declare const transaction_id: InputField;
|
|
13
13
|
export declare const affiliation: InputField;
|
|
14
14
|
export declare const client_id: InputField;
|
|
15
|
+
export declare const app_instance_id: InputField;
|
|
15
16
|
export declare const currency: InputField;
|
|
16
17
|
export declare const value: InputField;
|
|
17
18
|
export declare const coupon: InputField;
|
|
@@ -21,3 +22,4 @@ export declare const items_single_products: InputField;
|
|
|
21
22
|
export declare const items_multi_products: InputField;
|
|
22
23
|
export declare const engagement_time_msec: InputField;
|
|
23
24
|
export declare const timestamp_micros: InputField;
|
|
25
|
+
export declare const data_stream_type: InputField;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.timestamp_micros = exports.engagement_time_msec = exports.items_multi_products = exports.items_single_products = exports.minimal_items = exports.payment_type = exports.coupon = exports.value = exports.currency = exports.client_id = exports.affiliation = exports.transaction_id = exports.shipping = exports.tax = exports.creative_name = exports.creative_slot = exports.promotion_name = exports.promotion_id = exports.user_id = exports.params = exports.user_properties = exports.formatUserProperties = void 0;
|
|
3
|
+
exports.data_stream_type = exports.timestamp_micros = exports.engagement_time_msec = exports.items_multi_products = exports.items_single_products = exports.minimal_items = exports.payment_type = exports.coupon = exports.value = exports.currency = exports.app_instance_id = exports.client_id = exports.affiliation = exports.transaction_id = exports.shipping = exports.tax = exports.creative_name = exports.creative_slot = exports.promotion_name = exports.promotion_id = exports.user_id = exports.params = exports.user_properties = exports.formatUserProperties = void 0;
|
|
4
|
+
const ga4_types_1 = require("./ga4-types");
|
|
4
5
|
const formatUserProperties = (userProperties) => {
|
|
5
6
|
if (!userProperties) {
|
|
6
7
|
return undefined;
|
|
@@ -87,7 +88,7 @@ exports.client_id = {
|
|
|
87
88
|
label: 'Client ID',
|
|
88
89
|
description: 'Uniquely identifies a user instance of a web client.',
|
|
89
90
|
type: 'string',
|
|
90
|
-
required:
|
|
91
|
+
required: false,
|
|
91
92
|
default: {
|
|
92
93
|
'@if': {
|
|
93
94
|
exists: { '@path': '$.userId' },
|
|
@@ -96,6 +97,12 @@ exports.client_id = {
|
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
99
|
};
|
|
100
|
+
exports.app_instance_id = {
|
|
101
|
+
label: 'Firebase App Instance ID',
|
|
102
|
+
description: 'Uniquely identifies a specific installation of a Firebase app. This value needs to be retrieved through the Firebase SDK. Required for mobile app streams.',
|
|
103
|
+
type: 'string',
|
|
104
|
+
required: false
|
|
105
|
+
};
|
|
99
106
|
exports.currency = {
|
|
100
107
|
label: 'Currency',
|
|
101
108
|
type: 'string',
|
|
@@ -317,4 +324,12 @@ exports.timestamp_micros = {
|
|
|
317
324
|
'@path': '$.timestamp'
|
|
318
325
|
}
|
|
319
326
|
};
|
|
327
|
+
exports.data_stream_type = {
|
|
328
|
+
label: 'Data Stream Type',
|
|
329
|
+
type: 'string',
|
|
330
|
+
choices: [ga4_types_1.DataStreamType.Web.valueOf(), ga4_types_1.DataStreamType.Mobile.valueOf()],
|
|
331
|
+
description: 'The type of data stream this data belongs in. This can either be a web stream or a mobile app stream (iOS or Android).',
|
|
332
|
+
default: ga4_types_1.DataStreamType.Web.valueOf(),
|
|
333
|
+
required: true
|
|
334
|
+
};
|
|
320
335
|
//# sourceMappingURL=ga4-properties.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ga4-properties.js","sourceRoot":"","sources":["../../../src/destinations/google-analytics-4/ga4-properties.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ga4-properties.js","sourceRoot":"","sources":["../../../src/destinations/google-analytics-4/ga4-properties.ts"],"names":[],"mappings":";;;AACA,2CAA4C;AAErC,MAAM,oBAAoB,GAAG,CAAC,cAAkC,EAAsB,EAAE;IAC7F,IAAI,CAAC,cAAc,EAAE;QACnB,OAAO,SAAS,CAAA;KACjB;IAED,IAAI,UAAU,GAAG,EAAE,CAAA;IAEnB,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACtD,UAAU,GAAG,EAAE,GAAG,UAAU,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;IAChE,CAAC,CAAC,CAAA;IAEF,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,CAAA;AACxC,CAAC,CAAA;AAZY,QAAA,oBAAoB,wBAYhC;AAEY,QAAA,eAAe,GAAe;IACz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