Jump to Content
Unless
API Reference
Log InUnless
API Reference
Log In
API Reference
All
Pages
Start typing to search…

Javascript API

  • Javascript API documentation
  • Waiting for the Txt object
  • Identifying visitors
  • AI component
    • Open the AI component
    • Set chat metadata
    • AI actions
  • Audiences
    • Updating a profile
    • Checking audiences
  • Launching a web component
  • Tracking consent
    • Opting in
    • Opting out
  • Listening for events
  • Content Security Policy (CSP)
  • Utility functions
    • Logout
    • Send a message

REST API

  • AI
    • Sending a questionpost
    • Sending feedbackpost
    • Summarizationpost
    • Similaritypost
Powered by 

Opting in

Sample code

This function opts you in to tracking.

Txt.optInTracking()
  • Table of Contents
    • Sample code