Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this example, when a user clicks on the DOWNLOAD button on the home page, a popup window is opened with the download form:


Download Button


Download Form

 

In order to send a click event on the DOWNLOAD button, add a call to the sendEvent function to the button onclick event as seen below:

 
Info

<input

...

type="button"

...

value="DOWNLOAD"

...

onclick="openDownloadForm();

CardioLogAgent.API.sendEvent({e:

...

'Button

...

Click',

...

metaData:

...

{name:

...

'DOWNLOAD

...

NOW'}},

...

function

...

()

...

{console.log('event

...

sent

...

successfully');});"

...

/>

 

When clicking on the button, a custom event of type ''Button Click" will be sent, indicating that the download button has been clicked on by the user. An "event sent" message will appear in the browser console.

...