Google Favorites adds three labels and a new button attribute
Google expanded its Favorites documentation with three button labels, a new google-favorites-btn attribute and updated JavaScript examples. Existing preferred-source code remains active.

- Google’s revised documentation defines three data-label values: default, source and creator.
- Google combined Preferred Sources and Follow into one Google Favorites feature earlier this week.
- New examples use google-favorites-btn, while legacy google-add-preferred-source-btn implementations continue working.
- Legacy buttons automatically display the updated Add to favorites branding.
- Google says follower counts should return next week as the migration continues.
Google’s revised Favorites documentation adds three button labels: default, source and creator. Existing sites can keep their current code. The JavaScript examples now use a newer attribute.
Google combined Preferred Sources and the Follow feature earlier this week. The result is one Google Favorites feature. The update targets sites that add publications or creators to reader-facing favorites.
Google wrote: “You can now choose a button label that better describes whether readers are adding a publication or a creator to your favorites. If you already use the google-add-preferred-source-btn attribute, your button continues to work and you don’t need to change your code.”
What changed in the Favorites documentation?
Google posted an update to its new Favorites documentation. It adds button-label instructions and refreshes the JavaScript examples. The revision also includes miscellaneous code changes.
The revised guidance covers the button label, the div structure and the JavaScript examples, giving site operators one place to review both the new attribute and the older preferred-source attribute.
Updated examples now use google-favorites-btn on the button’s div element. Publishers can also add data-label to that element. The attribute controls the visible wording.
No new ranking factor appears in Google’s documentation. The company also makes no search-placement or traffic claim. The documented changes cover labels, attributes, branding and compatibility.
Which labels can publishers use?
The data-label attribute accepts three documented values.
default: Displays “Add to favorites.”source: Displays “Add source to favorites.”creator: Displays “Add creator to favorites.”
Without data-label, the button still reads “Add to favorites.” Google also mentions authors when explaining the label choice. Two specific alternatives remain available: source and creator.
Publication sites can use source when favorites represent a publication. Creator sites can use creator for an individual creator. The default label remains available for broader placements.
Do sites need to replace old preferred-source code?
No. Google’s documentation explicitly supports the former attribute.
Google said: “If you already added the button with the google-add-preferred-source-btn attribute, your existing implementation continues to work and automatically displays the updated ‘Add to favorites’ branding. You don’t need to change your code.”
New examples use google-favorites-btn. Sites using google-add-preferred-source-btn can leave their implementation unchanged. Their old code also receives the updated “Add to favorites” branding automatically.
Google also included miscellaneous code updates. The documentation gives no further detail on those revisions. The compatibility statement remains explicit and requires no rewrite.
How does the change affect different site types?
Publication sites can clarify that readers are adding a source, while creator sites can identify the person involved, giving each site type a label that reflects the object offered.
Existing preferred-source implementations can remain untouched, while new sites can follow the revised google-favorites-btn structure and add data-label only when they need more specific wording.
New adopters can use google-favorites-btn. They can add data-label when they want specific wording.
What is confirmed, and what remains provisional?
The documentation confirms three label values, revised JavaScript examples, updated button branding and continued support for the legacy attribute, while the return of follower counts remains tied to an uncompleted migration.
These are confirmed implementation details. The update does not announce a broader policy change.
When will follower counts return?
Google is still migrating the combined feature. The company says follower counts should return next week.
That wording signals an expectation, not a confirmed restoration date. The update provides no calendar date, account list or phased schedule, so “next week” remains the only stated timing for follower-count restoration in Google’s migration.
A forum discussion on X accompanies the update.
The next checkpoint is whether follower counts return next week. Also monitor whether publishers adopt google-favorites-btn or retain the compatible legacy attribute.
via developers.google.com (Original)
More from Nathan Brooks
Show full bio
Senior reporter covering companies, deals and strategy in Search rankings and algorithm updates, generative engine optimization at SERP Journal.
249 articles