2024-06-20 15:30:29 +02:00
2024-06-01 15:29:41 +02:00
2024-06-11 17:25:18 +02:00
2024-06-20 15:29:33 +02:00
2024-06-14 11:58:17 +02:00
2024-06-20 15:29:33 +02:00
2024-06-10 15:05:05 +02:00
2024-06-19 18:20:14 +02:00
2024-06-09 19:00:44 +02:00
2024-06-20 15:29:33 +02:00
2024-06-02 22:57:26 +02:00
2024-06-20 15:30:29 +02:00
2024-06-20 15:29:33 +02:00

🌐 Website 📚 Docs 🔥 Start for Free!


A single-line code analytics solution that integrates with every JavaScript/TypeScript framework.
Track 10+ KPIs and as many custom events as you want for your website or web app.
An AI Data Analyst Assistant ready to help you!


GitHub Repo stars NPM Version npm bundle size

Join Litlyx's Community Channel on Discord

If you need more information, help, or want to provide general feedback, feel free to join us here: Litlyx on Discord

Installation

You can install Litlyx using npm, yarn, or pnpm:

npm i litlyx-js

Or import it directly into your JavaScript code:

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

Importing Litlyx with a direct script already tracks 10 KPIs such as page visits, browsers, devices, OS, real-time online users, and many more.

Note

  • If you want to track custom events, you need to import the library with npm, yarn, or pnpm. Continue reading to find out more!

You can find the official documentation: here.

Supported Frameworks

Litlyx natively supports all these JavaScript/TypeScript frameworks. You can use Litlyx in all WordPress projects by injecting JS code using plugins. You can even use Litlyx in cloud (or edge) functions in BaaS!

Usage

Litlyx is very simple to use. The first thing is to import Litlyx into your code:

import { Lit } from 'litlyx-js';

Once imported, you need to initialize Litlyx:

Lit.init('your_project_id');

After this line, Litlyx will automatically track more than 10 KPIs for you.

Note

Customize Your Experience by Tracking Custom Events

With Litlyx, you can create your own events to track in your project on the main CTA. Your creativity is the limit! Customize your experience like this:

Lit.event('main_cta');

This is the minimal setup for an event. If you want more control over them, you can use the metadata field:

Lit.event('pretty_cool_event', {
  metadata: {
    'tag': 'litlyx is awesome!',
    'age': 27,
    'score': 100.01,
    'list': ['Hello', 'World!']
  }
});

And that's it! You have set up your first custom event. From now on, you know how to set them up. With events you can track even the user flow, from where they come to the final Click!

Lit, the AI Data Analyst at Your Service

Litlyx comes with an integrated AI that can analyze your collected data and your entire history. It can compare data, query specific metadata, visualize charts, and much more.

You can have a conversation with Lit in the dashboard 👉 here.

You Are Free to Self-Host Litlyx

Litlyx is completely open-source, and you are free to self-host it and create your own version of the dashboard. We are always open to conversations with all contributors to the project, so contact us at help@litlyx.com to schedule a call with us!

We hope to hear from you!

Official Docs

Read the complete documentation at https://docs.litlyx.com.

Contact

Write to us at help@litlyx.com if you need to contact us.

License

Litlyx is licensed under the Apache 2.0 license.

Share some ❤️ for the repo

If you like what you see, join us and start collaborating! Leave a star () to stay updated on our progress and show your support.

Let's change analytics landscape togheter!

Leave a Star

We are on track! Thanks for your support!

Description
No description provided
Readme Apache-2.0 50 MiB
Languages
Vue 51.9%
TypeScript 44.8%
HTML 2.5%
CSS 0.6%
JavaScript 0.1%