Embed your survey on a website | LimeSurvey

Embed your survey on a website

About embedding

Embedding shows your survey inside a page of your own website, so visitors answer without leaving it. You copy a piece of code from LimeSurvey and paste it into your page. Five embed modes decide how the survey appears:

ModeWhat visitors seeOptions
StandardThe survey in your page, where you paste the codeNone
Pop-UpThe survey in a window over your pageFull screen on mobile, Trigger on... (Automatic, Scroll to section or On click), Window title, Width, Height
WidgetA tab at the side of the page that opens the surveyFull screen on mobile, Widget position (left-side or right-side), Widget Title
E-MailA picture of the start of the survey in your email, linked to the surveyNone
ButtonA button that opens the surveyFull screen on mobile, Custom icon, Button text, Font size, Rounded corners, Button color, Open in... (New window or Same window)

The Embed survey card on the Sharing overview shows four of the modes and calls Pop-Up Overlay.

Turn on embedding

Embedding is off by default for privacy and security reasons.

  1. Click Share in the top bar, then the gear in the left toolbar (1) and Embed survey (2).

  2. In the message Please keep in mind, click Enable embedding (3).

The Embed survey page with embedding turned off and three areas numbered 1 to 3, the gear, Embed survey and the message with Enable embedding

This sets Allow survey embedding to Yes under Settings > Publication & access.

Choose a mode and set it up

The Embed survey page with the Pop-Up mode and five areas numbered 1 to 5, from Embed survey to Display code

  1. Under Embed survey options, click a mode (2).

  2. Set the options of the mode (3). Standard and E-Mail have none.

  3. Click Update preview (4) to see your latest changes in the preview below.

Copy the code

Click Display code (5). In the Embed code dialog:

  1. Click Copy (2). The code (1) is copied to your clipboard.

  2. Paste the code into the HTML of your page, at the place where the survey should appear. For E-Mail, paste it into the HTML editor of your email tool, for example Gmail, Zoho, Mailchimp or HubSpot.

The Embed code dialog with the code numbered 1 and Copy numbered 2

Note: The code is visible in the source of your page, so anyone can copy it and show your survey on another site. Embed it only on sites you manage or trust. The responses are always stored in your LimeSurvey account.

Participants can answer an embedded survey only while it is active. See Activate your survey.

Turn embedding off

Set Allow survey embedding to No under Settings > Publication & access. See Schedule your survey and control access.

Next steps

FAQ

Where are the responses of an embedded survey stored?

In your LimeSurvey account, like all other responses. You see them in Results.

Why does the preview not show my latest changes?

Click Update preview. The preview does not refresh on its own while you edit.

Can I put the survey in an email?

Yes, with E-Mail. The code shows a picture of the start of the survey. Recipients click it to open the survey in their browser.