DigiAnalytics Package for iOS v1.0.0
DigiAnalytics
Realtime web analytics with privacy and simplicity at its core.
Installation
Add https://github.com/GroupeMINASTE/DigiAnalytics.git
to your Swift Package configuration (or using the Xcode menu: File
> Swift Packages
> Add Package Dependency
)
Register your app
Go to https://digianalytics.fr/websites/new to register your app.
You need to choose a domain name or subdomain to associate your app with.
In this example, we will use https://app.example.com/
as website URL.
Usage
Before sending any request, set your app website URL:
DigiAnalytics.shared.baseURL = "https://app.example.com/"
Then, send requests where you want to get analytics (e.g. in a view controller viewDidAppear(_:)
)
DigiAnalytics.shared.send(path: "home") // Will appear on dashbord as `https://app.example.com/home`