How to track specific events with API

Modified on Thu, 10 Aug 2023 at 04:36 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. 

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 to let you know when a user loads a specific page variant during an AB test. 


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


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


howuku.track("subscribe")
JavaScript


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