Feedbackly
v. 5.0.3
v. 5.0.3
  • Getting started
  • Fetch API
    • Authentication
    • Responses
      • GET Responses
      • GET Response by id
    • Response chains
      • GET Response-chains
      • GET Response-chain by id
    • Questions
      • GET Questions
      • GET Question by id
    • Surveys
      • GET Surveys
      • GET Surveys by id
    • Touchpoints
      • GET Touchpoints
      • GET Touchpoint by id
    • Unsubscriptions
      • GET Unsubscriptions
      • GET Unsubscriptions by Channel id
    • Notes
      • Entity relationships
      • Pagination
      • Question types
  • Dispatch API
    • Authentication
    • Preparing Campaign
    • Sending Surveys
      • POST Trigger
  • Website widgets
    • Getting started
    • Attaching custom metadata to responses
    • Triggering surveys via custom properties
    • Widget Hooks
    • Setting the language
    • Debugging website widgets
Powered by GitBook
On this page
  • Installing the website widget
  • Verifying installation
  • Async script loading and custom actions
  • Custom configurations
  1. Website widgets

Getting started

PreviousPOST TriggerNextAttaching custom metadata to responses

Last updated 1 year ago

Installing the website widget

Get the embed script from the Dashboard and integrate it into your website code directly or utilize GTM or a similar tool. The code should look like this:

<!-- UNIVERSAL FBLY WEBSITE SCRIPT -->
<script async src="https://embed.feedbackly.cloud/widget.js"></script>
<script>
window.fblywc = window.fblywc||[];function fblytag(){fblywc.push(arguments);}
fblytag("oid", "<OID>");
fblytag("dmn", "<DMN>");
</script>
<!-- Eo UNIVERSAL FBLY WEBSITE SCRIPT -->

Verifying installation

Go to your website and open up the developer console in your browser. In Chrome, this can be done via the command ⌘ + option + J

Find the console from the bottom of the developer tools. Type in FBLY and press enter. If your plugin is installed properly, the command should return true. Your plugin is all set up!

If the script is not installed, you'll get an error like so:

If this is the case, please verify that the plugin is installed properly on your website. See also:

Async script loading and custom actions

Because FBLY.actions may not be available when trying to use custom actions and properties because of a late async loading of the main script, please load this script before your custom code:

<script src="https://embed.feedbackly.cloud/actions.js"></script>

or alternatively use the code found from that file as inline.

See also:

Custom configurations

For embedded survey widget, instead of inserting manually DIV tag to the website (found from Feedbackly dashboard) to mark a place where widget should be rendered, you can use these script configurations to define the position.

For <ID>, use ID found from the original DIV tag: fbly-embedded-<ID>.

fblytag("embedid", "<ID>"); //for auto tag generation for embedded survey widgets.
fblytag("appendto", "footer"); //optional: <element name> | #<div id>. Example: footer | #mydivid
fblytag("position", "top"); //optional: top | inside
Debugging website widgets
Attaching custom metadata to responses
Triggering surveys via custom properties
Widget Hooks
Setting the language