Lite Analytics documentation

Install script in plain HTML

To track your site's statistics, you must install the Lite Analytics script on your website.

Lite Analytics will generate a JavaScript code specific to your domain name, which should resemble the following:

<script defer async data-host="your_domain_name_here" src="https://liteanalytics.com/lite.js"></script>

The general recommendation is to place the Lite Analytics code just before the closing </head> tag. However, you can also place it elsewhere within the <body> element if you prefer. The defer and async attributes ensure that the script loads after the rest of the page, so the loading and execution of the Lite Analytics script won't interfere with your page's loading process in any way.


Here's an example of the script embedded in your web page:
<html>
<head>
  <title>Website title</title>
  …
  …
  <script defer async data-host="your_domain_name_here
  src="https://liteanalytics.com/lite.js"></script>

</head>
<body>
  …
  <p>Your website content…</p>
  …
</body>
©2023 Lite Analytics