zar 0.4.2 → 0.4.4
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/dist/zar.es.js +5 -5
- package/dist/zar.es.js.map +1 -1
- package/dist/zar.iife.js +2 -2
- package/dist/zar.iife.js.map +1 -1
- package/dist/zar.umd.js +2 -2
- package/dist/zar.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/zar.es.js
CHANGED
|
@@ -1277,7 +1277,7 @@ function facebook(pluginConfig = {}) {
|
|
|
1277
1277
|
window.fbq("track", "PageView");
|
|
1278
1278
|
},
|
|
1279
1279
|
track: function({ payload, config, instance }) {
|
|
1280
|
-
window.fbq("
|
|
1280
|
+
window.fbq("trackCustom", payload.event, payload.properties);
|
|
1281
1281
|
},
|
|
1282
1282
|
identify: function({ payload, config }) {
|
|
1283
1283
|
},
|
|
@@ -1846,10 +1846,6 @@ function initTrackingPool() {
|
|
|
1846
1846
|
}
|
|
1847
1847
|
return poolIntervals;
|
|
1848
1848
|
}
|
|
1849
|
-
var context = drainPoolDataLayer() || {};
|
|
1850
|
-
if (poolConfig.contextCallback) {
|
|
1851
|
-
context = poolConfig.contextCallback(context) || {};
|
|
1852
|
-
}
|
|
1853
1849
|
var poolId = getPoolId(poolConfig.poolId);
|
|
1854
1850
|
if (!poolId) {
|
|
1855
1851
|
msg = "no pool ID";
|
|
@@ -1860,6 +1856,10 @@ function initTrackingPool() {
|
|
|
1860
1856
|
return poolIntervals;
|
|
1861
1857
|
}
|
|
1862
1858
|
if (!poolData) {
|
|
1859
|
+
var context = drainPoolDataLayer() || {};
|
|
1860
|
+
if (poolConfig.contextCallback) {
|
|
1861
|
+
context = poolConfig.contextCallback(context) || {};
|
|
1862
|
+
}
|
|
1863
1863
|
try {
|
|
1864
1864
|
poolData = yield getPoolNumber({ poolId, apiUrl, number: null, context });
|
|
1865
1865
|
} catch (e2) {
|