For Developers / Instrument your app |
Tag views, or screens, in your application in order to track the way users flow through it. To tag views, add a tagScreen call in the viewDidAppear call for each of your views.
If your project doesn't define this function, create it from the definition below. This should live in the view controller code. Don't append the name ‘screen’ to each screen because it'll be redundant when you view the data online.
As with events, don't name each screen dynamically. For example, a screen displaying an article should be tagged simply as Article, rather than with the article's title.
- (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; [Localytics tagScreen:@"Settings"]; }
onResume() { super.onResume(); Localytics.openSession(); Localytics.tagScreen("Splash"); Localytics.upload(); }
Call tagScreen after the open for each page.
ll('tagScreen', 'Article View');
Localytics.TagScreen(screenName);