Installation
Installing the Bliss SDK
There are multiple ways to integrate the Bliss SDK into your application.
Browser Integration
ES Modules (Recommended)
<script
type="module"
src="https://cdn.blissguarantee.com/sdk/v1/bliss-sdk.es.js"
></script>This is the recommended approach for modern web applications. It provides:
- Better tree-shaking
- Modern JavaScript features
- Improved performance
Traditional Script Tag
<script src="https://cdn.blissguarantee.com/sdk/v1/bliss-sdk.js"></script>Use this approach for:
- Legacy browser support
- Simpler integration
- No module bundler requirement
Validation
Verify your installation by checking if the SDK is properly loaded:
if (window.Bliss) {
console.log("Bliss SDK successfully loaded");
} else {
console.error("Failed to load Bliss SDK");
}Troubleshooting
Common Issues
-
SDK Not Loading
- Check your internet connection
- Verify the CDN URL is correct
- Ensure no Content Security Policy (CSP) is blocking the SDK
-
Configuration Errors
- Verify your credentials are correct
- Check the console for detailed error messages
- Ensure you're calling configure() before using any SDK features
Getting Help
If you encounter issues, contact support at [email protected]
Updated 3 months ago
