Installing the Snippet

Once you’ve added your website, the app will generate a unique tracking snippet. Installing this snippet on your website is essential to begin collecting analytics data.

The tracking snippet is a small piece of JavaScript code that monitors user activity on your website, such as page views, sessions, and events. It must be embedded within the <head> … </head> tags of your site.

It should look something like this:

<script
  async
  defer
  data-domain="example.com"
  src="https://loglesk.io/js/script.js"
></script>

Replace example.com with your actual domain provided in the dashboard. Once you’ve added the snippet to your website, you’ll be able to see your traffic in real-time on your dashboard.

Note: Want to track visitors across your domain and its subdomains? You can add your main domain name as a site to your account and use that same tracking snippet on all your subdomains too. This keeps the visitor session active between your main site and its subdomains.

hello@loglesk.io

© 2025 Loglesk Analytics