The clickToConnectSave()
function is a JavaScript call that is located on each page of your customer-facing site. The function persists both order and token information in ATG. The eStara JavaScriptCallBack
rule looks for the clickToConnectSave
function on your page, and controls when to run it. The clickToConnectSave
function is created automatically when you run the eStara page instrumentation and does not need to be added manually to every page. However, the clickToConnectSave
function can also be configured using the eStara Webcare Rule Builder tool.
Creating the JavaScriptCallback Rule
When you create the JavaScriptCallback
rule, modify the following fields. Other fields can remain at their default. For additional information on the fields, refer to the eStara Webcare Rule embedded assistance.
Log into the eStara Webcare website.
Note: In order to log into the Webcare website, you must have an existing eStara account.
From the Setup menu, select Rule Builder.
Click the Add a New Rule link.
Use the Name field to create the name of the rule. Enter
JavaScriptCallback
.The Applies To field should be set to Both Customers and Agents using the pull down menu.
Enable the rule by clicking the Yes radio button in the Enabled field.
Set the Rule Operating Hours to All Hours to ensure that the rule is always run.
Set the Link to Show field to No Link, as this rule will not display a link.
Using the URL Match field, enter a regular expression to indicate to which URL the rule applies. To ensure that the rule applies to all URLs on your site, select the use check box and enter
.*
in the text field.The
JavaScriptCallback
rule is aRunJavaScript
Rule Type. This rule runs the specified JavaScript. SelectRunJavaScript
from the drop down menu.Click the Show Advanced Feature button to display the arguments that are required when using the
RunJavaScript
rule type.In the Argument 1 field, enter the name of the function to be called with its associated parameters. Enter
clicktToConnectSave()
Ensure that Argument 2 field is set to use the default, which is 0. This argument will run the function whenever the link is clicked.
Save the rule