This gives you an idea of the methods available on the mouseview object. For a summary of setting attributes checkout Configuration.
To start recording mouse movements you use the following functions
Mouseview.js allows you to store and retrieve data on the clients browser. This is helpful for tracking accross multiple pages, or presenting previous data on screen. When you store data it appends that page path to the beginning of the data array. When you retrieve data it will append the path of the page to the end of data array, so you can tell the difference between site pages.
The table below describes all available core methods
|This function initiates the MouseView.js with the current settings.|
|This function removes any overlays generated by MouseView.js|
|This starts the recording of the current mouse or touch coordinates, in intervals specified by the mouseview.timing.sampleRate variable.|
|This stops all the recording.|
|A utility function that will log a string (event_txt) in the sample data, along with a timestamp, whenever it is called.|
|A utility function which stores all the current mousetracking data in the browser’s local storage, and automatically appends the current webpage path to the data. It will overwrite any currently stored data.|
|Retrieves any stored data, and appends the current page. New data is added to this object.|
|Clear working data.|
|Forces the overlay to be updated, it recaptures the screenshot if the gaussian blur setting is in use.|
We also bundle in heatmap.js, allowing you to plot data on the screen. This is used in the demo on this website.
|Plot a heatmap on a new transparent overlay, over the screen.|
|Clear the heatmap and remove the overlay.|