ePrivacy and GPDR Cookie Consent by Cookie Consent Skip to main content

How to track custom events from the website

What can be customized

Data collected from this event type can be customised by the administrator of the website. 

Add custom call to the SDK function MeiroEvents.track("customEvent",{"HTMLevent_example1":""HTMLevent_example2"};

The Custom Event can record any event possible to collect through JavaScript and JSON listeners. The list of trackable custom events can be found under this link. 

MeiroEvents.track("customEvent", { "action": "button_click", item: "#my-button"});
});

 

Example

For example, tracking Tracking custom events (for example transactions, usernames for logins, etc.) can be done using the custom call to the SDK function as followsfollows 

MeiroEvents.track("customEvent", {"action": "login", "username":username: "user"}); 

The second part ({"action": "login", "username": "user A"}) is customizable. We recommend inserting there identification attributes (like email, phone number, username, etc.). 

  • The user played the video
  • The user opened schedule demo popup, MeiroEvents.track{“action”: “schedule_demo_open”, title: “User opened schedule demo form”}

 

For more details please contact the Meiro team.