Metrics
Metrics are measures of quantitative assessment, commonly used to track performance. Examples of metrics could be revenue, reward points, air miles, number of transactions, money deposited, etc. Xtremepush allows you to assign a metric value to any tag to track metrics from your mobile app or your website.
Creating a metric
You can view, edit, delete and create metrics by navigating to Data > Data Manager > Metrics.
Write the metric name, display name (user friendly name) and unit.
A metric is created in your project if you manually create it as described above or it will also be created when you tag it for the first time from your mobile app or website. Once you have tagged it you can access the Data Manager to add a user friendly name or assign a unit to it.
Tagging metrics from your app or website
You can tag your metrics up to the platform from your app using our tagging methods. To do so you would need to use the following syntax:
// On iOS You can send any available metric
XPush.hitTag("#METRICNAME: TAGNAME", withValue: AMOUNT)
// like an amount of revenue related to a purchase
XPush.hitTag("#revenue: new-suit.purchased", withValue: "500")
// or the number of air-miles related to a flight
XPush.hitTag("#air-miles: Flight.London-to-NewYork", withValue: "1200")
// On iOS You can send any available metric
[XPush hitTag:@"#METRICNAME: TAGNAME" withValue: AMOUNT];
// like an amount of revenue related to a purchase
[XPush hitTag:@"#revenue: new-suit.purchased" withValue: @"500"];
// or the number of air-miles related to a flight
[XPush hitTag:@"#air-miles: Flight.London-to-NewYork" withValue: @"1200"];
// On Android You can send any available metric
mPushConnector.hitTag("#METRICNAME: TAGNAME", AMOUNT);
// like an amount of revenue related to a purchase
mPushConnector.hitTag("#revenue: new-suit.purchased", "500");
// or the number of air-miles related to a flight
mPushConnector.hitTag("#air-miles: Flight.London-to-NewYork", "1200");
// On your website you can send any available metric
xtremepush('tag', '#metricname: tagname', amount);
// like an amount of revenue related to a purchase
xtremepush('tag', '#revenue: new-suit.purchased', 500);
// or the number of air-miles related to a flight
xtremepush('tag', '#air.miles: flight.London', 1200);
Metrics analytics
Once you have added these tags you can view your tracked metrics in the application metrics page of the analytics suite by navigating to Analytics > Behaviour > Metrics. The display name will be shown in this page
Metric split by type of application
If you have integrated more than one type of app (website / mobile app), the metrics analytics page will show a split of the metrics by app type.
Updated over 3 years ago