Pre-Requisites

None.

1. Install

With this line of code in your index.html, inside body tag, you can already collect analytics like Page Visits, Referrers, Avarage Session Time and many more.

<script defer data-project="project_id_here" 
src="https://cdn.jsdelivr.net/gh/litlyx/litlyx-js/browser/litlyx.js">
</script>

To get your project_id, Create your project on Litlyx Cloud.

2. Collect Custom Events

To customize your experience, add the following line in each function you desire. There is no limit to the number of events.

javascript
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.

javascript
Lit.event("your_event_name", metadata: { 
  'type': 'MAIN_CTA', 
  'priority': 0.9
});

3. Your turn now!

Use litlyx in your html website at ease.