Install on WordPress
The Voxtrics Feedback plugin places your surveys on a WordPress site without any code: a popup, a popup with no button or a chat survey on every page from its settings, and any survey, an inline form included, wherever you add its block or shortcode. It works on a WordPress site you host yourself and on WordPress.com with any paid plan.
Before you start
- In Domains, add the domain your WordPress site opens on, for
example
example.com, or its WordPress.com address such asyour-site.wordpress.com. A survey loads only on the domain it belongs to. - Create the survey under that domain and publish it.
- Copy the survey's ID: on the Surveys list, open the
survey's embed code. The ID is the
formIdvalue.
Install the plugin
- In your WordPress dashboard, open Plugins → Add New Plugin and search for Voxtrics Feedback.
- Click Install Now, then Activate.
Installing a plugin and changing its settings take an Administrator account.
Popup, popup with no button or chat on every page
- Go to Settings → Voxtrics Feedback.
- In Survey on every page, paste the survey's ID.
- Click Save Changes.
The settings page also shows your site's host name: the survey must belong to that domain in Voxtrics. To show a popup or chat survey on some pages only, leave this field empty and add the block below to those pages instead.
A survey in a chosen place: the Voxtrics survey block
- Open the page or post in the editor, or a template part such as the footer, or a widget area, and click + where the survey should appear.
- Search for Voxtrics survey and add the block.
- Paste the survey's ID into Survey ID.
- Save the page.
An inline form shows where the block is. A popup or chat survey added with the block appears over the page, on the pages that have the block. The block stores only the survey's ID, so it works whoever saves the page, unlike code pasted into a Custom HTML block.
Classic editor and page builders: the shortcode
Where the block editor isn't available, use the shortcode with your survey's ID in place of
YOUR_SURVEY_ID:
[voxtrics_survey id="YOUR_SURVEY_ID"]
It works in the classic editor and anywhere a page builder accepts shortcodes, for example Elementor's Shortcode widget.
Without the plugin
If you'd rather not install the plugin, paste the survey's code yourself.
Popup, popup with no button or chat: WPCode
WordPress has no field of its own for code that runs on every page, so the code goes in through a plugin. These steps use WPCode (formerly Insert Headers and Footers), a free plugin made for this.
-
In your WordPress dashboard, open Plugins → Add New Plugin, search for WPCode, click Install Now, then Activate.
-
Go to Code Snippets → Header & Footer.
-
In Footer, paste this, with your survey's ID in place of
YOUR_SURVEY_ID:<script src="https://feedback.voxtrics.io/assets/prod/index.iife.js"></script> <script> window.SiteUtilsFeedback.initiateFeedbackModule({ formId: 'YOUR_SURVEY_ID' }); </script>Footer code runs at the end of every page, after the page itself has loaded.
-
Click Save Changes.
WPCode's own guide to these fields: Using the Global Header & Footer settings.
Inline form: the Custom HTML block
-
Open the page or post in the editor and click + where the survey should appear.
-
Search for Custom HTML and add the block.
-
Paste your survey's embed code, with your survey's ID in place of
YOUR_SURVEY_ID:<div id="voxtrics-survey-YOUR_SURVEY_ID"></div> <script src="https://feedback.voxtrics.io/assets/prod/index.iife.js"></script> <script> window.SiteUtilsFeedback.initiateFeedbackModule({ formId: 'YOUR_SURVEY_ID', container: document.getElementById('voxtrics-survey-YOUR_SURVEY_ID'), }); </script> -
Save the page.
Pages built with Elementor take the same code in its HTML widget, and Divi pages in its Code module.
If the survey doesn't appear
- Check that the survey is published and belongs to the domain your site opens on. A domain added as
example.comcoverswww.example.comtoo, but notyour-site.wordpress.com. - If the plugin says the value is not a survey ID, copy the
formIdvalue from the embed code again, without the quotes around it. - Clear the cache of your caching plugin or your host after adding the survey: a cached copy of the page doesn't have it yet.
- Plugins that delay, defer or combine JavaScript to speed the site up (WP Rocket, LiteSpeed Cache,
Autoptimize and the like) can start the survey late or stop it. Exclude
feedback.voxtrics.ioandSiteUtilsFeedbackfrom those settings. - Code placed in WPCode's Header runs before the page has loaded, so the survey doesn't start. Move it to Footer.
- The survey stays on the site only while the plugin that places it is active: deactivating the Voxtrics Feedback plugin or WPCode removes it.
- On-site and email surveys aren't placed on a site. Share their link instead.