Tracking opt-in (Follow-up from "Resolve "Create a generic event listener for tracking clicks on GitLab.com"")
The following discussion from !7403 (merged) should be addressed:
-
@dennis started a discussion: (+2 comments) Another thought I had was that it's possible some events may not be properly tracked if, for example, they're tied to a form submit button.
It would be possible for the form submission to complete before the tracking event is successfully sent to Snowplow. In which case we would be missing out data dependent on the user's latency.
That said, if we do something like delaying form submission until the event is properly tracked, you might run into issues with ad blockers possibly preventing the Snowplow request from completing at all, which could get into another matter of whether these should be user opt-in or not...
/cc @jeremy_
We should give the user the possibility to opt-in in Snowplow tracking.
The "delay of a form submit" is out of scope for this issue and is covered in https://gitlab.com/gitlab-org/gitlab-ee/issues/7808