Once you have installed the Mopinion Deploymen Code and setup the conditions for your forms where and when to appear you are probably eager to see that for real on your website.

Of course you can just go to an URL where you set a form to appear and see if it is there. However, with multiple conditions you cannot always see which one's are already met and which one's you are still waiting for. Luckily it is possible to see in the browser console what conditions you created and whether they are met.

Step 1

Open your browser developer tools. Select the 'Console' tab.

Step 2

Type the following text on the command line.

document.cookie='LOG=true'

Step 3

Then reload the webpage. If implementated correctly the console will log all the conditions and its evaluation of them for the webpage.

Step 4

How should you interpret the console log? There can be 3 different type of console log results.

1. Mopinion Deployment Code (MDC) not loaded

If the MDC is not loaded, no console log will show.

2. Mopinion Deployment Code loaded, but deployment switched off

If the MDC is loaded correctly, but the deploymentcode is switched off the console log will look like below.

 

In Mopinion you can see on https://app.mopinion.com/survey/manage#tab_deployment_pane or https://<YOUR_DOMAIN>.mopinion.com/survey/manage#tab_deployment_pane (enterprize accounts) whether you deploymentcode is active or not.

On https://app.mopinion.com/survey/manage/edit-deployment/<YOUR_UNIQUE MOPINION_DEPLOYMENT_KEY> or https://<YOUR_DOMAIN>.mopinion.com/survey/manage/edit-deployment/<YOUR_UNIQUE MOPINION_DEPLOYMENT_KEY> you can turn the switch on or off.

3. Mopinion Deployment Code loaded, conditions checked

If the MDC is loaded correctly all conditions for the forms will be checked. Each condition can be recognized as a rule in the console. The first condition in the Mopinion Deployment Manager is rule 0 in the console log. A JSON object holds all the settings for the condition.

All settings are evaluated. Behind the setting you can than see whether the setting was true or false. If all are true the feedback form will be loaded. If one is false the form will not be loaded.