top of page

How to embed targeted surveys

  • Customer Success Team
  • 6 days ago
  • 2 min read
ree

The survey is embedded by the Extellio script that runs on the website. It will be placed in the container or element specified so you're in control of where it will be shown. 


Depending on how your website is built, the process of creating the container or element can differ a bit. In some web builders you can drag and drop elements, in others, you have to create the container or element yourself by writing HTML.


The easiest way to do it with HTML is to create a new <div> tag.

<div id="extellio-targeted-survey">&nbsp;</div> 

(&nbsp; just means non-breaking space) 


We recommend using a specific and explanatory ID or class for the container, like extellio-targeted-survey, so you know what the container is used for.  


You then set the properties (like height or width) of the element with CSS. Most easily you add it through inline or internal CSS. 


Inline CSS 

<div id="extellio-targeted-survey" style="width:100%;">&nbsp;</div>

This example creates an element that covers the entire width of the body of the page. You can set the survey's size later in the platform. 


Internal CSS 

<style>#extellio-targeted-survey{height: 200px; /*this sets the height of the element*/width: 80%; /*this sets the width of the element in relation to the page*/margin: auto; /*this centers the element*/}</style>

The survey will only be shown in the container, so you can place the container on multiple pages, as long as it has the same ID or class. 


Next, you go into the settings for the survey, then under "Behavior", you'll find the option to embed the survey. 


In the target container field enter the CSS selector for your container. Use # for the ID or . if you use the element's class. 


ree

Once the survey is published and live, the script will place the survey (as an iframe) on top of the element.

 

ree

If you want a live example of an embedded survey, check out our feedback survey below.

Related Posts

See All
Does it matter how your survey looks?

You have a lot of options when you create a survey at Extellio. Not only can you choose between different question categories (such as single-choice or text answer), you can also adapt the design of t

 
 
How to prevent a high drop-off rate for your survey

When collecting survey data, you can either only collect the submitted answers (as in when the respondents have answered all required questions and successfully submitted the survey) or you can collec

 
 
Tips when categorizing comments

But first, why should you categorize the comments? For role and purpose, categorizing the follow-up questions will show if there are missing alternatives, or if the respondents are misinterpreting the

 
 
bottom of page