Share a survey: link, QR code and embed
Hand a survey out without a campaign: copy its link, print its QR code, put it on your website inline, as a popup or as a corner bubble, and pass a reference that is saved with each answer.
On this page
Every survey has an open link that anyone who has it can answer. The Share panel hands it out in four ways: as a link, a QR code, a survey embedded on your website, and a link that carries a reference of yours. Use it when you do not know in advance who will answer — customers in a shop, visitors to a page, people at an event. To send a survey to named people and follow who has answered, run a campaign instead. Taking sign-ups for an event, with a close date and a number of places? See run a registration with a form.
The link in the Share panel is the survey's open link. The personal link a campaign sends each person never appears here.
Before you start
- Publish the survey. Until it is published, its link, QR code and embed all say it does not exist, and the panel says Not live yet above the link.
- Decide who may answer. In the survey's Settings, Who can answer the link is Anyone with the link (no sign-in, so answers are anonymous) or Only members of this workspace (they sign in first, and you choose whose name the answer carries). A survey for members is in every member's My feed; one for anyone with the link is only in the feeds of the people it was sent to. See Survey settings.
- To embed: access to your website's HTML, or to a block in your site builder that accepts custom HTML.
Open the Share panel
Open the survey and click Share at the top of its page, or the share button in the builder's preview bar once the survey is saved. The panel holds every way to hand it out:
- Link. The survey's own address, with Copy and Open as a respondent, which opens it in a new tab as someone answering would see it.
- Pass a reference. A value of yours in the link, saved with each answer.
- QR code. The same link as a code to scan, to download for print.
- Embed on a website. The code that shows the survey on a page of your own: inline, as a popup or as a bubble in a corner.
Pass a reference
A reference is a value of yours that travels with the link and is saved with the answer: an order number, a customer id, the shop a poster hangs in. It comes from a hidden field that reads a parameter of the link.
- In the builder, add a Hidden field to the survey. If the survey has none yet, the Pass a reference card says so, and its Add a hidden field link takes you there. Polzy never adds a field by itself.
- Under URL parameter name, write the parameter it reads, such as
ref. - Open Share and switch on Pass a reference. The link, the QR code and every embed code now end in
?ref=YOUR_VALUE, one parameter for each hidden field. - Replace
YOUR_VALUEwith each person's value before you send the link or place the code.
For example, a link for order 10482 reads:
https://app.polzy.ai/survey/6721f0c3a9e4b2d815f7c904?ref=10482
A hidden field with a default value and no parameter in the link saves its default with every answer. c, token, embed and lang belong to the survey link itself, so they cannot be used as a parameter name.
Each hidden field is a column on the survey's Responses tab, headed by its title, and the search there finds a reference by its value. See Read individual responses.
On an anonymous survey — every link open to anyone, and a members-only one with anonymous answers — a reference is kept only when it is the hidden field's default value or one of its listed options; any other value from the link is dropped, so a link cannot name the person. The card says so when the switch is on.
Print a QR code
Scanning the code opens the link above. Print it on a poster, a table card, a receipt or the last slide of a talk.
- In the QR code section, check the preview. With Pass a reference on, the code carries the reference too.
- Click PNG for a slide or a document, or SVG for print, where it stays sharp at any size.
With Logo on, the Polzy mark sits in the centre of the code, in the preview and in both downloads. The code is then made with the highest level of error correction, so it still scans with its centre covered. The code is drawn in your browser, so the link is not sent anywhere to make it.
Taking the Polzy mark off the code is on Team and up, with the same custom branding that takes “Powered by Polzy” off a survey. On another plan the Logo switch stays on and an Upgrade button sits beside it; if your workspace has switched branding off, the button opens the setting instead.
Embed on a website
Under Embed on a website, choose how the survey sits on your page in Embed as: Inline, Popup or Bubble. Each shows a small picture of where it goes and its options. Click Copy code under Embed code and paste the code into your page's HTML, where the survey should appear.
| Mode | What it does | Options |
|---|---|---|
| Inline | Sits inside your page, where you paste the code, as wide as its container. | Height: the room the page keeps for it, 320 to 1600 pixels, 720 to start. The frame grows when a page of the survey needs more, so it never scrolls inside itself. |
| Popup | A button you place anywhere; clicking it opens the survey over your page. | Button label: its text, “Take the survey” to start. |
| Bubble | A small button in a bottom corner of every page with the code, which opens the survey the same way. | Position: Left or Right. Button label: its text. |
The code you copy is written for your survey, with its own address and your choices. It looks like this.
Inline — a frame, and a few lines that let it grow with the survey:
<iframe
src="https://app.polzy.ai/survey/6721f0c3a9e4b2d815f7c904?embed=1"
title="Customer satisfaction"
width="100%"
height="720"
style="border:0;max-width:100%"
loading="lazy"
data-polzy-survey
></iframe>
<script>
/* resizes the frame to the survey's height */
</script>
Popup — the script, and a button you can move anywhere on the page:
<script
src="https://app.polzy.ai/embed/v1.js"
data-polzy-survey="6721f0c3a9e4b2d815f7c904"
data-mode="popup"
data-title="Customer satisfaction"
data-close="Close"
defer
></script>
<button type="button" data-polzy-open="6721f0c3a9e4b2d815f7c904">Take the survey</button>
To use a button of your own, give any element on the page data-polzy-open with the survey's id. The survey closes with its close button, the Escape key or a click outside it; while it is open the keyboard stays inside it, and afterwards it goes back to the button.
Bubble — the script alone:
<script
src="https://app.polzy.ai/embed/v1.js"
data-polzy-survey="6721f0c3a9e4b2d815f7c904"
data-mode="bubble"
data-title="Customer satisfaction"
data-close="Close"
data-label="Take the survey"
data-position="right"
defer
></script>
Popup and bubble load one small script from Polzy, /embed/v1.js on the app's address. It sets no cookies and stores nothing.
Embedded, the survey leaves out what a page of its own needs: no logo or title, because your page introduces it, and no light and dark switch, because it follows the reader's own setting. The progress, the privacy link and your survey's colours stay.
- A survey that asks people to sign in. Signing in cannot happen inside another website. Embedded, the survey shows a button that opens it in a new tab, and the panel says so under the code.
- Only surveys. A survey is the only page of Polzy another website can show. Sign-in and your workspace refuse to be shown inside one.
Put it in your site builder
Most site builders have a block for custom HTML. Paste the code there:
- WordPress: add a Custom HTML block. See WordPress: Custom HTML block.
- Webflow: add a Code Embed element. See Webflow: Custom code embed.
- Squarespace: add a Code block. See Squarespace: Code blocks.
- Wix: add an Embed Code element. See Wix: Embedding custom code.
For a popup or a bubble, the builder must let scripts run in the block; some only allow that on a paid plan.
A link in one language
A survey offered in several languages opens in each person's own language, chosen in this order: the one they picked on the survey's language menu, which is remembered on that device; the one in their profile; the one in the link, such as ?lang=fr; their browser's; and otherwise the survey's default. To hand out a link that opens in one language — on a French poster, say — choose it under Language in the Share panel: the link, the QR code and the embed code then open the survey in that language. Left on The respondent’s own, they open in each reader's. The link carries it as lang, such as ?lang=fr, and whoever opens it can still switch with the language menu at the top of the survey.
Troubleshooting
| What you see | Why | What to do |
|---|---|---|
| The link or embed says the survey does not exist | The survey is not published yet, or was closed. | Publish it, or reopen it. |
| The embedded frame is blank or says it refused to connect | Your website's Content-Security-Policy blocks frames or scripts from Polzy. | Allow Polzy's app address in frame-src (inline) and script-src and frame-src (popup and bubble). |
| The popup button does nothing | The script was stripped, or the button's id does not match the script's. | Paste the whole code; check data-polzy-open carries the survey's id. |
| Embedded, the survey shows a button instead of the questions | The survey asks people to sign in. | Expected: it opens in a new tab. To answer in place, set Who can answer the link to Anyone with the link. |
| A reference is missing from an answer | The parameter name differs from the hidden field's, or the survey is anonymous and the value is not an allowed one. | Match the names exactly; on an anonymous survey, use a listed option. |
| The Logo switch cannot be turned off | Removing the mark needs custom branding (Team and up). | Upgrade, or switch branding on in workspace settings. |
Good to know
- One link, every channel. The same open link works in an email of your own, a chat, a newsletter or a printed code. Answers arrive like any other; the survey's Responses tab lists them.
- Changing the survey later. The link stays the same when you edit and republish the survey, so printed codes and embeds keep working.
- Closing it. Close the survey and the link, the code and every embed say it is closed.
Related articles
Signed-in members can ask Polzy or message the team from Support. How fast we reply depends on your plan.