Google Favorites (or Google Favourites, if you speak English-English and like your vowels) is the Search and Discover feature that combines Preferred Sources in Google Search and Follows in Discover into one choice. Google launched it on 1 December 2026, and a reader's favorites now apply across Top Stories, AI features in Search, and Discover (Google).
This post shows how to add the Google favorites button, formerly the preferred sources button, to a website, using the code we added to refineragency.com on 2 December 2026. It's for site owners and developers who publish articles and want readers to choose their site in Google. You'll need to be able to edit your page templates.
What changed on 1 December 2026. Google merged two features and renamed them:
Google says usage of Preferred Sources grew more than 7 times in 2026, and that people are twice as likely to click through to sites they chose (Google Search Central).
In this article
- 1. Defining the Google favorites button
- 2. Checking your site is eligible
- 3. Choosing how to add it
- 4. Adding the standard favorites button
- 5. Adding a fallback for when the script can't load
- 6. Adding a plain link elsewhere
- 7. Counting clicks on the button
- 8. Deciding when the script loads
- 9. Google favorites button checklist
- What is Google Favorites?
- What is the Google favorites button?
- Is Google preferred sources the same as Google favorites?
- Can any website add the Google favorites button?
- Does the Google favorites button help SEO?
2. Checking your site is eligible
Do this first. The button only helps if Google's tool lists your site.
- Check your address is a domain or subdomain. Google accepts www.example.com and news.example.com, but not a folder such as example.com/blog.
- Search for your domain in the tool. Open google.com/preferences/favorites and type your domain. If it isn't listed, the button opens a page where readers can't add you. Refineragency.com is listed: Figure 2 shows it in our own source preferences, after we added it with the button.
- For the AI badge, check Search Console. Google says your site must be included in Search generative AI features there to get the badge in AI Overviews and AI Mode (Google Search Central).

3. Choosing how to add it
Google offers three methods, set out in Table 2. We use the first on every article and in our footer, and the third as the fallback when Google's script can't load.
| Method | When to use it | What readers see |
|---|---|---|
| Standard button (Google recommends it) | You can add a script to your pages | Google's own button |
| Advanced script | You want your own design, or to start the flow from your own code | Your button, Google's flow |
| Deeplink | You can't run scripts, or the link goes in an email or social post | A plain link or your own image |
5. Adding a fallback for when the script can't load
Ad blockers, privacy settings or a slow connection can stop Google's script. Without a fallback, readers see an empty space. Our first version showed a plain link until the button appeared, using a CSS rule to spot an empty button. It hid Google's button every time. Google draws the button inside a shadow root, a hidden part of the page, so the element always looks empty to CSS.
What works is checking from a script instead. Hide the link by default, and show it if Google's script fails to load or hasn't drawn the button after six seconds.
<div class="ps-wrap">
<div google-add-preferred-source-btn data-theme="light" data-lang="en"></div>
<a class="ps-fallback" href="https://www.google.com/preferences/favorites?q=example.com">Add to favorites on Google</a>
<noscript><a href="https://www.google.com/preferences/favorites?q=example.com">Add to favorites on Google</a></noscript>
</div>
<script async src="https://news.google.com/swg/js/v1/publisher.js"
onerror="document.querySelectorAll('.ps-wrap').forEach(function (w) { w.classList.add('ps-failed'); })"></script>
<script>
setTimeout(function () {
document.querySelectorAll('.ps-wrap').forEach(function (w) {
var b = w.querySelector('[google-add-preferred-source-btn]');
if (!b || !b.shadowRoot || !b.shadowRoot.innerHTML) w.classList.add('ps-failed');
});
}, 6000);
</script>
.ps-fallback { display: none; }
.ps-wrap.ps-failed [google-add-preferred-source-btn] { display: none; }
.ps-wrap.ps-failed .ps-fallback { display: inline; }
Replace example.com with your domain. The noscript link covers readers with JavaScript switched off.
6. Adding a plain link elsewhere
Use the deeplink anywhere a script can't run, such as emails and social posts. Since 1 December 2026 it points to the favorites address, and Google asks for "Add to favorites" wording rather than "Preferred Sources". You can use your own image, or Google's official button images (download from Google).
<!-- Google's pattern -->
<a href="https://www.google.com/preferences/favorites?q=example.com">Add to favorites</a>
If you added a link before 1 December, update it: ours pointed to the old /preferences/source address until we changed it on 2 December 2026.
Our footer started with a plain link like this. On 2 December 2026 we swapped it for Google's button, the same light version as on our articles, under our Refinement Consultation button. The footer is on every page, so it loads Google's script only if the page hasn't already loaded it for an article's button:
<!-- refineragency.com footer, on every page -->
<span google-add-preferred-source-btn data-theme="light" data-lang="en"></span>
<script>
if (!document.querySelector('script[src*="news.google.com/swg/js/v1/publisher.js"]')) {
var s = document.createElement('script');
s.async = true;
s.src = 'https://news.google.com/swg/js/v1/publisher.js';
document.head.appendChild(s);
}
</script>
8. Deciding when the script loads
Google's script comes from news.google.com. On refineragency.com it loads on every page, for the footer button, before the reader answers our cookie banner, and we saw no cookies set on our own domain. We can't see what Google sets on its own domains, so check the script against your consent policy. If you need it to wait for consent, load Google's script only after the reader agrees; the button appears once the script runs.
What is Google Favorites?
Google Favorites is a Search and Discover feature that lets people choose the publishers and creators they want to see more of. Launched on 1 December 2026, it combined Preferred Sources in Google Search with Follows in Discover, and existing choices transferred automatically. A favorite site's content is more likely to appear in Top Stories, AI features in Search, and Discover.
Is Google preferred sources the same as Google favorites?
Yes, Google preferred sources became part of Google favorites on 1 December 2026, when Google merged it with Follows in Discover. Existing preferred sources became favorites automatically. Google moved the tool to google.com/preferences/favorites and asked sites to use "Add to favorites" wording in their own links. Existing buttons update their branding without code changes, and the button's code is unchanged.
“We added Google's favorites button, formerly preferred sources, to refineragency.com. Readers who add a site are more likely to see its articles in Top Stories and AI answers. Here's the code, the fallback we needed after our first try hid the button, and what Google's rename means for your links.”
Copy post gives you the takeaway and the link, ready to paste into LinkedIn.Lawford, A. (2 December 2026). How to add the Google favorites button. Refiner Agency. https://refineragency.com/insights/google-favorites-button




