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
Call the Event function with a name and optional metadata. Set STORE_EVENT_LOGS=true on the server to persist events.
import { Event } from '~/components/lib';
Event('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. If you’d like to upgrade, please get in touch to receive the discount.