in PartsUnlimited-aspnet45/src/PartsUnlimitedWebsite/Scripts/ai.0.15.0-build58334.js [1997:2019]
TelemetryContext.prototype._applyUserContext = function (envelope, userContext) {
if (userContext) {
var tagKeys = new AI.ContextTagKeys();
if (typeof userContext.accountAcquisitionDate === "string") {
envelope.tags[tagKeys.userAccountAcquisitionDate] = userContext.accountAcquisitionDate;
}
if (typeof userContext.accountId === "string") {
envelope.tags[tagKeys.userAccountId] = userContext.accountId;
}
if (typeof userContext.agent === "string") {
envelope.tags[tagKeys.userAgent] = userContext.agent;
}
if (typeof userContext.id === "string") {
envelope.tags[tagKeys.userId] = userContext.id;
}
if (typeof userContext.authenticatedId === "string") {
envelope.tags[tagKeys.userAuthUserId] = userContext.authenticatedId;
}
if (typeof userContext.storeRegion === "string") {
envelope.tags[tagKeys.userStoreRegion] = userContext.storeRegion;
}
}
};