Versions Compared

Key

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

...

  • data - Required. The event data in JSON format. For example:
    {
       "e":"Custom event",
    "u":"http://www.intlock.com/somepage", "metaData": { "price": 5, "name": "book" } }

    e - custom Mandatory. Custom event name.
    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
iconfalse

<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');});" />

...