> ## Documentation Index
> Fetch the complete documentation index at: https://docs.litlyx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Easy Setup

> Track web analytics, visitors, sessions, and custom events anywhere in just seconds. We support WordPress, Shopify, and all major website builders.

## Pre-Requisites

Sign up on [Litlyx](https://dashboard.litlyx.com/) and create a new workspace.

## Universal Setup

With just one line of code in your **index.html** — placed either at the end of the **body** or inside the **head** tag — you can start tracking data like `Best Performing Pages`, `Unique Visitors`, `Real-time Users`, `Sources`, `Bounce Rate`, `Countries`, and much more.

```javascript theme={null}
<script defer data-workspace="workspace_id" 
src="https://cdn.jsdelivr.net/npm/litlyx-js@latest/browser/litlyx.js">
</script>
```

## Website Builder Setup

Litlyx is super versatile. Use it in your favorite website builder like `Wordpress`, `Webflow`, `Framer`, or any platform that lets you add **custom code** inside the **body** or **head** tag.

```javascript theme={null}
<script defer data-workspace="workspace_id" 
src="https://cdn.jsdelivr.net/npm/litlyx-js@latest/browser/litlyx.js">
</script>
```

## Using a Package Manager or Framework

Install the Litlyx library with your favorite package manager:

<CodeGroup>
  ```bash npm theme={null}
  npm install litlyx-js
  ```

  ```bash yarn theme={null}
  yarn add litlyx-js
  ```

  ```bash pnpm theme={null}
  pnpm add litlyx-js
  ```

  ```bash bun theme={null}
  bun install litlyx-js
  ```
</CodeGroup>

Now import Litlyx in your `entry-point` file.

```javascript javascript theme={null}
import { Lit } from "litlyx-js"
```

Next, initialize the Litlyx library with your `workspace_id` in your entry-point file as follows:

```javascript javascript theme={null}
Lit.init("workspace_id");
```

## Ready to go!

Head over to the [Litlyx Dashboard](https://dashboard.litlyx.com/) to explore your real-time web analytics.
