Lite Analytics documentation

Install script in plain HTML

To enable tracking of visits and other vital website statistics, it's essential to embed the provided JavaScript code within the <head> section of your webpages.

From settings section you can 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>

To get exact script for your web property, go to Settings and select Get code for desired web property.

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>
@LiteAnalytics on Twitter
©2024 Lite Analytics