@mparticle/web-id5-kit 1.0.0 → 1.0.3
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/ID5Kit.common.js +23 -5
- package/package.json +1 -1
package/dist/ID5Kit.common.js
CHANGED
|
@@ -1037,7 +1037,7 @@ Common.prototype.logId5Id = function (id5Id) {
|
|
|
1037
1037
|
id5IdType: this.id5IdType,
|
|
1038
1038
|
};
|
|
1039
1039
|
|
|
1040
|
-
window.mParticle.
|
|
1040
|
+
window.mParticle.setIntegrationAttribute(this.moduleId, integrationAttributes);
|
|
1041
1041
|
};
|
|
1042
1042
|
|
|
1043
1043
|
Common.prototype.buildPartnerData = function (mParticleUser) {
|
|
@@ -1264,7 +1264,13 @@ IdentityHandler.prototype.onLoginComplete = function(
|
|
|
1264
1264
|
var partnerData = this.common.buildPartnerData(mParticleUser);
|
|
1265
1265
|
|
|
1266
1266
|
if (partnerData) {
|
|
1267
|
-
var id5Instance = window.ID5.init({
|
|
1267
|
+
var id5Instance = window.ID5.init({
|
|
1268
|
+
partnerId: this.common.partnerId,
|
|
1269
|
+
pd: partnerData,
|
|
1270
|
+
consentData: {
|
|
1271
|
+
allowedVendors: this.common.allowedVendors
|
|
1272
|
+
}
|
|
1273
|
+
});
|
|
1268
1274
|
var logId5Id = this.common.logId5Id;
|
|
1269
1275
|
|
|
1270
1276
|
id5Instance.onAvailable(function(status){
|
|
@@ -1276,7 +1282,12 @@ IdentityHandler.prototype.onLoginComplete = function(
|
|
|
1276
1282
|
//Must re-initialize ID5 without partner identities (pd) in the config to revert to an anonymous ID5 ID
|
|
1277
1283
|
IdentityHandler.prototype.onLogoutComplete = function(
|
|
1278
1284
|
) {
|
|
1279
|
-
var id5Instance = window.ID5.init({
|
|
1285
|
+
var id5Instance = window.ID5.init({
|
|
1286
|
+
partnerId: this.common.partnerId,
|
|
1287
|
+
consentData: {
|
|
1288
|
+
allowedVendors: this.common.allowedVendors
|
|
1289
|
+
}
|
|
1290
|
+
});
|
|
1280
1291
|
var logId5Id = this.common.logId5Id;
|
|
1281
1292
|
|
|
1282
1293
|
id5Instance.onAvailable(function(status){
|
|
@@ -1296,7 +1307,8 @@ var identityHandler = IdentityHandler;
|
|
|
1296
1307
|
|
|
1297
1308
|
var initialization = {
|
|
1298
1309
|
name: 'ID5',
|
|
1299
|
-
moduleId:
|
|
1310
|
+
moduleId: 248,
|
|
1311
|
+
vendors: [ '131', 'ID5-1747' ],
|
|
1300
1312
|
/* ****** Fill out initForwarder to load your SDK ******
|
|
1301
1313
|
Note that not all arguments may apply to your SDK initialization.
|
|
1302
1314
|
These are passed from mParticle, but leave them even if they are not being used.
|
|
@@ -1310,6 +1322,7 @@ var initialization = {
|
|
|
1310
1322
|
common.partnerId = forwarderSettings.partnerId;
|
|
1311
1323
|
common.id5IdType = forwarderSettings.id5IdType;
|
|
1312
1324
|
common.moduleId = this.moduleId;
|
|
1325
|
+
common.allowedVendors = this.vendors;
|
|
1313
1326
|
|
|
1314
1327
|
if (!testMode) {
|
|
1315
1328
|
/* Load your Web SDK here using a variant of your snippet from your readme that your customers would generally put into their <head> tags
|
|
@@ -1322,7 +1335,12 @@ var initialization = {
|
|
|
1322
1335
|
|
|
1323
1336
|
id5Script.onload = function() {
|
|
1324
1337
|
|
|
1325
|
-
var id5Instance = window.ID5.init({
|
|
1338
|
+
var id5Instance = window.ID5.init({
|
|
1339
|
+
partnerId: common.partnerId,
|
|
1340
|
+
consentData: {
|
|
1341
|
+
allowedVendors: common.allowedVendors
|
|
1342
|
+
}
|
|
1343
|
+
});
|
|
1326
1344
|
|
|
1327
1345
|
id5Instance.onAvailable(function(status){
|
|
1328
1346
|
common.logId5Id(status.getUserId());
|