--- title: "Metrics" slug: "metrics" updated: 2026-06-08T08:54:12Z published: 2026-06-08T08:54:12Z canonical: "docs.xtremepush.com/metrics" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.xtremepush.com/llms.txt > Use this file to discover all available pages before exploring further. # 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. ![2246](https://cdn.document360.io/b056e88b-f6c1-4bd2-b5b8-08e9336a17c9/Images/Documentation/9545c24-Screenshot_2021-04-14_at_10.22.53(1).png?sv=2026-02-06&spr=https&st=2026-11-04T09%3A28%3A38Z&se=2026-11-04T10%3A28%3A38Z&sr=c&sp=r&sig=W%2Bvqn0CTqBvIKSlCIcMIaYhQ8M9wAPmn4cudiLLGcFU%3D) This example shows a metric called revenue whose values will be tracked in euros. > [!NOTE] > Info > > 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](/documentation/docs/behavioural-data#tagging) methods. To do so you would need to use the following syntax: **Swift** ```swift // 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") ``` **Objective-C** ```objectivec // 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"]; ``` **Java** ```java // 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"); ``` **Javascript** ```javascript // 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 > [!TIP] > 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. ![2736](https://cdn.document360.io/b056e88b-f6c1-4bd2-b5b8-08e9336a17c9/Images/Documentation/fc862f7-Screenshot_2021-04-13_at_14.52.25(1).png?sv=2026-02-06&spr=https&st=2026-11-04T09%3A28%3A38Z&se=2026-11-04T10%3A28%3A38Z&sr=c&sp=r&sig=W%2Bvqn0CTqBvIKSlCIcMIaYhQ8M9wAPmn4cudiLLGcFU%3D) View of the analytics page for metrics.