CardioLog SaaS Client-Side API
The CardioLog SaaS Tracking Agent offers a client-side API to send events, and track button clicks, banner clicks, navigation links or interactions with other UI components that display content dynamically (without redirecting to the actual content page URL).
The sendEvent JavaScript Function
You can call the sendEvent JavaScript function on any monitored page to send events to CardioLog SaaS via the client browser.
The sendEvent function accepts the following parameters:
- eventName - Required. The event type name (e.g, 'pageview').
- URL - Required. The content page URL.
Code Sample
Send a click event on a DOWNLOAD button:
In this example, when a user clicks on the DOWNLOAD button a popup window is opened with the download form, and an event of type ''pageview" is sent, indicating that the download button has been clicked on by the user.
Download Button
Download Form