Disabling automatic outbound link tracking

By default, the Cordova SDK automatically sends an Interaction request to /mxo-click to facilitate last click attribution.

To disable this functionality, call the MedalliaMXO.setAutomaticInteractionTrackingConfiguration method with the appropriate configuration, as shown below:

const interactionTrackingConfig = {
	disableOutboundLinkTracking: true
}
MedalliaMXO.setAutomaticInteractionTrackingConfiguration(interactionTrackingConfig).then(() => {
	// do something after the interaction tracking configuration has been set
})
.catch((error) => {
	// do something with the error
	console.error(error)
})

If you have disabled automatic outbound link tracking, you can still trigger an outbound link tracking Interaction call programmatically to track a URL, by calling:

MedalliaMXO.sendInteractionForOutboundLink(new URL('https://myUrl.com')).then(() => {
	// do something after the outbound link has been sent
})
.catch((error) => {
	// do something with the error
	console.error(error)
})

Passing the URL will send an Interaction request /mxo-click using the same logic as available automatically.

This sends a POST request to Medallia Experience Orchestration.