How to add a survey popup to your website with Google Tag Manager without a developer
A step-by-step guide to a survey via Google Tag Manager: 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
- Anyone who can publish in GTM
Example: a survey via Google Tag Manager
A SaaS asks free accounts only: on the pricing page, after 20 seconds, visitors with the property plan: "free" see “What is stopping you from upgrading?”. Clew is installed as a GTM tag, the property arrives through Clew.identify(), and the product team reads the answers in the panel.
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 via Google Tag Manager, step by step
- 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>

Step 1 · schematic illustration - Step 02
Create a Custom HTML tag in GTM
In tagmanager.google.com open your container, Tags → New → Tag Configuration → Custom HTML, and paste the Clew line. Name the tag
Clew widget.
Step 2 · schematic illustration - Step 03
Fire it on All Pages
In Triggering choose All Pages and save. Load it everywhere: which page shows the website survey is decided in Clew, not in GTM.

Step 3 · schematic illustration - Step 04
Preview, then Submit and Publish
Check in Preview that
Clew widgetis under Tags Fired, then Submit → Publish. Nothing reaches the live site before you publish.
Step 4 · schematic illustration - 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.

Step 5 · schematic illustration - 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:
Setting Value Format Survey Where to show (page URL) Section by prefix /pricingWhen to show After N seconds: 20 seconds Audience targeting Property planequalsfreeFrequency Once per visitor 
Step 6 · schematic illustration - 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.

Step 7 · schematic illustration
Pitfalls: website survey via Google Tag Manager
Don’t use a History Change trigger
The widget follows single-page navigation on its own. A second trigger on History Change only loads the script again for nothing.
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
How do I limit the survey to one segment?
Send the property with Clew.identify() and add a rule in Audience targeting. Without it, everyone who reaches the page is asked.
Do the answers reach Google Analytics?
No, by design: the answers sit in Clew, apart from the events. Analytics sees only that a survey was shown and completed — no text and no chosen options.
Does GTM slow the website survey down?
The widget loads a moment after the container. Only an item with Right on page load on the very first page view might appear a fraction of a second later than with a direct install.
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.
What else you can add via Google Tag Manager
- How to add a popup to your website with Google Tag Manager without a developer
- How to create a product tour via Google Tag Manager without a developer
- How to add an onboarding checklist via Google Tag Manager without a developer
- How to set up user onboarding via Google Tag Manager without a developer
- How to add a tooltip via Google Tag Manager without a developer
- How to create an interactive product guide via Google Tag Manager without a developer
- How to add a paywall upgrade prompt via Google Tag Manager without a developer
- How to add a rating popup to your website with Google Tag Manager without a developer
- How to add an announcement bar to your website with Google Tag Manager without a developer
- How to make an image popup on your website with Google Tag Manager without a developer