Events
There's no need to deploy expensive third-party analytics tools to track user behaviour in Gravity as it comes with client-side event tracking and analytics built in.
To track an event, simply import the Event component and call the create method with an event name and optional metadata. This will log a new event in your database.
You can toggle the server side logging using the STORE_EVENT_LOGS env var.
import { Event } from 'components/lib';
export function Upgrade(props){
async function upgradePlan(){
Event.create('upgrade', { plan: 'Unicorn' });
};
}
The following events are already configured for you:
- signin
- invited_user
- closed_account
You can get the birds eye view of all of your event data in Mission Control, available on the Power plan. If you'd like to upgrade, please get in touch to receive the discount.
Last modified 1yr ago