
(Optional) Enable Offline Tracking
To store hits when the device is offline, you can enable offline tracking in the ADBMobileConfig.json Config File
Reference. Pay very close attention to the timestamp requirements described in the config file reference before you
enable offline tracking.
Analytics Methods
Each of these methods is used to send data into your Adobe Analytics report suite.
DescriptionMethod
Tracks an app state with optional context data. States are the views that are available in
your app, such as "home dashboard", "app settings", "cart", and so on. These states are
similar to pages on a website, and trackState calls increment page views.
trackState
Note: This is the only tracking call that increments page views.
Syntax:
static void trackState(QString state, QHash<QString, QString> contextData
= QHash<QString, QString>());
Example:
ADBMobile::trackState("loginScreen", null);
Tracks an action in your app. Actions are the things that happen in your app that you want
to measure, such as "logons", "banner taps", "feed subscriptions", and other metrics.
trackAction
Syntax:
static void trackAction(QString action, QHash<QString, QString> contextData
= QHash<QString, QString>());
Example:
ADBMobile::trackAction("heroBannerTouched", null);
Sends the current x y coordinates. Replace event with the event that is received from the
subscriber to BPS.
trackLocation
Syntax:
static void trackLocation(bps_event_t *geoEvent, QHash<QString, QString>
contextData = QHash<QString, QString>());
Example:
ADBMobile::trackLocation(event, null);
13Analytics
Kommentare zu diesen Handbüchern