Jump to Content
API Reference
Log In
API Reference
Log In
API Reference
Opting in
Search
All
Pages
Start typing to search…
JUMP TO
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 question
post
Sending feedback
post
Summarization
post
Similarity
post
Powered by
Opting in
Sample code
This function opts you in to tracking.
JavaScript
Txt.optInTracking()
Table of Contents
Sample code