Skip to content

Conversation

@yohhaan
Copy link
Member

@yohhaan yohhaan commented Nov 25, 2025

Hi!

This is a (draft for now) pull request with the content for the 2025 Cookies chapter (#4069). To be more efficient, the content has been drafted directly in markdown (no Google Docs). Feel free to edit on the cookies-2025 branch directly, or leave comments in your review on this PR.

Staged version: https://cookies-2025-dot-webalmanac.uk.r.appspot.com/en/2025/cookies
Staged version of home page quotes and stat: https://cookies-2025-dot-webalmanac.uk.r.appspot.com/en/2025/?feat=cookies#featured-chapter

So far, the 2025 chapter is pretty similar to last year's analysis IMO, although I have pointed out to some differences I noticed. Some suggestions or ideas if people have some time to help:

  • If you have a different perspective on things or time to dive deeper on a specific aspect, please feel free to make edits directly.
  • Idea: correlating top cookies with info from https://cookiepedia.co.uk/ for instance.
  • Idea: or investigating more these partitioned cookies from YouTube that used to be predominant, but are not anymore.
  • A suggestion from @JannisBush included adding an analysis of the issue tab in Chrome Dev Tools and/or console warnings related to cookies. This has not been performed yet and I don't know if we will have time to do so.
  • See also the {# TODO ... #} comments that I left in the sections that I felt could use more.

ToDos/Next steps:

  • @ChrisBeeti: add the SQL queries used so far for the chapter by opening another Pull Request. Also, feel free to review chapter draft and suggest/make edits.
  • @ajackley: if you manage to find some time to help with the writing and contribute, make a pass with the points above in mind.
  • @martinakraus: feel free to review chapter draft and suggest/make edits.
  • @JannisBush: feel free to review chapter draft and suggest/make edits.
  • Someone: run this npm script to generate the chapter images.
  • ask editor to make a pass
  • send for review for merge with HTTP Archive Web Almanac project

Thanks!

Fixes #4069

@yohhaan yohhaan added help wanted Extra attention is needed writing Related to wording and content 2025 chapter Tracking issue for a 2025 chapter labels Nov 25, 2025
@yohhaan yohhaan linked an issue Nov 25, 2025 that may be closed by this pull request
10 tasks
@tunetheweb
Copy link
Member

I've staged the chapter here: https://cookies-2025-dot-webalmanac.uk.r.appspot.com/en/2025/cookies
You can also see your home page quotes and stats here: https://cookies-2025-dot-webalmanac.uk.r.appspot.com/en/2025/?feat=cookies#featured-chapter

Unfortunately staging isn't automated so reach out if you want it re-staged at any time.

@tunetheweb
Copy link
Member

@ChrisBeeti: add the SQL queries used so far to the cookies-2025 branch. Also, feel free to review chapter draft and suggest/make edits.

Let's add the SQL in a separate PR please. That way it can be merged ahead of the chapter and keeps this PR small.

@tunetheweb tunetheweb changed the title Cookies 2025 - SQL & Markdown Content Cookies 2025 chapter Nov 25, 2025
@yohhaan
Copy link
Member Author

yohhaan commented Nov 25, 2025

Thank you @tunetheweb for the edits, staged version, and comments, much appreciated!

Copy link
Contributor

@JannisBush JannisBush left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall it looks promising, but I have a lot of small questions/remarks.


The observations from this chapter confirm the conclusions from last year's analysis:
- A majority (60%) of cookies encountered on the web are third-party cookies and popular websites create them the most.
- Most popular cookies can be linked to advertising, tracking, and analytics use cases.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Maybe add that most third-party cookies come from very few sites. Not sure if we have a query for that, but probably we could make a query to show that 90% of third-party cookies belong to only 100 sites (or something similar).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{{ figure_markup(
image="same-site-mobile.png",
caption="`SameSite` attribute for cookies on mobile client.",
description="Shows the prevalence of the `SameSite` attribute and its value for both first-party and third-party cookies on mobile clients. We see very similar results as for desktop clients. 3% of first-party cookies set the `SameSite` attribute to `Strict`, 19% use `SameSite=Lax` (which is the default), 11% set the value to None and 63% do not specify the value of `SameSite`. Nearly 100% of third-party cookies set the `SameSite` attribute to `None`, in order for these cookies to be sent in a cross-site context.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Data is quite different from data the security chapter team has: https://docs.google.com/document/d/1PsuoanrDsTxTpNrf8VBAx_IxWVw6BTuCG1DnDzhWj00/edit?disco=AAABxmaWuaY

Is either query incorrect or can it be explained with top1m vs all?

Image Image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure and I don't have much time to investigate more here, maybe @ChrisBeeti or someone else can look into that.

The cookies chapter use the cookies returned by the $WPT_COOKIES (i.e., grabbed directly from the cookies jar, so only valid cookies parsed by Chrome). maybe the security chapter relies on HTTP requests?

@tunetheweb
Copy link
Member

@yohhaan what's the latest with this? I don't see any response to the feedback and it's still in draft status.

@yohhaan
Copy link
Member Author

yohhaan commented Jan 5, 2026

Comment from @JannisBush:

Queries missing
@ChrisBeeti seems like the queries are still missing, which would be great to have for reviewing some data that is unexpected.

@yohhaan yohhaan marked this pull request as ready for review January 6, 2026 00:35
@yohhaan
Copy link
Member Author

yohhaan commented Jan 6, 2026

@yohhaan what's the latest with this? I don't see any response to the feedback and it's still in draft status.

I had left for vacation for the holidays just after the review was posted. I have now addressed and resolved most of the comments that were about the phrasing and text details. Remaining comments are essentially about the SQL queries and figures on which I have tagged @ChrisBeeti, analyst for the chapter.

Also removing the draft mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2025 chapter Tracking issue for a 2025 chapter help wanted Extra attention is needed writing Related to wording and content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cookies 2025

5 participants