Overview
Custom code injection allows you to add:- Analytics tracking scripts
- Chat widgets
- Custom CSS styles
- JavaScript functionality
- Meta tags
Workspace-Level vs Website-Level
- Workspace-Level: Applies to all websites in workspace
- Website-Level: Applies to specific website only
Adding Workspace Custom Code
- Open Settings in sidebar
- Go to Custom Code tab
- Add code to Header or Body section
- Click Save
Header Code
Code added before</head>:
Body Code
Code added before</body>:
Adding Website Custom Code
For website-specific code:- Open website editor
- Go to Settings → Integrations
- Use the integration options
- Or add custom code in theme settings
Common Use Cases
Facebook Pixel
Custom CSS
Cookie Consent Banner
Best Practices
- Test code in staging first
- Minimize script size for performance
- Use async/defer for non-critical scripts
- Validate HTML before adding
- Document what each code snippet does
Troubleshooting
Code not appearing:- Check for syntax errors
- Verify code is saved
- Clear browser cache
- Check browser console for errors
- Load scripts asynchronously
- Minimize inline code
- Use CDN-hosted libraries

