When a customer is on the website for a long time, you may have to assume that he cannot decide what product to choose. For operators to have information, you can add your own parameter when he is on the page longer than the specified time.

In the rules settings you will create a new rule in the application administration. You use the “time spent on the website” parameter for more than 120 seconds. At that time, you run a feature named “_clientUndecided.” In the Application) section you also need to set a new parameter and call it “navod_undecided” for example. This will then appear in the waiting queue even after receiving by the operator.

Add a new feature to your “load” event listener on your website as a $owidget object method in which you set the parameter:

$owidget._clientUndecided = function() {
    $owidget.addCustomData('navod_undecided', true);

Instructions for implementation

First, you need to define the parameter in your application. Thus go to Settings -> Application -> Parameters -> and then select Add.

Create a name and tag for the parameter - it will be displayed to the operators, and save.

Then add the feature to the widget code

$owidget.addCustomData(PARAMETER NAME , PARAMETER VALUE );

There are two kinds of parameters in the application.Predefined, which are for instance:

  • URL pages

  • Widget

  • Client name

  • Client’s phone number

  • Page title

  • Widget language

  • Client's e-mail

And custom parameters, which you can create.

Note: It is strongly recommended to avoid sending empty values (null) into the parameters in the mluvii!

Saving empty values will cause an error and also prevent the script from initializing on the page!!!

Tip: If you need to send "null" value always, use e.g. "-".

Parameter Definition

Our default parameters:

$owidget.addCustomData("oo1_guest_ident","Chuck" + "Norris"); $owidget.addCustomData("oo1_guest_email" ,"" ); $owidget.addCustomData("oo1_guest_phone","777666777");

Then enter each other parameter in the same manner:

($owidget.addCustomData(NázevParametru, HodnotaParametru)

Tip: You can use the mentioned AddCustomData method not only before initializing the script, but also during the session.

For example, the client logs into the customer section of the web during the current session, and even in this case his customer number, etc., will reach the operator in the form of session parameters.

Test snippet for deploying on the webpage

<script type="text/javascript">
    (function() {
        var scr = document.createElement('script');
        scr.type = 'text/javascript';
        scr.async = true;
        scr.charset = 'UTF-8';
        scr.src = '//';
        scr.$owidgetOnLoad = function(owidget) {
            if (!owidget.isSupported) {
            owidget.init("497bdd8f-2e6f-42f5-b6fb-ddc00c5ccb60", "NASA");
            owidget.addCustomData("test_promenne", "TEXT/Hodnota dané proměnné");
        var ffs = document.getElementsByTagName('script')[0];
        ffs.parentNode.insertBefore(scr, ffs);

results matching ""

    No results matching ""