Releases: groupeminaste/DigiAnalytics
Releases · groupeminaste/DigiAnalytics
DigiAnalytics Package v1.0.3
Adding support for watchOS
DigiAnalytics Package v1.0.2
Option to set a custom referrer (when app launched from web)
DigiAnalytics Package v1.0.1
Quick improvements
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`