@blotoutio/providers-tiktok-sdk 0.20.0 → 0.22.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 +6 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -160,10 +160,13 @@ var ProvidersTiktokSdk = (function () {
|
|
|
160
160
|
const tag = ({ data, eventName, manifestVariables, eventId }) => {
|
|
161
161
|
if (window.ttq && manifestVariables['enableBrowser'] === '1') {
|
|
162
162
|
const tiktokEventName = getEventName(eventName, manifestVariables);
|
|
163
|
-
window.ttq.instance(manifestVariables['pixelId']).track(tiktokEventName,
|
|
163
|
+
window.ttq.instance(manifestVariables['pixelId']).track(tiktokEventName, {
|
|
164
|
+
...prepareData(data),
|
|
165
|
+
event_id: eventId,
|
|
166
|
+
});
|
|
164
167
|
}
|
|
165
168
|
return {
|
|
166
|
-
sdkVersion: "0.
|
|
169
|
+
sdkVersion: "0.22.0" ,
|
|
167
170
|
};
|
|
168
171
|
};
|
|
169
172
|
|
|
@@ -181,7 +184,7 @@ var ProvidersTiktokSdk = (function () {
|
|
|
181
184
|
window.edgetagProviders.push(data);
|
|
182
185
|
}
|
|
183
186
|
}
|
|
184
|
-
catch
|
|
187
|
+
catch {
|
|
185
188
|
// No window
|
|
186
189
|
}
|
|
187
190
|
|