...
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.
Code Block | ||
---|---|---|
| ||
// 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(); |
Note |
---|
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. |