The Monitoring Agent service records web browsing activity on your site. It generates basic system events such as VisitStarted, PageEntered, and additional custom business events, such as 'add-to-shopping cart'. Then it sends these events to the Web Engagement Server for further processing (you can read more about the structure of these events here).
The simplest way to get the Monitoring Service JS for your site is by creating and adding a script to your web pages. See Configuring the Instrumentation Script for details.
Once you have a basic configuration script, you can use it "as is" or implement the advanced configuration options to customize the script to suit your requirements. See Configuring the Instrumentation Script for details.
Monitoring JS API
You can also take a highly customized approach and use the Monitoring JS API to submit events to the Web Engagement Server. You can submit UserInfo, SignIn, SignOut, and even your own custom business events using this API. For example, you can use the API to identify visitors on your website. See Visitor Identification for details.