Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Litlyx/litlyx
Powerful Analytics Solution. Setup in 30 seconds. Display all your data on a Simple, AI-powered dashboard. Fully self-hostable and GDPR compliant.
https://github.com/Litlyx/litlyx
ai analytics angular charts data data-analysis data-visualization javascript metrics nextjs nodejs nuxt open-source react statistics typescript vue website
Last synced: 23 days ago
JSON representation
Powerful Analytics Solution. Setup in 30 seconds. Display all your data on a Simple, AI-powered dashboard. Fully self-hostable and GDPR compliant.
- Host: GitHub
- URL: https://github.com/Litlyx/litlyx
- Owner: Litlyx
- License: apache-2.0
- Created: 2024-05-29T13:21:06.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-12-17T15:26:36.000Z (28 days ago)
- Last Synced: 2024-12-17T16:32:41.479Z (28 days ago)
- Topics: ai, analytics, angular, charts, data, data-analysis, data-visualization, javascript, metrics, nextjs, nodejs, nuxt, open-source, react, statistics, typescript, vue, website
- Language: Vue
- Homepage: https://litlyx.com
- Size: 16.9 MB
- Stars: 792
- Watchers: 5
- Forks: 39
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
- trackawesomelist - litlyx (⭐347) - The easiest dev-centric analytics tool. Litlyx is an open-source analytics solution for any JavaScript framework. Setup takes less then 30 seconds and just one line of code! (Recently Updated / [Aug 30, 2024](/content/2024/08/30/README.md))
- awesome-angular - litlyx - The easiest dev-centric analytics tool. Litlyx is an open-source analytics solution for any JavaScript framework. Setup takes less then 30 seconds and just one line of code! (Table of contents / Angular)
- fucking-awesome-angular - litlyx - The easiest dev-centric analytics tool. Litlyx is an open-source analytics solution for any JavaScript framework. Setup takes less then 30 seconds and just one line of code! (Table of contents / Angular)
- fucking-awesome-angular - litlyx - The easiest dev-centric analytics tool. Litlyx is an open-source analytics solution for any JavaScript framework. Setup takes less then 30 seconds and just one line of code! (Table of contents / Angular)
README
🌐 Website 📚 Docs 👾 Join Discord 🔥 Try Litlyx Cloud. It's Free.#
The freshest, developer-friendly analytics tool.
Litlyx is an open-source, self-hostable analytics solution for modern frameworks. Setup takes less than 30 seconds!#
#
## Get Started on our Cloud Version
Sign-up on [Litlyx.com](https://dashboard.litlyx.com) and create a project. Then simply use your project_id to connect Litlyx to your website OR Self-Host Litlyx with Docker.
## Universal Installation
```html
```
Importing Litlyx with a direct script instantly starts tracking `Page visits`, `Browsers`, `Devices`, `Operating Systems`, `Bouncing Rate`, `Real-Time Online Users`, `Unique Sessions`, `Countries`, and `Average Session Time`.
# All Javascript Runtimes
You can install Litlyx using `npm`, `pnpm`, `yarn` or any modern package managers:
```sh
npm i litlyx-js
```Litlyx natively works with all JavaScript / TypeScript frameworks. You can use Litlyx in all WordPress Websites by injecting JS code using a plug-in. Litlyx also works in serverless environments with Cloud (or Edge) Functions.
# Import
Import litlyx-js library into your code:
```js
import { Lit } from 'litlyx-js';
```Once imported, you need to initialize Litlyx:
```js
Lit.init('your_project_id');
```After initialization, Litlyx will automatically track analytics such as `Page visits`, `Browsers`, `Devices`, `Operating Systems`, `Real-Time Online Users`, `Unique Sessions`, `Countries`, and `Average Session Time`.
# Track Custom Events
You aren't just limited to the built-in KPIs. With Litlyx, you can create your own events to track in your project.
```js
Lit.event('click_on_buy_item');
```If you want more specific tracking, you can use the `metadata` field, like this:
```js
Lit.event('click_on_buy_item', {
metadata: {
'product-name': 'Coca-Cola',
'price': 1.50,
'currency': 'EUR'
}
});
```Litlyx makes it easy for you to tailor your analytics to your project's needs.
# Fire Your First Event with cURL
Want to quickly see how Litlyx works with events? Use the cURL command below to send a test event. Just replace the `project_id` with your actual project ID in your terminal.
```bash
curl -X POST "https://broker.litlyx.com/event" \
-H "Content-Type: application/json" \
-d '{
"pid": "project_id",
"name": "testEvent1",
"metadata": "{\"test\": \"something\"}",
"website": "something",
"userAgent": "something"
}'
```# Self-Hosting with Docker
To self-host the Litlyx dashboard, first **fork** this repository.
Then run the following command:
```bash
docker-compose build
```after the build finishes, run:
```bash
docker-compose up
```at localhost:3000 you will see your own instance of the Litlyx Dashboard.
## Forward data to your local instance with script tag
To forward your data on your self-hosted instance, you need to set up the following variables: add your `data-host`, add your `data-port`, and add your `data-secure`, setting it to true if it is HTTPS, and false if it is HTTP.
```html
```
# Official Docs
For more info read our [documentation](https://docs.litlyx.com). (will be improved in the near future using Mintlify!)
# Join Discord
If you need more information, interact with us or the community, help, or want to provide feedbacks, feel free to join us on the Litlyx [Discord](https://discord.gg/9cQykjsmWX)
# Contributors
Every kind of contribution is accepted in this stage of the project. In the future we will improve the contributor onboarding process.
# License
Litlyx is licensed under the [Apache 2.0](/LICENSE) license.