Clew

How to add a survey popup to a WordPress site without a developer

A step-by-step guide to a survey on WordPress: install one line, write the questions and options in the Clew editor, choose the page and the moment, and read the answers in your stats.

Time
● 15 minutes
Price
14-day free trial, no card
Who does it
WordPress administrator

Example: a survey on WordPress

An online school tests an idea before building it: on the pricing page, after 20 seconds, a survey asks “What format are you missing?” with four options, then an optional free answer. Three hundred answers in two weeks cost less than a quarter spent building a course nobody was waiting for.

A free answer is your visitors’ data. In a text box a person can write anything, including things they should not. We store those answers; you own them. Do not ask a survey for ID numbers, card details or passwords, and keep a line in your privacy policy saying that you collect feedback.

This format is part of the Pro plan. Every new account starts with a 14-day free trial with all formats and audience rules, no card required. When the trial ends nothing is deleted and published items keep showing; the Free plan keeps tours and tooltips free.

How to add a survey on WordPress, step by step

  1. Step 01

    Copy your Clew snippet

    Create a free account (or sign in), add your site and open Admin → Overview. Click the line in the “No signal from the widget yet.” card to copy it — it carries your real site key instead of the placeholder.

    <!-- Clew: replace PASTE_YOUR_SITE_KEY with the site key from Admin > Overview -->
    <script src="https://tryclew.io/widget/PASTE_YOUR_SITE_KEY.js" async></script>
    Clew admin Overview with the embed line and a masked site key (website survey on WordPress)
    Step 1 · schematic illustration
  2. Step 02

    Install a header code plugin

    In Plugins → Add New install and activate the free WPCode plugin (or use your theme’s own “header scripts” option). Don’t edit header.php: theme updates overwrite it.

    Paths to the head code field in popular CMS, including WordPress WPCode (website survey on WordPress)
    Step 2 · schematic illustration
  3. Step 03

    Paste the line into the Header box

    Open Code Snippets → Header & Footer, paste the Clew line into Header and press Save Changes.

    A Header code field with the Clew script tag pasted (website survey on WordPress)
    Step 3 · schematic illustration
  4. Step 04

    Purge the cache

    If you use WP Rocket, LiteSpeed Cache, W3 Total Cache or a CDN, purge the cache. In “delay JavaScript” settings, exclude tryclew.io/widget.

    A caching plugin toolbar with the Clear cache action highlighted (website survey on WordPress)
    Step 4 · schematic illustration
  5. Step 05

    Build the survey in Clew

    In Clew open Flows → + New flow and set Format to Survey. Write Question and the options, tick Required question where it matters, and add a second question with + Question. Set Where it shows to “In a corner” if you would rather not cover the page.

    A survey popup in the corner of a page: a question and four options (website survey on WordPress)
    Step 5 · schematic illustration
  6. Step 06

    Choose where, when and for whom it shows

    In the same editor, set Where to show (page URL), When to show, Audience targeting and Frequency. These are the settings of the example above:

    SettingValue
    FormatSurvey
    Where to show (page URL)Section by prefix /pricing
    When to showAfter N seconds: 20 seconds
    Audience targetingNo rules — everyone who opens the page
    FrequencyOnce per visitor
    Clew tour editor with the format, page URL rule, trigger and audience rule fields (website survey on WordPress)
    Step 6 · schematic illustration
  7. Step 07

    Publish and check it on the live site

    Set Status to Published and save. Open the page in a private window — Clew remembers who has already seen a “once” item, so your usual browser may skip it. Views, completions and drop-offs appear in the tour stats.

    Clew admin Overview with the green “Widget is live” card (website survey on WordPress)
    Step 7 · schematic illustration

Pitfalls: website survey on WordPress

“Delay JavaScript” hides the website survey until interaction

WP Rocket, LiteSpeed and Perfmatters can postpone scripts until the first scroll or click. The widget then starts late and a Right on page load item looks broken. Add tryclew.io/widget to the exclusions.

Don’t ask in the first second

Somebody who has not looked at anything yet answers at random or closes the window. Use After N seconds on the page that matters, or On the Nth visit.

The options have to cover the answer

If none of them fits, a required question becomes a trap and people close the survey. Add something like “Just looking for now”, or make the question optional.

Questions and answers

Do I need a survey plugin?

No. Clew installs as one line in the theme or through a code-snippet plugin; the survey is built in the panel and taken down without touching the site.

Where do I read the answers?

In the tour’s stats: how many answered, how many finished, the split across options, and the free answers as a list with a CSV export.

Does it work on WordPress.com?

Plugins such as WPCode need a WordPress.com Business plan or higher. Self-hosted WordPress works on any hosting.

Can I ask only people who reached the cart?

Yes: point Where to show (page URL) at the cart or checkout address, or pass a property with Clew.identify() and add a rule in Audience targeting.

Does the survey work with tracking turned off?

No. Answers travel on the same channel as events: with data-no-track or Clew.setTracking(false) the survey shows and can be filled in, but nothing is sent.

One line on your site — then tours, tooltips and checklists without releases.

Get your site key — freeHow Clew worksFree plan forever, no credit card

Product tours, popups and onboarding in the age of AI

7 patterns with step counts, copy rules and what to measure, what AI changes, and a checklist before you publish. PDF, 2 pages. What is inside →