matomo-org/matomo-sdk-ios

iOS SDK does not track view.

jinjin-lee opened this issue · 2 comments

Hello
I am a ios developer and would like to integrate matomo sdk in my project.
But sdk tracked view just once at first and is not working any more.
I am trying to find solution but i cannot find issue.
Could you help me for this issue?

Thanks

try to extend UIViewController

extension UIViewController {
    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        matomoTracker.track(view: [self.title])
    }
}

Hey, thanks for the report. How did you initialize the matomoTracker?