How to track custom event with API?

Modified on Fri, 28 Apr 2023 at 11:06 PM

Howuku allows you to send events by using Javascript when specific actions take place on your website. An event is a data point representing an interaction between a user and your website. This lets you have the user be paired with the Session Recording for searching and viewing.

With Javascript, you're able to set up your own criteria to determine what kind of action results in an event being sent to Howuku. 

Below is the use case for the event:

1. Send an event to Howuku related to a specific error, so that you can filter your recording by users who encountered an error during browsing your website


howuku.track("error_occurred",{"msg": "missing_column"}  


2. Send an event to Howuku to let you know when a user loads a specific page variant during an AB test. 


howuku.track("ab_testing",{"variant_name": "variant A"})  


3.  Send an event to Howuku when users click on a specific button on your website.


howuku.track("subscriber")


Note: You can provide the name of the event as the first argument. Optionally you can add data to your event by providing an object as a second argument. 


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article