Skip to content
Snippets Groups Projects

usagestats: redact info from URLs, send to BigQuery

Created by: attfarhan

This PR re-adds URLs to event payloads sent to BigQuery, with redaction for URL paths and query parameters not explicitly specified for marketing usage. This is being added to ensure we can implement a marketing attribution solution and determine the effectiveness of our campaigns.

URLs were completely removed in the past to make sure we didn't leak any private info to our analytics systems from Sourcegraph Cloud. With redaction in place for everything except marketing UTMs / query params, we can send URLs without leaking any private data.

Test plan

Added unit tests for the new function. Tested locally that events are properly sent to a mirror of the BQ data warehouse.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading