About this project
Sweep Analytics JS is a lightweight JavaScript tracking library designed to integrate with the Sweep Analytics platform. It provides a simple, privacy-conscious way to collect web analytics data without tracking user IP addresses.
Installation requires adding a single script tag to the page header with your API key. The library supports several configuration options: the `key` attribute for authentication, `noCookie` to disable cookie-based user identification, and `logs` to enable error logging.
The tracker collects page view data including URL, referrer, language, platform, user agent, and screen size. Users are identified through randomly generated anonymous UUIDs stored in cookies, though cookie tracking can be disabled. Events such as button clicks are tracked using the `data-sweep-click` HTML attribute, which accepts comma-separated tracking values and allows custom metadata to be appended.
The project is released under the MIT license and was created by Jonas Regner and Fabian Bentz.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.