You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add 4 new params to broken site pixel metadata (#4873)
Task/Issue URL:
https://app.asana.com/0/1201870266890790/1207382663027468/f
### Description
We want to add `locale` (lang-country, e.g., `en-US`),
`userRefreshCount`, `openerContext` (serp, navigation, external) and
`jsPerformance` (only first contentful paint so far) to breakage reports
to match other platforms.
### Steps to test this PR
- [x] Override privacy configuration url to use
https://jsonblob.com/api/1263877779169861632
- [x] Check that you have content-scope-scripts v. 6.6.0+
- [x] Override
[features.js](https://github.com/duckduckgo/content-scope-scripts/blob/607d1752d7a329199469ed5b9c5ebf945e6d49ff/src/features.js#L45)
file in content-scope-scripts to add `'breakageReporting'`, rebuild and
update [the C-S-S
build.gradle](https://github.com/duckduckgo/Android/blob/a91d3ca35e2675b72c20732a18d30d2b6569bd89/content-scope-scripts/content-scope-scripts-impl/build.gradle#L75)
to use your local path
- [x] Launch and set this build as the default browser app
- [x] Perform a search, then click on a result
- [x] Refresh the page a few times (remembering the count 😁)
- [x] Send a broken site report through the 3-dot menu
- [x] Verify from logcat and/or checking that pixel `ebpf.android*` is
sent correctly with all four new params (and that refresh count
corresponds and openerContext = "serp"
- [x] Click on a link in your current tab to go to a new page
- [x] Refresh a couple more times
- [x] Send a broken site report through the duckfoot dashboard
- [x] Verify the pixel metadata params again in logcat and/or directly
(openerContext should be "navigation")
- [x] Close the app and click on a url link from email (custom tab),
notes or MM (directly to browser), or any other 3rd-party app
- [x] Repeat sending and verifying pixel params
+ [x] openerContext should be "external" in all these cases:
- opening in a custom tab
- opening the full browser from the custom tab
- opening in the full browser directly from another app
---------
Co-authored-by: Ana Capatina <[email protected]>
0 commit comments