Track an internal GitLab event
POST
/api/v4/usage_data/track_event
Tracks a GitLab internal event. This action increments Service Ping counters in Redis and is optionally sent to Snowplow. Introduced in GitLab 16.2.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
event
required
The event name that should be tracked
string
Example
i_quickactions_pagenamespace_id
Namespace ID
integer
Example
1234project_id
Project ID
integer
Example
1234project_path
Project path (used to resolve project_id if not provided)
string
Example
namespace/projectadditional_properties
Additional properties to be tracked
object
Example
{ "label": "login_button", "value": 1}send_to_snowplow
Send the tracked event to Snowplow
boolean
Example
trueResponses
Section titled “Responses”OK
Bad Request
Unauthorized
Not found