# How Do I Embed a Survey in My Website?

Source: PaperSurvey.io Help Center
URL: https://www.papersurvey.io/help/web-surveys/article/embed-web-survey

---

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:

1. Navigate to your survey settings
2. Click "Embed Code" to generate the snippet
3. Copy the provided code
4. Paste it into your website's HTML where you want the survey to appear

[Image: Embed Survey JavaScript Code]

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**:
```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 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](/help/web-surveys/article/custom-survey-domain-or-subdomain.md).

---

Need more? The complete PaperSurvey.io help center and blog is available as a single document at https://www.papersurvey.io/llms-full.txt.
