Instructions
- Configure Global Monitoring
- Choose a vendor you want to send events for. You may create your own custom vendor
-
Enable Monita collect

-
Open Vendor code detail panel by clicking on code

-
Copy code example

-
Paste and modify the code in your website Javascript code

- Test execution

Sending custom data to Monita
If you want to send any arbitrary event and data to Monita, you can use ‘Monita’ as the Vendor (or even add your own custom Vendor in the UI.) See a sample code snippet below:The monitaSendBeacon function will work so long as the Monita Global JS SDK has been initialised on the page. If not, it should be loaded. To check if it has been loaded you can try and access
__monita_settings, if it is available then Monita has been loaded. If not you can manually add our initialisation script with your token as per this guide. 