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.
1
Example 1 :
2
​
3
// You can track your events using the "Track" method
4
<script>
5
zata.track("Event");
6
</script>
7
​
8
// You can also specify more information about your event
9
<script>
10
var meta = {URL: "/growth"};
11
zata.track("Page Event", meta);
12
</script>
13
​
14
​
15
Example 2 :
16
​
17
zata.track("Event Name"); // e.g. "Clicked Some Button"
18
​
19
zata.track("Another Event", { // e.g. "Submitted a Help Ticket"
20
url: "/support",
21
article:"installation"
22
)};
Copied!
Last modified 5mo ago
Copy link