@blotoutio/providers-facebook-sdk 0.17.0 → 0.18.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 +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -35,9 +35,10 @@ var ProvidersFacebookSdk = (function () {
35
35
  if (!window.fbq) {
36
36
  return;
37
37
  }
38
- window.fbq('init', manifest.variables['pixelId'], {
38
+ window['fbq']('init', manifest.variables['pixelId'], {
39
39
  external_id: userId,
40
40
  });
41
+ window['fbq'].disablePushState = true;
41
42
  };
42
43
 
43
44
  const prepareData = (data, useVariantId) => {
@@ -110,7 +111,7 @@ var ProvidersFacebookSdk = (function () {
110
111
  };
111
112
  const tag = ({ data, eventName, manifestVariables, eventId }) => {
112
113
  const payload = {
113
- sdkVersion: "0.17.0" ,
114
+ sdkVersion: "0.18.0" ,
114
115
  };
115
116
  if (window.fbq && manifestVariables['enableBrowser'] === '1') {
116
117
  window.fbq('trackSingle', manifestVariables['pixelId'], eventName, prepareData(data, manifestVariables['variantId'] === '1'), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-facebook-sdk",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "Facebook Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",