title | description |
---|---|
Easy Setup |
Track web analytics and custom events anywhere JavaScript is supported, all within seconds. |
Before proceeding, ensure you: Sign up on Litlyx and create a new project.
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>
Install Litlyx library from your favourite package manager.
```bash npm npm install litlyx-js ``` ```bash yarn yarn add litlyx-js ``` ```bash pnpm pnpm add litlyx-js ``` ```bash bun bun install litlyx-js ```Now import litlyx in your entry-point
file.
import { Lit } from "litlyx-js"
Next, initialize Litlyx library with your project in your entry-point file as follow:
Lit.init("your_project_id");
Explore Litlyx's Dashboard with your web analytics collected in real-time.