Industry guru Dave Taylor offers free tech support on a wide variety of technical and business topics, including HTML, Apple iPhone, online advertising, Cascading Style Sheets, Web design, management, Unix, Linux, search engine optimization, online dating, Mac OS X, shell script programming and Microsoft Windows.

How can I embed a survey on my web page or blog?

Giving out a link to take a survey is pretty easy, but I think it would be much easier if I could just put a survey directly it into my website. So my questions is, how do I put a survey into my website without having to send out a link?


Dave's Answer:

[I am good friends with the folk at SurveyGizmo.com. In fact, we used to share an office suite! When I saw this question arise, I asked them if they'd be willing to answer it, and I'm glad to have received the following terrific response from Brittany Heidtke on the team.]

It's actually pretty simple to build a survey online and there are a variety of survey tools to choose from. SurveyGizmo is one of the few tools that allows you to drop a multipage survey or form directly into a web page. We call this technique embedding, and give you three ways you can embed using a JavaScript snippet, an iFrame or the static HTML.

The JavaScript is the simplest method and is similar to how YouTube embeds videos that they host, iFrames are handy if you need to avoid JavaScript and the static HTML might be appropriate for very high traffic page.

To get started, you'll want to create a free account at SurveyGizmo.com and click "Create Survey" to get started. You can use one of the pre-made templates, or start with a blank survey.

You'll start adding questions to the Question Editor page, which looks like this:

survey gizmo edit survey question editor

You can add as many questions as you need, as well as insert more advanced features like email auto-responders or conditional question logic. If you do plan on embedding the survey in your website one gotcha to look out for is under the Look & Feel tab. You'll want to set the survey theme to the "Embeddable Theme" which will strip out most of the formatting and let the survey appear more seamless in your web page.

When you're done with Look & Feel, go over to the Publish tab and Click the "Launch Your Survey Now" button:

survey gizmo publish design mode

Once you do this, you are given a variety of link options to hand out to survey takers, and if you scroll down a little bit you'll see the three embedding options.

The first, and easiest method is the JavaScript embed. It will dynamically resize your web page to fit your survey. It looks something like this:

survey gizmo advanced published embedded surveys

It also gives you two other embed options, the iFrame, as well as the HTML for the first page of the survey (this is ideal for embedding surveys into sites like MySpace).

Decide which code option you are going to use, and then copy and paste it into a page on your website. Below is what the copy and pasted JavaScript code looks like on a WordPress page. If you are using WordPress or another CMS with a rich text editor be sure to turn that off on your preferences page before attempting this. The rich text editor (even using the Source tab) just destroys the Javascript with lines breaks. If you are using your own HTML pages you can paste in the embed code and FTP your file back up.

survey gizmo example survey code

VoilĂ  you're done! It's pretty easy to embed a survey into a website, where ever you need it.

If you are using the JavaScript or iFrame methods you can edit your survey in SurveyGizmo and don't need to change anything on your web page. You will need to clear your cache or restart your browser to see new changes but that will not affect your visitors.


Thanks for this great article and demonstration, Brittany.



Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Stumble Upon    

Subscribe!

Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.

Comments

You know that you can do pretty much the same things with a Google product, aka Google Docs?
All you need to do is go to writely.com (or docs.google.com) and then click New --> Form. What's nice about this is that if you already use Gmail, Google Docs, or if you have a Google Account you don't need to create another. Two, it's on Google, so it's safe, and three, it has all or most of the features of SurveyGizmo.com.

Posted by: Itamar at May 18, 2009 12:53 PM

Hi Dave, I want to download survey gizmo data to spss...can't figure how to do it. The excel download is a report and not the raw data. Can you help? Barbara

Posted by: Barbara at June 22, 2009 5:30 PM

Hi Dave,

I am part of the communications team in my company and write articles for the company newsletter. These articles are put into an HTML format and emailed using MS Outlook.

I would like to embed a short survey / quiz next to each article. I understand that I need some html text to be embedded into the newsletter and a web server. I have no idea how to move ahead and have no budget for this. Pls help.

Posted by: Carlyle at August 27, 2009 1:11 AM

I have something to say, now that you mention it, but ...
Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you for all your efforts on this Web site by buying you a cup of coffee!

I do have a comment, now that you mention it!











Remember personal info?


Please note that I will never send you any unsolicited commercial email. Ever.

While I'm at it, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site.








Ask Dave Taylor: The iPhone App: Advertisement


Uniblue: Free Virus Scan

Follow me on Twitter @DaveTaylor

Search
Find just the answers you seek from among our 2300+ free tech support articles by using our Lijit search engine.


Help!





Subscribe to
Ask Dave Taylor!

Add to Google Reader
Add to My Yahoo!
Subscribe in NewsGator Online

RDF   XML

Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.


Recent Entries
Book Links
© 2002 - 2009 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site.

[whiteboard marker tray]
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.