Getting TID

Retrieving the current one-tid can be useful if you want to monitor the current user in Medallia Experience Orchestration. The one-tid can also be used if you need to pass the identity of the current user to another system which sends data to Medallia Experience Orchestration.

To get the current one-tid used by the Cordova SDK, call:

MedalliaMXO.getTid().then((tid) => {
	// do something with the TID
})
.catch((error) => {
	// do something with the error
	console.error(error)
})

This will return the one-tid assigned to the current user as a String.