Event & log tracking can be useful for a variety of reasons:

  • Tracking an influx of events for a new release
  • Analytics purposes like observing user behavior
  • Retrieving logs tied to a specific issue or session

By default, Overlayed has a number of events tracked and are surfaced via the Overlayed Dashboard:

  • game_launch
  • game_close

And logs like:

  • fatal
  • error
  • warning

Tracking Custom Events

We expose this functionality so that you can track custom events and logs from your application, and tie the data into the dashboard just like we do for native Overlayed events.

trackEvent

overlay.cortex.trackEvent("my_custom_event", {
	someData: "some_data",
});

trackLog

overlay.cortex.trackLog("my_custom_log", {
	someData: "some_data",
});