Recipe: Creating a traffic heatmap

Follow

When analyzing your data, there are key questions you need to answer. Questions like how, who, where, why, and when can involve a lot of information. This recipe will show you an easy way to display when traffic is heaviest in one compact chart. You can also use this report to look at other usage data over time, such as calls received or support tickets created.

Note: This recipe uses a Google Analytics connection, but you can use any connection containing a timestamp attribute. For information on connecting to data sources, see Adding connections .

Skill level : Beginner

Time requires : 10 minutes

Ingredients :
  • A timestamp attribute to at least the hour level
  • One calculated metric
  • One color-encoded metric

Adding your data

This section will discuss creating your calculated metric and adding data to your report. This recipe analyzes results by weekday, so time periods are measured in weeks. You can use other time periods in your reporting.

  1. Connect to your data source (see Adding connections ).
  2. In the Query Builder, click the + button on Columns.
  3. Select your HOUR(Date) attribute from the drop-down list.

  4. Open the Date period menu ( ) on the right panel. If you're not using a Google Analytics connection, see Adding and editing dates .
  5. Open the Advanced panel.
  6. Enter the following date ranges. If you're using a different time period, enter your date ranges instead.
    • From the beginning of 12 weeks in the past.
    • To the end of 1 week in the past.

  7. Click Apply .
  8. In the Calculation engine menu ( ), select Standard calculated metric .
  9. Enter the integer 1 as the formula. This calculated metric only requires the number 1.

  10. Click Save .
  11. Click the + button on Metrics, then select your calculated metric.
  12. Click the + button on Rows, then select Weekday. If you are using different time periods, select the date attribute you are analyzing results by.
  13. Click the color-encoding icon ( ) on Metrics.
  14. Select the metric you would like to analyze. This recipe uses Sessions to compare traffic on different days.

Your chart will automatically appear as a line chart. The next section will discuss configuring your report as a heatmap.

Creating your heatmap

To easily compare multiple types of data in one chart, you can create a heatmap . A heatmap will help you identify outliers and evaluate the overall average of your results.
  1. In the Visualization type menu, select the table chart.
  2. In the Chart configuration menu ( ), select Columns .
  3. Check the Metrics on rows box.
  4. Click the eye button for Column 2 to hide the second column.

  5. Click the back arrow to return to the main menu.
  6. Select Chart .
  7. For Text Style , enter 0 as the text size.

  8. Click the back arrow.
  9. Select Colors > Color encoding to customize the color gradient for your metric. This example uses a white-to-dark gradient to clearly identify the high and low results.

  10. Click the back arrow.
  11. Select Legend .
  12. In the Legend position drop-down list, select Top .

    It is optimal to place your legend at the top, so your viewers can easily see the scale of your report.

  13. Check the Inline layout box.

You have now created your heatmap report. In this report, you can use your rows to compare the activity by day, columns to compare activity by hour, and the entire chart to identify the highest and lowest results.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk