Closed Bug 1849373 Opened 2 years ago Closed 2 years ago

Update search-telemetry-v2 with cookie banner related selectors for detection and accept/reject engagement

Categories

(Firefox :: Search, task, P2)

task

Tracking

()

RESOLVED FIXED

People

(Reporter: jteow, Assigned: klubana)

References

Details

(Whiteboard: [sng])

Attachments

(1 file)

We'll need to add the queries that correspond to detecting cookie banners search-telemetry-v2.

Depends on: 1849371
Summary: Update search-telemetry-v2 with cookie banner related selectors → Update search-telemetry-v2 with cookie banner related selectors for detection on pages
No longer depends on: 1849372
Summary: Update search-telemetry-v2 with cookie banner related selectors for detection on pages → Update search-telemetry-v2 with cookie banner related selectors for detection and accept/reject engagement
Assignee: nobody → klubana
Status: NEW → ASSIGNED
Depends on: 1879714

When utilizing the search-telemetry-v2 data, we need to pay close attention to ad impression components in the logs. For instance, in scenarios where a cookie banner is present, you should observe a log entry similar to:

  • Cookie Banner Presence: Counting ad: { type: “cookie_banner”, ads_visible: 1, ads_hidden: 0, ads_loaded: 1 }

This entry signifies the detection and counting of a cookie banner as part of ad impressions.
It is also important to observe that cookie banner is only listed in ad impressions on pages where it is actually loaded.

User engagements with the cookie banner, such as clicking accept, reject, or more options, will be distinctly recorded.

  • Accepting Cookie Banner: Reported page action: { target: “cookie_banner”, action: “clicked_accept” }
  • Rejecting Cookie Banner: Reported page action: { target: “cookie_banner”, action: “clicked_reject” }
  • Exploring More Options: Reported page action: { target: “cookie_banner”, action: “clicked_more_options” }

It is essential that these interactions are accurately reflected in the logs, demonstrating the users' decisions regarding cookie settings.
On pages that do not load a cookie banner, there should be no ad impressions related to the cookie banner logged. Moreover, Upon the user selecting one of the three options (accept, reject, more options) in the cookie banner, it should not register as an abandonment action in the telemetry.
On older builds, you should expect that cookie_banner is present on ad_impression but no engagement event will be recorded for clicking on any of the options.
Note that these updates are not exclusive to Google but also extend to Bing and Ecosia, ensuring a consistent approach across different search engines.

Flags: needinfo?(aflorinescu)

Tested the cookie banner ad_impressions for Google, Bing and Ecosia using RS-Staging. Apart from bug 1887662, no other issues were found.
The testing coverage can be viewed here.
If the Ecosia bug is not that impactful, we might consider pushing the cookie banner ad impression to PROD.

Thank you Cristian.

I think we can gain insight from the changes commited to production.

I'm going to recommend not including the Ecosia changes because if it only sometimes works (locally it works for me but clearly in QA it doesn't work at all), it could give very inaccurate data.

Flags: needinfo?(aflorinescu)
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Duplicate of this bug: 1878739
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: