# Events

There's no need to deploy expensive third-party analytics tools to track user behaviour in Gravity as it comes with built-in client-side event tracking and analytics.

## Track Events

To track an event, import the `<Event/>` component and call the `create` method with a `name` and optional `metadata`. This will log a new event in your database.

{% hint style="info" %}
You can toggle the server side logging using the **STORE\_EVENT\_LOGS** env var.
{% endhint %}

```javascript
import { Event } from 'components/lib';

export function Upgrade(props){

  async function upgradePlan(){
   
     Event.create('upgrade', { plan: 'Unicorn' });
 
  };
}
```

## Boilerplate Events

The following events are already configured for you:

* signin
* invited\_user
* closed\_account

## Event Analytics

You can get the bird's eye view of all of your event data in Mission Control, available on the [Power plan](https://usegravity.app/pricing). If you'd like to upgrade, please [get in touch](mailto:support@usegravity.app) to receive the discount.
