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 Commerce Service Center. The 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 page instrumentation and does not need to be added manually to every page. However, the clickToConnectSave function can also be configured using the 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 values. For additional information on the fields, refer to the Webcare documentation.

This configures the following rule:

Name: JavascriptCallback
Order Run: 0
Applies To: Customers only
Enabled: Yes
URL match (Use): .*
Rule Type: RunJavascript
Argument 1: clickToConnectSave()
Argument 2: 0

For the JavaScriptCallback rule to run, you must enable CoBrowsing:

This configures the following rule:

Name: CoBrowse
Applies To: Customers only
Enabled: Yes
URL Match (use): .*
Rule Type: CoBrowse
Argument 1: 1
Argument 2: 0

Once you have created these two rules, you need to set up a rule that passes the call token through Click to Call’s data passing system:

This configures the following rule:

Name: AtgEstaraToken
Applies to: Customers only
Enabled: Yes
URL Match (use): .*
Rule Type: VarFieldMatch
Argument 1: _atg_estara_call_token
Argument 2: \s*
Argument 4: 1

Copyright © 1997, 2012 Oracle and/or its affiliates. All rights reserved. Legal Notices