Closed avadhbambhroliya closed 6 years ago
I also have same question..
Sure, what do you have in mind? You could create a custom ViewController, add some implementation there and let all your ViewControllers inherit from this one.
class MatomoTrackedViewController: UIViewController {
var path: [String]? = nil
func viewDidAppear(animated: Boolean) {
super.viewDidAppear(animated: animated)
matomoTracker.track(view: path)
}
}
I wouldn't reccomend that, because you lose quite some flexibility.
Thank you @brototyp
Absolutely. You are welcome!
is there any easy way to implement in iOS App other than typing this line matomoTracker.track(view: [“path”,“to”,“your”,“page”]) in every controller?