With this line of code in your index.html, inside the body or head tag, you can already collect analytics like Page Visits, Referrers, Avarage Session Time and many more.
To customize your experience, add the following line in each function you desire. There is no limit to the number of events.
javascript
Copy
Lit.event("your_event_name");
If you want to exercise more control over your events, you can use the metadata field. In your dashboard, you can group them in the Events tab with the Event Metadata Analyzer.