You can embed PaperSurvey forms directly into your website pages, allowing visitors to complete surveys without leaving your site. This creates a seamless experience that matches your website's design and keeps visitors engaged throughout the survey process.
Embedding with JavaScript
The easiest way to embed your survey is using the JavaScript snippet:
- Navigate to your survey settings
- Click "Embed Code" to generate the snippet
- Copy the provided code
- Paste it into your website's HTML where you want the survey to appear
The embed code automatically handles:
- Responsive sizing to fit different screen sizes
- Height adjustment based on survey length
- Cross-browser compatibility
- Mobile device optimization
Customizing the Embedded Survey
To make the survey blend seamlessly with your website, use Custom CSS in the survey settings to match your site's look and feel. You can adjust font families and sizes, colors and backgrounds, button styles, and spacing and margins.
Example CSS:
body { font-family: 'Your-Font', sans-serif; }
.submit-button { background-color: #your-color; }If you need help with CSS customization, your web developer can assist with matching your site's design.
Important Considerations
Browser compatibility: The embed includes a fallback link reading "Click here to complete the survey" for visitors using:
- Privacy-focused browser extensions that block iframes
- Older browsers with limited iframe support
- Corporate networks with strict security settings
Security restrictions: Some websites may prevent embedding due to:
- Content Security Policy (CSP) settings
- X-Frame-Options headers
- HTTPS/SSL requirements
If embedding does not work on your site, consider using a custom domain instead.
Alternative: Custom Domain Hosting
For complete control over the survey experience, Enterprise Plus subscribers can host surveys on their own domain. This gives you full branding control, eliminates iframe restrictions, provides direct URL access, and works better for sharing.
Learn more about custom domain setup.