Refiner Client sign inSign in Meet us Refinement Consultation
Technical SEOGoogle Search

How to add the Google favorites button

The Google favorites button, called the preferred sources button until 1 December 2026, lets readers add your site to their Google results, so your articles are more likely to show for them in Top Stories and AI answers. Here's the code we added to refineragency.com on 2 December 2026, the fallback we built after our first try hid the button, and what the rename means for your links.

Google favorites button cover: a browser window showing three search results in shades of teal, with the middle result outlined in bright teal and marked with a star, on a dark background.

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. 1. Defining the Google favorites button
  2. 2. Checking your site is eligible
  3. 3. Choosing how to add it
  4. 4. Adding the standard favorites button
  5. 5. Adding a fallback for when the script can't load
  6. 6. Adding a plain link elsewhere
  7. 7. Counting clicks on the button
  8. 8. Deciding when the script loads
  9. 9. Google favorites button checklist
  10. What is Google Favorites?
  11. What is the Google favorites button?
  12. Is Google preferred sources the same as Google favorites?
  13. Can any website add the Google favorites button?
  14. Does the Google favorites button help SEO?

1. Defining the Google favorites button

Table 1 defines the terms used in this post.

TermWhat it means
Favorite (formerly preferred source)A site or creator a reader has chosen in Google, so its content is more likely to appear for them in Top Stories, AI features in Search and Discover
Follow (Discover)Discover's old way to follow a publisher or creator, merged into favorites on 1 December 2026
Favorites toolGoogle's page where readers add and remove sites, at google.com/preferences/favorites
Favorites buttonGoogle's own button, drawn on your page by Google's script, that opens the tool with your site filled in
DeeplinkA plain link to the tool with your domain in the address, for places where you can't run Google's script
Favorite badgeThe label Google shows next to a chosen site's links in Top Stories, AI Overviews and AI Mode
Chrome bookmarksNot part of this: Chrome's star in the address bar saves pages in your browser, while Google Favorites is a Search and Discover setting
Table 1. Google favorites button terms. Source: Google Search Central, updated 1 December 2026.

For a reader who adds your site, Google says your articles are more likely to appear in Top Stories, and as supporting links in AI Overviews and AI Mode, with a Favorite badge; the same choice now carries into their Discover feed. It only affects the readers who choose your site. Figure 1 shows the three steps.

How readers add a site to their favorites

Readers need to be signed in to Google. There are four ways in:

  • The favorites tool. Go to google.com/preferences/favorites, search for a domain or subdomain, and tick its box.
  • Search settings. On google.com or in the Google app, select your profile picture, then Search personalization, then Source preferences, and tick the sources you want (Google Search Help).
  • Top Stories. When Top Stories appears in results, select the star beside its header, tick the sources you want and reload the results.
  • A site's own button or link. Google's button or an "Add to favorites" link opens the tool with that site filled in, which is what the rest of this post sets up.
Figure 1, Google favorites button, what happens when a reader clicks: three boxes joined by teal arrows. First, your site, where the reader clicks Google's button or an Add to favorites link on an article, labelled refineragency.com article. Second, Google's favorites tool, which opens with your domain filled in for the reader to tick, labelled google.com/preferences/favorites?q=refineragency.com. Third, highlighted in bright teal, Google Search, where your articles are more likely in Top Stories and as supporting links in AI Overviews and AI Mode, with a Favorite badge.
Figure 1Google favorites button: what happens when a reader clicks, with refineragency.com as the example. Source: Google Search Central, updated 1 December 2026.

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).
Figure 2, Google favorites button, refineragency.com added in Google's tool: a screenshot of Google's Source preferences page in dark mode, headed Make Search your own with preferred sources, with a search box and a list headed Your sources (3). The list shows CFOtech UK, CMOtech UK and refineragency.com, with the Refiner R logo, each with its box ticked.
Figure 2Google favorites button: refineragency.com added in Google's source preferences, which still used the preferred sources wording on 2 December 2026. Screenshot from our own Google account.

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.

MethodWhen to use itWhat readers see
Standard button (Google recommends it)You can add a script to your pagesGoogle's own button
Advanced scriptYou want your own design, or to start the flow from your own codeYour button, Google's flow
DeeplinkYou can't run scripts, or the link goes in an email or social postA plain link or your own image
Table 2. Google favorites button methods. Source: Google Search Central.

4. Adding the standard favorites button

Add Google's script, ideally in the page head, then put an empty element where the button should appear. The placeholder version comes first, then ours.

<!-- Google's pattern -->
<script async src="https://news.google.com/swg/js/v1/publisher.js"></script>
<div google-add-preferred-source-btn></div>
<!-- refineragency.com, at the end of every article -->
<div google-add-preferred-source-btn data-theme="light" data-lang="en"></div>
<script async src="https://news.google.com/swg/js/v1/publisher.js"></script>

Two settings are optional. data-theme is light or dark, light by default; use dark on a dark background. data-lang sets the button's language, which otherwise follows the reader's browser. We set English so it matches our pages.

On our pages, Google's button drew at 218 by 40 pixels, with Google's "G" and the words "Add to Preferred Sources". Put it where readers have finished reading: ours sits in a box under the share buttons, with one line explaining what it does.

A note on the button's label. On 2 December 2026, the day after the rename, Google's button still said "Add to Preferred Sources", both on our site and on Google's own demo page. That wording comes from Google's script, not from your code. Google says existing buttons that haven't been customised switch to the new favorites branding automatically, with no code changes (Google Search Central). So leave the button as it is, and don't cover it with your own text. On our site we add one line under the button explaining the old name until Google's update arrives.

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.

7. Counting clicks on the button

Google's button isn't a link, so click tracking that only watches links misses it. Clicks inside its shadow root are reported to your page as clicks on the button's element, so mark that element and listen for clicks on it.

<div google-add-preferred-source-btn data-track-click="preferred-source"></div>
<script>
  document.addEventListener('click', function (e) {
    var el = e.target.closest('a, button, [data-track-click]');
    if (el && el.dataset.trackClick) track(el.dataset.trackClick); // your analytics call
  });
</script>

This counts clicks, not completed additions: Google doesn't tell your site whether the reader went on to add you.

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.

9. Google favorites button checklist

  • Search for your domain in google.com/preferences/favorites.
  • Check your site is in Search Console's generative AI reports, for the AI badge.
  • Add Google's script and the button element where readers finish an article.
  • Set data-theme to match your background, and data-lang to your language.
  • Add a fallback link that shows only if the script fails.
  • Point every plain link to /preferences/favorites, with "Add to favorites" wording.
  • Track clicks on the button element, not just on links.
  • Check the script against your cookie consent policy.

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.

What is the Google favorites button?

The Google favorites button is a button from Google that websites add to their pages so readers can choose that site in Google Search. A reader who clicks it and confirms is more likely to see the site's articles in Top Stories, and as supporting links in AI Overviews and AI Mode, with a Favorite badge. It was called the preferred sources button until 1 December 2026.

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.

Can any website add the Google favorites button?

No, only sites listed in Google's favorites tool can use the Google favorites button. Google accepts domains and subdomains, not folders such as example.com/blog. Search for your domain in the tool first: if it isn't listed, the button opens a page where readers can't add you. For the badge in AI Overviews and AI Mode, your site also needs to be in Search Console's generative AI reports.

Does the Google favorites button help SEO?

The Google favorites button helps only with the readers who use it. Once they add your site, your articles are more likely to appear for them in Top Stories and in AI answers, with a Favorite badge. It doesn't affect what other people see, and Google says sites don't need the button to be chosen as a favorite; it makes choosing you easier.

Sources: Google: Build your audience with new Search updates, 1 December 2026; Google Search Central: How to be heard within the AI search conversation; Google Search Central: documentation updates; Google Search Help: source preferences; Google Search Central: Help your readers find your site through favorites, updated 1 December 2026; Google's official button images.

Share the takeaway

“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.
Cite this article

Lawford, A. (2 December 2026). How to add the Google favorites button. Refiner Agency. https://refineragency.com/insights/google-favorites-button

The Refiner monthly newsletter.

Once a month, one email with our biggest stories: new wins, campaign successes and the things we learned along the way.

Unsubscribe in one click. Privacy policy.