Post

[Heatmap #3] Heatmap Analytics is Released (Local Mode Only, For Now)

[Heatmap #3] Heatmap Analytics is Released (Local Mode Only, For Now)

Heatmap Analytics is a Unity package. It records where events happen in your game and draws them as a heatmap on top of your level in the Scene view.

The first version is out: Asset Store Link.

It works only locally for now. Everything runs and saved on your own computer.

Heatmap Analytics rendering a heatmap over a level

Why local first

For local mode you don’t have to create an account or keys, and for me there is no server to run. It was the part I was able to finish and test properly first. Every visualization and rendering feature works.

The downside is that it only gets data while you play in the Editor, or from test builds running on your own local network.

Why I built it

I built Heatmap Analytics to solve one problem. Most game analytics tools show data in the form of rows and tables, which is difficult to visualize and it makes answering questions like these ones impossible: Where most players deaths piles up? Which rooms or areas do they visit often?

How it works

  1. You have to add one line where your event happens:

    1
    2
    3
    4
    5
    
    HeatmapAnalytics.Instance.AddSpatialEvent(
        EventTypes.Killed_By_Sniper,
        levelName,
        player.position,
        player.forward);
    
  2. Play the game. In the Editor, events are saved directly. Test builds on the local network, a phone for example, send their events to a small server that runs inside the Editor. So several people can test at the same time.
  3. Open the Heatmap window, pick a level and an event, and press Render Heatmap.

Events are saved in a JSON file outside your project folder. They are not lost when you reimport, and they do not end up in source control.

What it does not do yet

It does not collect data from players’ published builds yet. That part already works, but it runs on a hosted service, and I want to polish the local tool first. When local mode is where I want it, I will move on to the cloud part and write about it then.

What I want to know

If you try it, tell me:

  • Which events you track.
  • What heatmap drawing type you prefer: grid, spheres or bars.
  • Any bug you found

Get it here: Asset Store Link.

The docs start at Getting Started.

mourad.bakhali@gmail.com

This post is licensed under CC BY 4.0 by the author.