---
schema_version: "1"
id: a52d2b8aade404e98d8a8ed38de1bd9cc30fab20a82b115ca8c139eb8335c613
title: Best Practices for the Tableau Next Embedding SDK
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/sdk/guides/sdk-integration-best-practices.md
canonical_url: https://developer.salesforce.com/docs/analytics/sdk/guide/sdk-integration-best-practices.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9083a281a2515f0fd9c5a5fbb300f3b6d1f0044b8b0b5488d0f865c633829225
products:
  - Tableau Next Embedding SDK
  - analytics
---
# Best Practices for the Tableau Next Embedding SDK

These are best practices to get the most from your embedding implementation.

## Authentication Management
- Don't hardcode OAuth tokens or Frontdoor URLs in your client-side code.
- Pass credentials to the browser only when strictly necessary. Credentials can be scraped from the browser by malicious actors.

## Event Handling
Add event listeners to your component to handle interactions. Customize component actions and messaging to your end users

## Build for Responsiveness
Use an HTML container to embed your component. The built-in container responsiveness to the changes in the web page ensures the component changes height and width smoothly.

## Utilize Debug Mode
Before deploying your web app for production, turn on debug mode to check for warnings and errors. Remember to turn off debug mode in production.