Add raw Javascript tracking for Gitlab Internal events
Problem
Our current Internal Events tracking solution only supports tracking via a vue mixin (see #410518 (closed)). However, in some cases it is needed to track events directly from arbitrary Frontend javascript code that does not reside within a component. In these cases the Mixin cannot be used (example)
Desired Outcome
We expose a module and method that allows developers to track Gitlab Internal Events from any arbitrary Javascript code. This method of tracking should be properly documented then as well.
Potential Solutions
We can take inspiration from the current Snowplow implementation, see docs.
Edited by Sebastian Rehm