I’ve been requested to add analytics stuff on a app that I’m working on, and one of the events that I need to track is: in what screen of the app the user was when he touched an AD.
That seems strange to me, and I think its not possible to do it on a reliable way. I tried looking online but with no luck.
We are using multiple ad networks, so I thought of adding some event that tracks when the user leaves the app (ads usually do that).
Anyone know a better way to do that, or even, if is it possible to do that with any ad network?
Thank you.
I will speak for IOS but i am sure that it is possible in android as well. On IOS, check if the advertisement framework has any delegate methods, any popular one should. If you are rolling your own, simply add your own delegate methods to the framework. For example, iAds has the following delegate method:
This method is called when a user clicks on an advertisement. I assume you know how to track which view an application is in, using viewDidAppear and saving the currently last loaded page somewhere to access later. You can then submit that page name to your analytics inside of the above delegate method, or whichever framework you are using delegate method.