Track Events

This page will give detailed description of how you can integrate Growlytics javascript SDK to your website.

Let's suppose we want to track an event "Product Viewed" when a customer views a product. To track this event, you can use Growlytics.events.track() method.

With event name, you can pass custom JSON that you can later use for analytics and engagement purpose.

Growlytics.events.track("Product viewed",{
  'Product Name': 'Macbook Pro 2020',
  'Category': 'Electronics',
  'SubCategory': 'Laptops',
  'Price': 139000,
  'Brand': 'Apple'
});

Growlytics supports Number, BigInt, String, Boolean and Date data types for event property values. For further details refer to event tracking considerations.

Last updated