> For the complete documentation index, see [llms.txt](https://docs.growlytics.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.growlytics.in/integration/browser/installation-1.md).

# 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.

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

{% hint style="warning" %}
Growlytics supports `Number, BigInt, String, Boolean` and `Date` data types for event property values. For further details refer to [event tracking considerations.](https://docs.growlytics.in/core-concepts-1/events#default-metadata-recorded-automatically)&#x20;
{% endhint %}
