Metrics

How can I add metrics on Heat Maps console

Before we go into how to add metrics, let's define what they are:

❓What are metrics?

Metrics let you answer the who, what, and where with respect to an entity and create clusters of areas depending on unique properties. They are the building blocks of Locale and allow you to help gather useful insights​​ faster and hence take quick actions and run more experiments on the ground. They are created upon the entities chosen by the user.

Entities are any moving or stationary component in your business with a location & time component. For instance: orders, riders, users, stores, and so on. Internally, they are used to define the relationships between data sources.

How do we make it happen on Locale? We parse these questions as SQL queries to help you get better and faster insights.

Like areas with high demand at 6:00 PM, areas with the most number of cancellations during the weekend, or routes where the most number of delays occur.

πŸ›  How to create metrics?

Here are the following steps you can follow to create metrics that you can visualize and analyze on heat maps.

  • In the Metric studio on the left, click on the Add New Metric.

  • When the window appears, select Metric Type to begin visualizing the specified metric.

πŸͺ What are the different types of metrics that can be added?

We can choose between five different types of metrics:

pageEntity Property MetricpageEvent Count MetricpageIntent Count MetricpageTime Spent MetricpageComputed Metric

πŸͺ What are the required fields?

Metric Name

This is a name given to the metric by the user.

✨ Pro tip: Name the metrics in a way that is understood across the organization by all the team members.

Entity

These are components of your business that have both a location and time component.

The entities can be:

  • User

  • Trips

  • Stations

  • Bikes

  • Driver/Delivery Personnel

  • Orders and so on

✨Note: The entities differ based on the user’s data and industry.

Entity property

These are properties that are associated with entities. For example,

  • If you consider user - it has user id, user age, user gender, and so on.

  • If you consider a trip - it has, distance, starting point, ending point, and so on.

Entity Event:

These are events that occur for every entity. For example,

  • If you consider a user, they have the following events - installed, searched, booked, canceled, selected, and so on.

  • If you consider a trip, there are only two possible events because a trip can either start or end.

  • If you consider a delivery personnel/driver, they can be idle, on duty, or off duty.

✨ Note: In entity property metrics and computed metrics, this field is not available.

Aggregation

This field appears as soon as we choose the event property. What do we mean by aggregation?

It is basically the calculation of all the data points in one hexagon or a polygon.

✨ Note: This aggregation is performed on the event property field. For properties like user id, trip id where no two values can be the same we can only perform count or unique count.

There are different ways in which this calculation can be done:

  • Count: It is basically the counts of all data points in that particular area.

For example, there are three users in a hexagon with installs 45, 78, and 56. When you hover over the hexagon, you will see 3.

  • Unique count: It is similar to the count function as above, but all the duplicate values are excluded.

For example, there are three users in a hexagon with installs 45, 78, 56, and 56. When you hover over the hexagon, you will see 3. Here, 56 is only counted once.

  • Average: As the name suggests, it basically shows the average of all values associated with any entity.

For example, there are three users in a hexagon with installs 45, 78, and 56. When you hover over the hexagon, you will see an average of the three numbers, 59.67

  • Maximum: As the name suggests, it basically shows the largest of all values associated with any entity.

For example, there are three users in a hexagon with installs 45, 78, and 56. When you hover over the hexagon, you will see 78.

  • Minimum: As the name suggests, it basically shows the smallest of all values associated with any entity.

For example, there are three users in a hexagon with installs 45, 78, and 56. When you hover over the hexagon, you will see 45.

  • Median: As the name suggests, it basically shows the median of all values associated with any entity.

For example, there are three users in a hexagon with installs 45, 78, and 56. When you hover over the hexagon, you will see 56.

  • Sum: As the name suggests, it basically shows the smallest of all values associated with any entity.

For example, there are three users in a hexagon with installs 45, 78, and 56. When you hover over the hexagon, you will see 179.

Last updated