@blotoutio/providers-facebook-sdk 0.22.2 → 0.23.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.
Files changed (2) hide show
  1. package/index.js +6 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -120,10 +120,14 @@ var ProvidersFacebookSdk = (function () {
120
120
  };
121
121
  const tag = ({ data, eventName, manifestVariables, eventId }) => {
122
122
  const payload = {
123
- sdkVersion: "0.22.2" ,
123
+ sdkVersion: "0.23.0" ,
124
124
  };
125
125
  if (window.fbq && manifestVariables['enableBrowser'] === '1') {
126
- window.fbq('trackSingle', manifestVariables['pixelId'], eventName, prepareData(data, getProductMappingModel(manifestVariables['productIdMapping'], manifestVariables['variantId'])), {
126
+ const eventData = data['skipTransformation'] === true
127
+ ? data
128
+ : prepareData(data, getProductMappingModel(manifestVariables['productIdMapping'], manifestVariables['variantId']));
129
+ delete eventData['skipTransformation'];
130
+ window.fbq('trackSingle', manifestVariables['pixelId'], eventName, eventData, {
127
131
  eventID: eventId,
128
132
  });
129
133
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-facebook-sdk",
3
- "version": "0.22.2",
3
+ "version": "0.23.0",
4
4
  "description": "Facebook Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",