An implementation of Plausible Analytics pageview and event tracking for Swift. Originally created for the 5 Calls companion app.
Configure a site that is connected to Plausible, then track a pageview event:
let plausible = PlausibleSwift(domain: "example.site")
plausible.trackPageview(path: "/")
Or, track an arbitrary event:
plausible.trackEvent(event: "clicked-donate", path: "/donate")