|
|
If the preconfigured actions don't meet the requirements of your business you can create your custom actions. Select 'Actions' in the tree menu, click Add in the 'Actions' section on the right. Enter the new action name and click OK. New action settings edit dialog opens in the 'Action fields' section. Each action may have any number of fields where the system stores the information related to this action. A field is a part of a record reserved for a particular type of data. For example, logically, the 'Add to Cart' action can have such fields as 'productName' and 'quantity' to store information about the product name and the number of items placed in the shopping cart. These fields are associated with the action and are available for viewing when browsing a visitor's actions history. Action fields can be added, modified or deleted. To add an action field:
Note: An action field name can consist of letters a-z, A-Z, digits 0-9 and the underscore “_”. The first character cannot be a digit. The name must be unique.
To delete an action field select the necessary action field and click Delete. The Sales-n-Stats system gathers the necessary information about the visitors and their activity on the website via so called external actions. All preconfigured actions are external actions and do not have variants. But you also can add a pattern or a sequence of patterns (action variant) that will define what information to gather on the website yourself. Action variant is a sequence of pageviews and form submits done by a visitor at your website. Each 'pageview' or 'form submit' is called an 'action step'. For example, the action 'Registration' may consist of 2 steps: registration form submit and displaying the 'Registration successful' page. Each action may have more than one variant. For example, if there are 2 registration forms at your site, short and verbose, both resulting in the same action – 'Registration'. However, it is more typical for an action to have only one variant. To define an action variant in the 'Variants' section, follow the next steps:
When you selected an appropriate action variant you should define action steps. Click on the Pattern edit dialog opens. It consists of two sections:
Example External action cannot be defined by a visitor's action on the site unlike other action variants. External action takes place only when a special event occurs. For example, an external action 'Order' takes place in two cases:
An external action is recognized when the information about this action is entered into the database through the Sales-n-Stats integrator built into your shopping cart. All action variants may include two types of patterns: 'Page View pattern' and 'Form submit pattern' or a combination of these patterns. For example, Submit form and go to page B action variant consists of two action steps 'Submit form' ('Form submit pattern') and 'Pageview' ('Page View pattern').
Pageview pattern and data capturing There are two options in the 'Identify by' section, that can be used to identify a pageview: 'URL pattern' and 'SPAN tags'. 'URL pattern' Enter an appropriate URL pattern to identify pageview by its URL. The syntax of the patterns is similar to zone patterns and is described in the 'Setting up zones' section. Note: The default pattern http://*/* contains all site pages. A pageview can also be identified by the presence of specially formatted HTML tags (SPAN tags) in the body of HTML page. Go to the 'Span tags in the body of HTML' section to add the necessary parameters. Span tags can be used if it is impossible to identify pageview just by specifying a URL pattern.
Examples Example 1. You embed the following tag in your HTML page: <SPAN ID=”sns_user_status”>registered</SPAN> and then specify the 'sns_user_status' as a span tag name and 'registered' as a span tag value. This pattern will match when there is SPAN tag with the name 'sns_user_status' and value 'registered' in the body of HTML page. Example 2. There is the following tag in your HTML page <SPAN ID=”order_total”>99.5</SPAN> where 'order_total' is a span tag name and '99.5' is a span tag value. This pattern will match where there is a SPAN tag with the name 'order_total' and value '99.5' in the body of HTML page. To create a new parameter:
The 'Store Pageview data' section allows you to define Form action parameters or SPAN tags which values you are going to store in the action fields. Form action parameters are the parameters which are located in the URL after the “?” sign. Click on Add to create a new row. 'Create a new Row' dialog opens, enter "Form action parameter" or "Span tag name" and select from the drop-down list an appropriate action field where you want to store the value of "Form action parameter". You also can create a new action field:
To delete a parameter select the one you would like to remove and click Del. Click Cancel to exit without changes. Form submit pattern and data capturing There are two options in the 'Identify Form by' section that can be used to identify a form submit: 'Form action URL' and 'Form Fields'.
It is the pattern that identifies URL where the HTML form is submitted to. The syntax of the patterns is similar to zone patterns and is described in the 'Setting up zones' section. Note: Please do not confuse form action URL with the URL where the form is located. To determine what the Form action URL is you should look into HTML code of the page: <FORM method="post" action="http://www.example.com/script.php"> The bold type text is the form action URL that identifies where this form is submitted to. To identify a form submit Sales-n-Stats analyzes the set of form fields and sometimes their values. A form can also be identified by invisible fields which do not show in the browser, but are still present. To add a form field: Click Add button to create a new parameter. Enter the form field name and its value. In most cases form field value will be *. To delete a parameter select the one you would like to remove and click Del. In the 'Store Form data' section you define the 'Form action parameters' or 'Form fields' you want to save in the action fields:
You can also create a new action field that will automatically appear in the 'Action fields' section. To add a visitor field, follow the next steps:
To delete a parameter select the one you would like to remove and click Del. Click Cancel to exit without changes. 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. 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:
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.
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.
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.
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.
To remove a reaction select it and click Delete.
See also: |