---
title: Custom event tracking
slug: custom-event-tracking
description: Learn how to track custom events on your website's analytics by adding JavaScript code. Enhance your data collection by following our example of adding an event to a specific element.Boost your website's analytics with custom event tracking using JavaScri
docTags: 
createdAt: 2023-01-11T10:01:58.000Z
---

In some cases you might want to track custom events on your analytics. This can be done by adding JavaScript on your website.

**An example event:**

sf\_l.eventPush('click', 'element');

This can be then added to the element you choose want.

