mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-27 19:56:57 +02:00
Feature/4795 feature tracking matomo
This commit is contained in:
committed by
Frank Rotermund
parent
013047191e
commit
27723fa953
@@ -195,6 +195,17 @@ import MatomoTracker
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func trackEventWithDimension(category: String, action: String, dimension: String, value: NSNumber?, name: String?) {
|
||||
if fastRunning {
|
||||
// bwi: Analytics use custom config
|
||||
if let dimensionIndex = analyticsConfig.selectedSendMessageDimensionIndex() {
|
||||
matomo?.setDimension(dimension, forIndex: dimensionIndex)
|
||||
matomo?.track(eventWithCategory: category, action: action, name: name, number: value, url:nil) // name optional unwrap?
|
||||
matomo?.remove(dimensionAtIndex: dimensionIndex)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension BWIAnalytics : MXAnalyticsDelegate {
|
||||
|
||||
Reference in New Issue
Block a user