@blotoutio/edgetag-sdk-browser 1.10.0 → 1.10.2
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 +7 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -922,7 +922,7 @@
|
|
|
922
922
|
referrer: getReferrer(destination),
|
|
923
923
|
search: getSearch(destination),
|
|
924
924
|
locale: getLocale(),
|
|
925
|
-
sdkVersion: "1.10.
|
|
925
|
+
sdkVersion: "1.10.2" ,
|
|
926
926
|
...(payload || {}),
|
|
927
927
|
};
|
|
928
928
|
let storage = {};
|
|
@@ -1100,6 +1100,7 @@
|
|
|
1100
1100
|
const requestCountry = getSetting(destination, 'geoCountry') || null;
|
|
1101
1101
|
const requestRegion = getSetting(destination, 'geoRegion') || null;
|
|
1102
1102
|
const isEURequest = getSetting(destination, 'isEURequest') || false;
|
|
1103
|
+
const sessionId = getSetting(destination, 'sessionId');
|
|
1103
1104
|
const userId = getUserId$1(destination);
|
|
1104
1105
|
const providerData = {};
|
|
1105
1106
|
const consent = getConsent$1(destination);
|
|
@@ -1137,6 +1138,7 @@
|
|
|
1137
1138
|
: data;
|
|
1138
1139
|
result[variable.tagName] = pkg.tag({
|
|
1139
1140
|
userId,
|
|
1141
|
+
sessionId,
|
|
1140
1142
|
eventName,
|
|
1141
1143
|
eventId,
|
|
1142
1144
|
data: JSON.parse(JSON.stringify(payload)),
|
|
@@ -1622,6 +1624,9 @@
|
|
|
1622
1624
|
if (dbIndex != null && !isNaN(dbIndex)) {
|
|
1623
1625
|
url.searchParams.set('storageId', dbIndex.toString());
|
|
1624
1626
|
}
|
|
1627
|
+
if (preferences.sessionId) {
|
|
1628
|
+
url.searchParams.set('sessionId', preferences.sessionId);
|
|
1629
|
+
}
|
|
1625
1630
|
url.searchParams.set('pageUrl', getPageUrl(preferences.edgeURL));
|
|
1626
1631
|
getRequest(url.href)
|
|
1627
1632
|
.then((result) => {
|
|
@@ -1645,6 +1650,7 @@
|
|
|
1645
1650
|
isNewUser: result.isNewUser,
|
|
1646
1651
|
consent: getConsent$1(preferences.edgeURL) || result.consent,
|
|
1647
1652
|
userId: result.userId,
|
|
1653
|
+
sessionId: result.session.sessionId,
|
|
1648
1654
|
manifest: result.result,
|
|
1649
1655
|
browserPackages: Object.values(providers),
|
|
1650
1656
|
storageId: result.storageId,
|