Closed Bug 1797073 Opened 3 years ago Closed 3 years ago

Add Telemetry for cookie banner handling coverage

Categories

(Core :: Privacy: Anti-Tracking, task)

task

Tracking

()

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: timhuang, Assigned: timhuang)

References

Details

Attachments

(5 files)

To answer the following question

How many sites covered do cookie banner handling in an all or private session (Top URL loads)

We collect the data when the page loads to see if there is a hit or miss on the cookie banner rule list. And we would like to know the following things

  • Cookie Rule coverage
  • Click Rule coverage
  • Overall coverage
    And the data should be divided by
  • coverage by loads
  • coverage by domains (duplicate loads)

There are two places where we can collect the data,

Assignee: nobody → tihuang
Status: NEW → ASSIGNED

The patch implements nsCookieBannerService::ReportRuleLookupTelemetry().
In the function, we report two telemetry probes related to hit/miss rule
lookups: one for rule lookup hit/miss counts by loads, another for
counts by domains. We will only report once for each domain.

Depends on D162628

We collect the rule lookup telemetry when getting cookie banner click
rule because the cookie banner clicking will be called for both
top-level pages and iframes.

This patch adds a parameter to
nsICookieBannerService.getClickRulesForDomain to indicate if the caller
is in top-level context so that we can know and report the data to
corresponding telemetry labels. It also instructs GetRuleForDomain() to
report telemetry if it is called from GetClickRulesForDomain().

Depends on D162629

Attachment #9304727 - Flags: data-review?(chutten)

Comment on attachment 9304727 [details]
data-request-Bug1797073.md

DATA COLLECTION REVIEW RESPONSE:

Is there or will there be documentation that describes the schema for the ultimate data set available publicly, complete and accurate?

Yes.

Is there a control mechanism that allows the user to turn the data collection on and off?

Yes. This collection is Telemetry so can be controlled through Firefox's Preferences.

If the request is for permanent data collection, is there someone who will monitor the data over time?

No. This collection will expire in Firefox 115.

Using the category system of data types on the Mozilla wiki, what collection type of data do the requested measurements fall under?

Category 2, Interaction. (Though the description says "by domain", this is the unit of resolution. The domain isn't collected.)

Is the data collection request for default-on or default-off?

Default on for all channels.

Does the instrumentation include the addition of any new identifiers?

No.

Is the data collection covered by the existing Firefox privacy notice?

Yes.

Does the data collection use a third-party collection tool?

No.


Result: datareview+

Attachment #9304727 - Flags: data-review?(chutten) → data-review+
Pushed by tihuang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/def0dc2b5ec2 Part 1: Add glean metrics for cookie banner rule lookup coverage. r=pbz https://hg.mozilla.org/integration/autoland/rev/a2edee19ed51 Part 2: Implement the nsCookieBannerService::ReportRuleLookupTelemetry() which reports rule lookup telemetry. r=pbz https://hg.mozilla.org/integration/autoland/rev/6b23116830c6 Part 3: Collect rule lookup telemetry when getting cookie banner click rule. r=pbz https://hg.mozilla.org/integration/autoland/rev/e10568c45ede Part 4: Add tests for cookie banner rule lookup telemetry. r=pbz

Backed out for causing failures on test_cookiebannerlistservice.js

Flags: needinfo?(tihuang)
Flags: needinfo?(tihuang)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: