Defining reactions

Return to Introduction  Previous page  Next page

As soon as the action is recognized by the Sales-n-Stats system various automated system reactions can be triggered in response. Thus some typical situations at your site can be processed without human interference.

For example:

1.Post the message which the visitor left when filling out the 'Contact us' form to his visitor profile.
2.Alert operator that customer with $1000 worth goods in his shopping cart is heading to checkout.
3.Offer a visitor a small discount for the product (e.g. send a discount coupon) if he spends some time on its description page to help him make a decision.

Setting up action-reaction pair can save your time and efforts when you add new active features to your website.

Adjust the system reactions for each action via Main Menu->Tools->System settings->Actions->Reactions.

Adjusting system reactions

Reaction is an optional response of the system to a visitor's action executed on your site. There can be several reactions associated with each action. There are several types of reactions, for example, Push content, Post Message, Execute external program etc. To add a reaction click on the Reactions button. 'Conditions' dialog opens.

hmtoggle_plus1Setting Conditions

The 'Conditions' section is not necessary and allows you to configure conditions for triggering system reactions. There are two options in the 'Conditions' section to set those conditions that are necessary for the fulfillment of each reaction. If the reaction should be executed unconditionally leave 'Conditions' window blank.

To add conditions:

Click New row to add a condition row.
Click on the  image12 button and choose the necessary property from the popup menu. You will see an expression entered into the field that appeared after you started the condition row. Then select an appropriate sign of relation (=, <,>, =, =, ≠) in the next field of the same condition row. If you select 'matches' you can create your own condition pattern using (*) instead of any element in a row. The last field in the condition row is meant for a textual or numeric value with which the actual value of a reaction property will be compared.

For example, setting conditions for the 'Add to Cart' action you choose action.productName property from the popup menu and then select 'matches'. In the next field of the row enter the following pattern: *CD*, where * is any element or elements (in the product name there can be any number of letters or figures in the * position).

To delete the condition click Remove next to it.

<br>
‘Condition‘ edit dialog: visual editor


‘Condition‘ edit dialog: visual editor

 

Use 'Macro mode' only if you possess some programming skills! Select the 'Macro mode' check box and enter the necessary condition parameters with the help of macro language. Using macro language you can set more complex and exact conditions than those you set using the visual editor.

Note:All conditions set in the visual editor can be seen when you select the 'Macro mode' check box.

To check if you entered the right parameters, click Check macro. If there is a mistake in the macro language the system displays the warning message.

hmtoggle_plus1Adjusting Operations

To specify what operations the system executes as a reaction click on the 'Operations' button. Then click Add and select the necessary operation from the drop-down list. You can set more than one operation and organize their order for the reaction.

Push URL - to direct a visitor to URL.
Push content - to send an optional content to a visitor.
HTTP request - to send the information about the action to other web application.
External execution - to run the program (for example: .exe).
Macro execution - to execute macro code.
Notify operator - to send a message and a sound file to an operator.
Post message - to post a message in the Visitor's profile.

Sales-n-Stats cannot generate reactions while the Operator Terminal (or Data Center in the Enterprise edition) is not running. Select the 'Postpone operation if Sales-n-Stats is offline' check box so that the reaction will take place when the Operator Terminal is launched. If the check box is not selected and Sales-n-Stats is not running; there will be no reaction when the action takes place. 

<br>
Reaction operations edit dialog


Reaction operations edit dialog

 

To remove a reaction select it and click Delete.

Editing reactions

Most preconfigured actions don't have reactions. But if there are any among your default settings use the 'Reactions' section to adjust the system reactions settings:

1.Right-click the appropriate reaction and select Edit
2.To change the conditions for each reaction in the 'Conditions' section, click 'Operations' to select an operation that the system will perform as the response to an action.
3.Click Save.