@blotoutio/providers-facebook-sdk 0.70.1 → 0.72.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/index.cjs.js +4 -1
- package/index.js +4 -1
- package/index.mjs +4 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -145,6 +145,9 @@ const prepareData = (data, productIdMapping) => {
|
|
|
145
145
|
if (data['predicted_ltv']) {
|
|
146
146
|
payload['predicted_ltv'] = data['predicted_ltv'];
|
|
147
147
|
}
|
|
148
|
+
if (data['orderId']) {
|
|
149
|
+
payload['order_id'] = data['orderId'];
|
|
150
|
+
}
|
|
148
151
|
if (data['contents'] && Array.isArray(data['contents'])) {
|
|
149
152
|
payload['contents'] = data['contents'].map((item) => {
|
|
150
153
|
const content = {};
|
|
@@ -180,7 +183,7 @@ const prepareData = (data, productIdMapping) => {
|
|
|
180
183
|
};
|
|
181
184
|
const tag = ({ data, eventName, manifestVariables, eventId }) => {
|
|
182
185
|
const payload = {
|
|
183
|
-
sdkVersion: "0.
|
|
186
|
+
sdkVersion: "0.72.0" ,
|
|
184
187
|
};
|
|
185
188
|
if (window.fbq &&
|
|
186
189
|
!!manifestVariables['pixelId'] &&
|
package/index.js
CHANGED
|
@@ -146,6 +146,9 @@ var ProvidersFacebookSdk = (function () {
|
|
|
146
146
|
if (data['predicted_ltv']) {
|
|
147
147
|
payload['predicted_ltv'] = data['predicted_ltv'];
|
|
148
148
|
}
|
|
149
|
+
if (data['orderId']) {
|
|
150
|
+
payload['order_id'] = data['orderId'];
|
|
151
|
+
}
|
|
149
152
|
if (data['contents'] && Array.isArray(data['contents'])) {
|
|
150
153
|
payload['contents'] = data['contents'].map((item) => {
|
|
151
154
|
const content = {};
|
|
@@ -181,7 +184,7 @@ var ProvidersFacebookSdk = (function () {
|
|
|
181
184
|
};
|
|
182
185
|
const tag = ({ data, eventName, manifestVariables, eventId }) => {
|
|
183
186
|
const payload = {
|
|
184
|
-
sdkVersion: "0.
|
|
187
|
+
sdkVersion: "0.72.0" ,
|
|
185
188
|
};
|
|
186
189
|
if (window.fbq &&
|
|
187
190
|
!!manifestVariables['pixelId'] &&
|
package/index.mjs
CHANGED
|
@@ -143,6 +143,9 @@ const prepareData = (data, productIdMapping) => {
|
|
|
143
143
|
if (data['predicted_ltv']) {
|
|
144
144
|
payload['predicted_ltv'] = data['predicted_ltv'];
|
|
145
145
|
}
|
|
146
|
+
if (data['orderId']) {
|
|
147
|
+
payload['order_id'] = data['orderId'];
|
|
148
|
+
}
|
|
146
149
|
if (data['contents'] && Array.isArray(data['contents'])) {
|
|
147
150
|
payload['contents'] = data['contents'].map((item) => {
|
|
148
151
|
const content = {};
|
|
@@ -178,7 +181,7 @@ const prepareData = (data, productIdMapping) => {
|
|
|
178
181
|
};
|
|
179
182
|
const tag = ({ data, eventName, manifestVariables, eventId }) => {
|
|
180
183
|
const payload = {
|
|
181
|
-
sdkVersion: "0.
|
|
184
|
+
sdkVersion: "0.72.0" ,
|
|
182
185
|
};
|
|
183
186
|
if (window.fbq &&
|
|
184
187
|
!!manifestVariables['pixelId'] &&
|