Skip to content

JavaScript API

Opting out

This function opts you out of tracking.

Txt.optOutTracking()
Txt.optOutTracking('essential')
Argument Type Description
mode string (optional) Should be either 'essential' or 'none'. Choosing 'essential' will still show experiences wherever possible without placing cookies. Choosing 'none' will opt out of all experiences.