Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Service

Most of the integration functionality happens at the S4S Cloud service, which allows more detailed debugging and troubleshooting.

General debug information

The S4S Cloud client automatically logs various troubleshooting messages to the JavaScript console when the debug setting is enabled. Most modern browsers include developer tools for easy viewing of console messages and other useful information. For example, Google Chrome or Mozilla Firefox.

Service connection errors

S4S Cloud will continue to output debug messages as it performs actions on the page, including sending form submissions and visitor updates.

The S4S Cloud service sends the following HTTP error codes:

  • 400 (Bad Request): invalid data sent. This will occur if the form is not mapped.

  • 401 (Unauthorized): invalid shared key or request not sent via JavaScript client.

  • 500 (Server Error): unexpected service error.

Local data

S4S Cloud stores data in the browser local storage.

Cookies

If cookies have been enabled in settings, you can also inspect the values using the web browser.

Forcing visitor updates

The following JavaScript code may be run directly in the browser console to force immediate visitor updates instead of waiting for the next automatic update.

// Clear all visitor data in the browser.
javascript:localStorage?.clear();

// Send an update for the current visitor to the service (if identified).
javascript:S4SCloud.analytics?.visitor?.sendToService();

// Force the current session to end and send immediately.
javascript:S4SCloud.analytics?.endSession();

This is intended for development use only, excessive use on a production site may exceed service limits (e.g. if set to run on every page load). The S4S Cloud client sends regular updates only when required, if this needs to occur more frequently consider adjusting the frequency setting.

  • No labels