JavaScript SDK API
uDash.init (options)
— this is the method for the initialization and setup of a uDash object. It requires one argument which is an object containing options.
uDash.saveMeta(key, value)
— registers a single meta eventuDash.saveAttribute(label, value)
— registers a single attributeuDash.getStatus()
— retrieves the current uDash status. Possible values are:incompatible
— the browser failed to pass tests for the uDash object supportnot ready
— no handlers have been attached and no storage data has been setsetup
— while attaching handlers and setting storage dataready
— all handlers have been attached and storage data has been set, ready to record, not connected yetconnected
— connected to UiB server, up & running
uDash.sendDump()
— this method sends recorder data to the server. It is particularly useful when you know that the user will leave your website anytime soon and you want to ensure none of the valuable information will be lost.uDash.tearDown()
— this method detaches uDash event handlers, flushes session storage data and finally fires onTeardown callback.uDash.enableCookies()
— this method enables storing of data on a user's device using cookies and other means.uDash.disableCookies()
— this method disables storing of data on a user's device using cookies and other means.