
Analytics
After you add the library to your project, you can make any of the Analytics method calls anywhere in your App
(make sure you import ADBMobile.h to your class).
Enable Mobile Application Reports in Analytics
Before you add code, have your Analytics Administrator complete the following to enable Mobile App Lifecycle
tracking. This ensures that your report suite is ready to capture metrics as you begin development.
1.
Open Admin Tools > Report Suites and select your mobile report suite(s).
2.
Click Edit Settings > Mobile Management > Mobile Application Reporting.
3.
Click Enable Mobile App Livecycle Tracking, and optionally, Enable Mobile Location Tracking and Enable
Google Play Campaign Tracking.
Lifecycle metrics are now ready to be captured, and Mobile Application Reports appear in the Reports menu in
the marketing reports interface.
Lifecycle Metrics
To collect lifecycle metrics in your app, call collectLifecycleData() in the ApplicationUI constructor. For
example:
ApplicationUI::ApplicationUI(bb::cascades::Application *app): QObject(app) {
//...
ADBMobile::collectLifecycleData();
}
11Analytics
Komentarze do niniejszej Instrukcji