Is there an analytic trigger tool on iOS/MacOS?

I want to count how many people view each of my pages in my app.

Is there a way to setup a trigger in an iOS/MacOS project so that when a page is viewed that it can activate the trigger and increase the count for how many people have viewed a particular page?

I did something similar using firebase, but my current company wants to only use apple services. Here is the firebase link to what i used for custom events: https://firebase.google.com/docs/analytics/events?platform=web

Any help finding an apple version or help would be greatly appreciated!

Accepted Reply

You could implement a counter in each VC (viewDidAppear or ViewDidLoad depending on what you want to count).

Then save it to userDefaults.

And ask permission to upload those data to your servers from time to time.

To make it more generic, you could subclass UIViewController.

Replies

You could implement a counter in each VC (viewDidAppear or ViewDidLoad depending on what you want to count).

Then save it to userDefaults.

And ask permission to upload those data to your servers from time to time.

To make it more generic, you could subclass UIViewController.