Tracking Custom Events

Track Custom Events

Add more power to your segments by tracking custom user events. This is extremely useful to analyze feature adoption and create more powerful segments.

Example 1 :

// You can track your events using the "Track" method 
<script>
 zata.track("Event");
</script>

// You can also specify more information about your event 
<script> 
 var meta = {URL: "/growth"};
 zata.track("Page Event", meta);
</script>


Example 2 :

zata.track("Event Name"); // e.g. "Clicked Some Button"

zata.track("Another Event", { // e.g. "Submitted a Help Ticket"
  url: "/support",
  article:"installation"
)};

Last updated