Page History
...
- data - Required. The event data in JSON format. For example:
{ "e":"Custom event",
e - custom Mandatory. Custom event name.
"u":"http://www.intlock.com/somepage", "metaData": { "price": 5, "name": "book" } }
u - Optional. The URL path where the event occurred on or derived from.
metaData - a Optional. A list of parameters and their values. - eventCallback - Optional. Function to be executed after the event is sent.
...
Info | ||
---|---|---|
| ||
<input type="button" value="DOWNLOAD" onclick="openDownloadForm(); CardioLogAgent.API.sendEvent({e: 'Button Click', u: 'http://www.intlock.com/download/form.aspx', metaData: {name: 'DOWNLOAD NOW', firstName: 'John', lastName: 'Smith', email: 'john.smith@intlock.com', phone:1800800800, country: 'USA'}}, function () {console.log('event sent successfully');});" /> |
...