Integration Guide
Step-by-step guide to integrate Orshot Embed in your application
Learn how to integrate Orshot Embed into your application with practical examples and best practices.
Quick Start
1. Get Your Embed Code
After configuring your embed settings, copy the generated embed HTML:
2. Add to Your App
Paste the embed code where you want the design interface to appear:
3. Style the Container
Make sure your embed has proper dimensions:
Framework Examples
React/Next.js
Vue.js
Angular
URL Parameters
templateId
Open with a specific template:
language
Override the default language:
theme
Set a specific theme (if supported):
Combined Parameters
Responsive Design
Make your embed work on all screen sizes:
Error Handling
Domain Restrictions
If users see a domain error, check your allowed domains list:
Loading States
Show a loading indicator while the embed loads:
Security Best Practices
Content Security Policy
Add the embed domain to your CSP:
Domain Validation
Always configure allowed domains in your embed settings. Never leave this empty in production.
HTTPS Only
Always use HTTPS URLs for production embeds.
Performance Tips
Lazy Loading
Load embeds only when needed:
Preloading
For better user experience, preload the embed:
Common Issues
Embed Not Loading
- Check if embed is enabled in settings
- Verify the embed ID is correct
- Ensure your domain is in the allowed list
Permission Errors
- Check workspace permissions
- Verify user roles and access
- Review embed configuration settings
Styling Issues
- Ensure proper container dimensions
- Check for CSS conflicts
- Verify responsive breakpoints
Testing
Development
Use localhost in your allowed domains:
Staging
Test with your staging domain before production:
Production
Always test the full user flow in your production environment before launch.