question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New tab page sponsored image (NTP SI) P3A metrics for users not opted in to rewards

See original GitHub issue

P3A metrics will be dynamically created for each NTP-SI campaign. Views, clicks and landings will be recorded for each campaign.

The name format will be as follows: creativeInstanceId.{campaign id}.{event type}.

These metrics will be reported daily, for up to seven days per campaign. When the metrics are uploaded, the header X-Brave-P3A-Creative will be set to true.

This issue depends on #24318 and #24319 .

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
DJAndriescommented, Nov 2, 2022

@GeetaSarvadnya Once the metric has been sent, you should not see the creativeInstanceId-prefixed metric on the local state page (unless you viewed/clicked/landed on the same ad between the time the value was recorded by the P3A system and the time the metric was sent). The header is no longer relevant, only the URL https://p3a-creative.brave.com. I updated the test plan accordingly. In step 5, you should ensure that the metric sent in step 4 is not resent, unless you viewed/clicked/landed on the same ad again.

0reactions
GeetaSarvadnyacommented, Nov 9, 2022

Verification PASSED on Samsung Galaxy Tab A7 version 12 running Bravemonoarm64.apk_1.45.121

Verify creativeInstanceId when ads rewards is disabled_PASSED
  • Confirmed that creativeInstanceId doesn’t exists in brave://local-state when ads and rewards is disabled Screenshot_20221109-172908_Brave
Verify creative metric with the suffix views_PASSED
  • Clean profile 1.46.x
  • Open brave://local-state file
  • Open NTP until NTP SI is shown
  • Reload the brave://local-state file
  • Confirmed that one creative metric with the suffix views exists in the local state page
Example Example
Screenshot_20221109-173215_Brave Screenshot_20221109-173041_Brave
Verify creative metric with the suffix clicks_PASSED
  • Clean profile 1.46.x
  • Open brave://local-state file
  • Open NTP until NTP SI is shown
  • Reload the brave://local-state file
  • Confirmed that one creative metric with the suffix views exists in the local state page
  • Click on the creative (NTP SI)
  • Confirmed that one creative metric with the suffix clicks exists in the local state page
Example Example Example
Screenshot_20221109-173215_Brave Screenshot_20221109-173153_Brave Screenshot_20221109-173105_Brave
Verify creative metrics are sent to the endpoint https://p3a-creative.brave.com_PASSED
  • Clean profile 1.46.x
  • Open brave://local-state file
  • Open NTP until NTP SI is shown
  • Reload the brave://local-state file
  • Confirmed that one creative metric with the suffix views exists in the local state page
  • Click on the creative (NTP SI) and stay on the landing page for 10 secs
  • Confirmed that one creative metric with the suffix clicks and lands exists in the local state page
Example Example Example
Screenshot_20221109-173215_Brave Screenshot_20221109-173153_Brave Screenshot_20221109-173731_Brave
  • Close the browser
  • Set the sys date ahead by one day
  • Open charles proxy
  • Relaunch the browser and ensured creative metrics are sent to the endpoint https://p3a-creative.brave.com
View Click Land
image image image
  • Open brave://local-state file and ensured creative metrics are NOT shown in local-state file Screenshot_20221110-182348_Brave

  • Close browser, advance the time by one day, open browser, ensure the metrics are not resent.

brave://local-state https://p3a-creative.brave.com
Screenshot_20221111-182714_Brave image
Read more comments on GitHub >

github_iconTop Results From Across the Web

P3A daily reporting queue #24319 - brave/brave-browser
Description We'd like to be able to report some metrics on a daily ... New tab page sponsored image (NTP SI) P3A metrics...
Read more >
Creating a Beautiful, Informative and Productive New Tab ...
We've been working very closely with teams across a variety of Microsoft services to deliver a comprehensive new tab page experience that is ......
Read more >
Finally, Chrome lets you remove Promos on New Tab Page w
Google has started working on allowing users to dismiss promos on the Chrome New tab page in 2019. The feature is now enabled...
Read more >
ED377352.pdf - ERIC
TITLE. The Promote Yourself Career Development Program. Worksheets/Tutor Tips. Physical Plant. INSTITUTION. State Univ. of New York, Brockport. Coll. at.
Read more >
AGENDA - City of Clayton
no action may take place on any item not appearing on the posted agenda. The Council may respond to statements made or questions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found