@blotoutio/providers-facebook-sdk 0.16.2 → 0.17.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.js +3 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -31,9 +31,8 @@ var ProvidersFacebookSdk = (function () {
|
|
|
31
31
|
if (!manifest.variables || manifest.variables['enableBrowser'] !== '1') {
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
|
-
const firstLoad = !window.fbq;
|
|
35
34
|
snippet();
|
|
36
|
-
if (!
|
|
35
|
+
if (!window.fbq) {
|
|
37
36
|
return;
|
|
38
37
|
}
|
|
39
38
|
window.fbq('init', manifest.variables['pixelId'], {
|
|
@@ -111,10 +110,10 @@ var ProvidersFacebookSdk = (function () {
|
|
|
111
110
|
};
|
|
112
111
|
const tag = ({ data, eventName, manifestVariables, eventId }) => {
|
|
113
112
|
const payload = {
|
|
114
|
-
sdkVersion: "0.
|
|
113
|
+
sdkVersion: "0.17.0" ,
|
|
115
114
|
};
|
|
116
115
|
if (window.fbq && manifestVariables['enableBrowser'] === '1') {
|
|
117
|
-
window.fbq('
|
|
116
|
+
window.fbq('trackSingle', manifestVariables['pixelId'], eventName, prepareData(data, manifestVariables['variantId'] === '1'), {
|
|
118
117
|
eventID: eventId,
|
|
119
118
|
});
|
|
120
119
|
}
|