Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Ad click attribution counts #6558

Closed
5 tasks
liuche opened this issue Nov 12, 2019 · 18 comments
Closed
5 tasks

Ad click attribution counts #6558

liuche opened this issue Nov 12, 2019 · 18 comments
Assignees
Labels
E5 Estimation Point: about 5 days eng:qa:verified QA Verified Feature:Search Feature:Telemetry

Comments

@liuche
Copy link
Contributor

liuche commented Nov 12, 2019

As part of search attribution parity with Desktop, we also need to collect

  • Count of partner search pages w/ ads
  • Count of ad clicks

Acceptance Criteria

  • Telemetry type created that is similar to the desktop browser.search Scalar, or a similar data format cleared by Frank Bertsch (Data Engineering) This should be labeled_counter
  • Request list of partner urls from Mike Connor @mconnormoz
  • Data review (Desktop data review request here)
  • Count of pages loaded that match partner search provider pages (that are assumed to have ads) browser.search.with_ads
  • Count of ad clicks browser.search.ad_clicks (like a redirect)

Helpful context

┆Issue is synchronized with this Jira Task

@liuche liuche added the must label Nov 12, 2019
@bifleming bifleming added the E5 Estimation Point: about 5 days label Dec 3, 2019
@liuche liuche added this to Prioritized Feature Backlog in Fenix Sprint Kanban Dec 5, 2019
@liuche
Copy link
Contributor Author

liuche commented Dec 5, 2019

I'm in the process of asking mconnor for these lists, if someone picks up this issue and the info isn't ready yet, please ping me!

@liuche liuche moved this from Prioritized Feature Backlog to Sprint Backlog in Fenix Sprint Kanban Dec 6, 2019
@liuche liuche moved this from Sprint Backlog to Prioritized Feature Backlog in Fenix Sprint Kanban Dec 6, 2019
@liuche liuche moved this from Prioritized Feature Backlog to Sprint Backlog in Fenix Sprint Kanban Dec 6, 2019
@BranescuMihai BranescuMihai self-assigned this Dec 10, 2019
@sblatz sblatz moved this from Sprint Backlog to In Progress in Fenix Sprint Kanban Dec 10, 2019
@BranescuMihai
Copy link
Contributor

@liuche, when the list of partner urls is available, please let me know :)

@Standard8
Copy link

* Desktop [tests](https://searchfox.org/mozilla-central/source/browser/components/search/test/unit/test_urlTelemetry.js) for `browser.search.ad_clicks` code

There is also https://searchfox.org/mozilla-central/source/browser/components/search/test/browser/browser_searchTelemetry.js

@liuche
Copy link
Contributor Author

liuche commented Dec 17, 2019

Hi @BranescuMihai, you should have access to the docs and links, I added you to an email thread and doc.

@vesta0 vesta0 removed this from Must in Fenix Q1 Feature Backlog Dec 17, 2019
@BranescuMihai
Copy link
Contributor

Hey @liuche, yep, I just noticed that, somehow it was lost between emails, thank you!

@liuche liuche moved this from In Progress to Sprint Backlog in Fenix Sprint Kanban Jan 24, 2020
@BranescuMihai BranescuMihai self-assigned this Feb 4, 2020
@vesta0 vesta0 added should and removed must labels Feb 6, 2020
@vesta0 vesta0 moved this from Sprint Backlog to Prioritized Feature Backlog in Fenix Sprint Kanban Feb 7, 2020
@vesta0
Copy link
Collaborator

vesta0 commented Feb 20, 2020

Spoke to mconnor about this issue. This is not a MUST for the launch but should be a fast follower.

@dbolter
Copy link

dbolter commented Mar 23, 2020

Given the strategy shift in launch, @liuche do we have time to get this in?

@vesta0 vesta0 removed the should label Mar 28, 2020
@vesta0 vesta0 added this to Usage metrics & User engagement in Fenix Q2 Feature Backlog Mar 29, 2020
@vesta0 vesta0 removed this from Usage metrics & User engagement in Fenix Q2 Feature Backlog Mar 29, 2020
@vesta0 vesta0 removed this from Prioritized Feature Backlog in Fenix Sprint Kanban Mar 30, 2020
@liuche
Copy link
Contributor Author

liuche commented Mar 31, 2020

Hi @BranescuMihai is this something you can pick up again?

BranescuMihai added a commit to BranescuMihai/fenix that referenced this issue Apr 23, 2020
BranescuMihai added a commit to BranescuMihai/fenix that referenced this issue Apr 23, 2020
BranescuMihai added a commit to BranescuMihai/fenix that referenced this issue Apr 23, 2020
BranescuMihai added a commit to BranescuMihai/fenix that referenced this issue Apr 23, 2020
These two do not contain ad servers, so we don't need to unnecessarily monitor them
BranescuMihai added a commit to BranescuMihai/fenix that referenced this issue Apr 23, 2020
The initial design replaced the onload method, which was used by others such as Bing.
With listeners it's additive, we do not replace anything.
boek pushed a commit that referenced this issue Apr 24, 2020
boek pushed a commit that referenced this issue Apr 24, 2020
These two do not contain ad servers, so we don't need to unnecessarily monitor them
boek pushed a commit that referenced this issue Apr 24, 2020
The initial design replaced the onload method, which was used by others such as Bing.
With listeners it's additive, we do not replace anything.
@boek boek added the eng:qa:needed QA Needed label Apr 24, 2020
@vesta0 vesta0 moved this from Sprint Backlog to In Dev Review in Fenix Sprint Kanban Apr 28, 2020
@vesta0 vesta0 moved this from In Dev Review to Ready for QA in Fenix Sprint Kanban Apr 28, 2020
@liuche liuche mentioned this issue Apr 28, 2020
32 tasks
@Diana-Rus
Copy link

Diana-Rus commented Apr 29, 2020

Hi, verified this issue with the following scenarios on Nightly 4/28 and Beta 5.0.0-beta.1 - 4/29:

A). Searches without ads - no tracking is done as there are no ads
Google -> Ping - a6658f57-30a3-4ef6-89a6-60726137b865
Bing -> Ping - 336e141d-f4ca-4145-acf7-c889547d8000
Duckduckgo -> Ping - b2a8e7f0-7aa7-42e6-a7e0-0034bf177b14

B). Searches with ads & Ads clicked from searches

  1. Google Engine - count of one search with ads. Ping- 9fc93a95-4e11-49b4-8282-9921192eb75a ✔️
  2. Google Engine - count two searches with ads. Ping- 78202251-b51c-47e9-86db-d178dcfcb66e ✔️
  3. Google Engine - count of clicked ads. Ping- fadba36e-7ea5-4e53-8310-53ce31093b8a ✔️
  4. Bing Engine - count of one search with ads. Ping- 477f17cd-934d-43d5-9fa4-4087fab877c0 ✔️
  5. Bing Engine - count two searches with ads. Ping- b0b53ad8-b54a-4bce-b9ae-2d45d3a60035 ✔️
  6. Bing Engine - count of clicked ads. Ping-477f17cd-934d-43d5-9fa4-4087fab877c0 ✔️
  7. Duckduckgo Engine - count of one search with ads. Ping-a2ac5c05-8ac4-4149-b811-7d956e8d6e88 ✔️
  8. Duckduckgo Engine - count two searches with ads. Ping - af15d27a-90bd-4c12-992f-966490d6747d ✔️
  9. Duckduckgo Engine - count of clicked ads. Ping - af15d27a-90bd-4c12-992f-966490d6747d ✔️
  10. Combination of searches and ads made on different search engines through search shorcuts. Baseline Ping - a28db793-1180-40a5-910c-8c0a81484f12 ✔️

[Glean dashboard] - Nightly - https://debug-ping-preview.firebaseapp.com/pings/ad-clicks-dr1
[Glean dashboard] - Beta - https://debug-ping-preview.firebaseapp.com/pings/ad-clickdr2

Note:

  • labeled_counter
  • browser.search.with_ads -> the number of searches
  • browser.search.ad_clicks -> number of clicked ads
  • Needs to be taken into consideration that browser.search.with_ads increments each time you are on a page with ads, including when you go back to the same page.

Devices:
Google Pixel 3 XL (Android 9)

Beta Baselines:
6558-Beta - Google Baseline- Search with ads and clicked ads.txt
6558-Beta - Bing Baseline - Search with ads and clicked ads.txt
6558- Beta - Duckduckgo Baseline- Search with ads and clicked ads.txt
6558-Beta - Google,Bing,Duckduckgo Baseline- Search with ads and clicked ads.txt

Example of telemetry:
"labeled_counter": {
"browser.search.ad_clicks": {
"bing": 1,
"duckduckgo": 1,
"google": 1
},
"browser.search.in_content": {
"bing.in-content.sap.mozb": 1,
"duckduckgo.in-content.sap.fpas": 1,
"google.in-content.sap-follow-on.firefox-b-m": 1,
"google.in-content.sap.firefox-b-m": 1
},
"browser.search.with_ads": {
"bing": 1,
"duckduckgo": 1,
"google": 1
},
"metrics.search_count": {
"bing.action": 1,
"google-b-m.action": 1
}

@Diana-Rus Diana-Rus added eng:qa:verified QA Verified and removed eng:qa:needed QA Needed labels Apr 29, 2020
@liuche liuche closed this as completed Apr 30, 2020
@liuche liuche moved this from In progress to Done in Feature engagement Apr 30, 2020
@liuche liuche moved this from Ready for QA to Sprint 20.8 Done in Fenix Sprint Kanban May 7, 2020
@vesta0 vesta0 added this to Q2: Fenix in Fenix Product Backlog May 12, 2020
@vesta0 vesta0 removed this from Q2: Fenix in Fenix Product Backlog May 12, 2020
@liuche
Copy link
Contributor Author

liuche commented May 12, 2020

Hi @BranescuMihai ! I was talking to the Glean team, and they were looking at the pings today. They wanted to know if these ad click attribution telemetry needs to be in the Baseline ping (since it is also in the Metrics ping).

I don't remember what the reasons were here for choosing both pings - was there a conversation you had with mconnor or Mike de Boer that we needed to have it in both? Did someone from Data Science need it in both?

If it isn't necessary in both, could you remove it from the baseline ping, and keep it in the metrics ping? (Feel free to ping me for clarification on slack too)

@liuche
Copy link
Contributor Author

liuche commented May 12, 2020

Talked to @BranescuMihai and it sounds like we had some miscommunication very early on about what the baseline vs metrics ping means.

We decided that it makes sense to take these search events out of the baseline ping, and Mihai will open a PR to remove it.

@liuche
Copy link
Contributor Author

liuche commented May 12, 2020

@psymoon filed this issue to track this: #10599 please attach your PR to that issue!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
E5 Estimation Point: about 5 days eng:qa:verified QA Verified Feature:Search Feature:Telemetry
Projects
No open projects
Development

No branches or pull requests

11 participants