@blotoutio/providers-tiktok-sdk 0.25.0 → 0.26.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 +8 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -159,14 +159,18 @@ var ProvidersTiktokSdk = (function () {
|
|
|
159
159
|
};
|
|
160
160
|
const tag = ({ data, eventName, manifestVariables, eventId }) => {
|
|
161
161
|
if (window.ttq && manifestVariables['enableBrowser'] === '1') {
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
const name = data['skipTransformation']
|
|
163
|
+
? eventName
|
|
164
|
+
: getEventName(eventName, manifestVariables);
|
|
165
|
+
const eventData = data['skipTransformation'] ? data : prepareData(data);
|
|
166
|
+
delete eventData['skipTransformation'];
|
|
167
|
+
window.ttq.instance(manifestVariables['pixelId']).track(name, {
|
|
168
|
+
...eventData,
|
|
165
169
|
event_id: eventId,
|
|
166
170
|
});
|
|
167
171
|
}
|
|
168
172
|
return {
|
|
169
|
-
sdkVersion: "0.
|
|
173
|
+
sdkVersion: "0.26.0" ,
|
|
170
174
|
};
|
|
171
175
|
};
|
|
172
176
|
|