Pre-Requisites

Before proceeding, ensure you:

1

Get your project ID

Sign up on Litlyx and create a new project.

1.a - Universal Setup (in just 30 seconds)

With a simple line of code in your index.html, under the body tag, you can start tracking analytics such as Page Visits, Real-Time Users, Referrers, Bounce Rate, Countries, Unique Visitor Sessions, OS & Devices.

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

1.b - Using any package manager

Install Litlyx library from your favourite package manager.

Now import litlyx in your entry-point file.

javascript
import { Lit } from "litlyx-js"

Next, initialize Litlyx library with your project in your entry-point file as follow:

javascript
Lit.init("your_project_id");

Ready to go!

Explore Litlyx’s Dashboard with your web analytics collected in real-time.