Skip to content

Analytics

Matan Lurey edited this page Apr 1, 2021 · 2 revisions

Our mod uses Google Analytics to track usage, latency, and exceptions.

We use a custom Lua-implemented version of the collection protocol.

Are you a contributor? To request access, please contact us.

Usage

Log an event

#include !/Analytics

-- Required arguments
ga_event("category", "action")

-- Optional arguments
ga_event("category", "action", "label", "value")

Log a "screen" view

#include !/Analytics

ga_view("featured_maps")

Log a "timing"

#include !/Analytics

ga_timing("category", "variable", "time", "label")

Log an exception

#include !/Analytics

-- Non-fatal exception
ga_exception("description")

-- Fatal exception
ga_exception("description", true)