analytics
Allows statistics to be sent to and recorded in Google Analytics.
Summary
| Latest Version | 0.3.0 |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-08-31 07:16 |
Tags
Authors
- Dominik Picheta
Installation
nimble install analytics
choosenim install analytics
git clone https://github.com/dom96/analytics
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| analytics | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 0.17.2 | No |
| uuids >= | 0.1.7 | No |
| osinfo >= | 0.3.0 | No |
| puppy >= | 1.2.1 | No |
Source
| Repository | https://github.com/dom96/analytics |
|---|---|
| Homepage | https://github.com/dom96/analytics |
| Registry Source | nimble_official |
README
Analytics
A Nim library for reporting events on Google Analytics.
Usage
In your .nimble file:
requires "analytics"
In your Nim source code:
import analytics
let tid = "<YourAnalyticsTrackingId>"
let cid = genClientID() # Only generate this once per user!
let analytics = newAnalytics(tid, cid, "AnalyticsTester", "v0.1")
analytics.reportEvent("AnalyticsTest", "Hello", "", "")