Disabling automatic identity transfer
By default, the SDK adds a one-tid
URL query parameter to outgoing network requests. To disable it, call the MedalliaMXO.setIdentityTransferConfiguration
method with the appropriate configuration, as shown below:
const identityTransferConfig = {
disableIdentityTransfer: true
}
MedalliaMXO.setIdentityTransferConfiguration(identityTransferConfig).then(() => {
// do something after the identity transfer configuration has been set
})
.catch((error) => {
// do something with the error
console.error(error)
})
This also disables the ability to automatically pick up parameters from deep links that open an app, while also preventing the SDK from adding a one-tid
as a URL query parameter to web links opened from the app, resulting in the customer's identity not being transferred as they move across channels.
If you have disabled automatic identity transfer you can still send all URL parameters received as part of a URL scheme, which opens your app, by calling:
MedalliaMXO.processDeepLink('https://site.com?a=foo&b=bar').then(() => {
// do something with the deep link
})
.catch((error) => {
// do something with the error
console.error(error)
})
MedalliaMXO.processDeepLink(new URL('https://site.com?c=baz&d=qux').then(() => {
// do something with the deep link
})
.catch((error) => {
// do something with the error
console.error(error)
})