mirror of
https://github.com/dom96/analytics
synced 2026-01-14 16:31:47 +00:00
No description
| src | ||
| analytics.nimble | ||
| LICENSE | ||
| readme.md | ||
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", "", "")