Netigate Success Center


Are you using our new Success Center?

Get access to new Netigate support articles and educational videos.

New Success Center

Advanced website survey widget settings

Table of contents

    A website survey allows you to gather feedback directly from website visitors, via an easy-to-implement javascript widget. This article presents you with some advanced settings for your website widget.

    Note: All code snippets provided in this document are always meant to be used and run after the main Widget snippet and as Javascript code.

    Override options

    Any widget settings in the tool can be overridden the moment you are running the Javascript widget script with a JSON object. This gives you more flexibility on custom solutions for the segmentation of target groups. You can’t change specified (white-listed) domains or add new Custom variables (BGD labels).

    Overriding options, example:

    (function(w, d, s, o, f, js, fjs) {
    w[“NetigateWidget”] = o;
    w[o] = w[o] || function() {
    (w[o].q = w[o].q || []).push(arguments);
    }, js = d.createElement(s), fjs = d.getElementsByTagName(s)[0], = o, js.src = f, js.async = 1,
    fjs.parentNode.insertBefore(js, fjs);
    })(window, document, “script”, “ntgtWidget”, “”);
    ntgtWidget(“widgetId”, “5bc8f5fa-1e17-XXXX-XXXX-b607f5b3b38e”);
    ntgtWidget(“overrideOptions”, { height: 50, buttonText: “We ♥ feedback” });


    All available overridable options:

    ntgtWidget(“overrideOptions”, {
    activateSideButton: true,
    buttonBackground: “#006699”,
    buttonText:  “#ffffff”,
    buttonTextColor: “Give us feedback!”,
    displayRate: 50,
    height: 100, heightMetric: “%”,
    placement: “Left”,
    showOnDesktop: true,
    showOnMobile: true,
    singleAnswerPerVisitor: false,
    width: 132,
    widthMetric: “px”


    Create a new respondent on load (hidden setting)

    By default this option is true. This can only be changed by manually setting the option to false after initiating the widget.

    When true, a new respondent (and thus a new answer set) is created on every survey load. When false, the same respondent is recognised via a cookie and continues answering only if they haven’t finished the survey before.

    Create a new respondent on every load, example:

    ntgtWidget(“overrideOptions”, { createNewRespondentOnLoad: false });

    Disable flag

    You can use the following function if you intend to hide the survey for a specific target group or user.

    How to disable a widget for some or all visitors, example:

    ntgtWidget(“disable”, !successfulPurchase);

    Debug flag

    Use this flag if you want to log informative warning messages in the console of the website where you are integrating the widget. This might be helpful the first time you are integrating a widget for test purposes.

    Debug flag, example:

    ntgtWidget(“debug”, true);