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
  • List all triggering options available to the visitor
  • Listing client data
  • Automatic debugging mode
  1. Website widgets

Debugging website widgets

PreviousSetting the language

Last updated 1 year ago

Due to the amount of variables it's not always straightforward to figure out why exactly a survey triggers/doesn't open for a visitor.

To find out more about the underlying reasons, Feedbackly provides the means to debug this.

If you need to check the installation status of a widget, please see

List all triggering options available to the visitor

When on your website and with Feedbackly widget installed, open up the dev tools for the browser. In Chrome, this can be done via the command ⌘ + option + J

Run the following command:

FBLY.getConfiguration();

The console should print out an array of configuration objects similar to this:

This is in essence the JSON-representation of your website triggering parameters available on the Feedbackly UI's widget triggering parameters. All the objects in this array are the potential surveys to be shown to the user when conditions are met.

Listing client data

To find out what data the widget has recorded of the visitor, run

FBLY.getClientData();

This data can be useful in determining whether the visitor has met the conditions for a survey to be triggered.

A few remarks on the properties:

  • session.declinedActivations lists whether the user has declined a survey, its id and timestamp

  • session.sampledActivations shows whether the visitor fits to the sample of the survey

  • visitedUrls shows all visited urls of the visitor

  • scroll shows the current page scroll of the visitor

Automatic debugging mode

To see loading information and created objects in a browser console, enable automatic debug mode by adding this to the end of your page URL (can also be set as a URL parameter):

#debug=true

or edit the original script tag to add following configuration for dev/test sites:

fblytag('debug', 'true');

Verifying installation.