Ranking and search appearance

Help your readers find your site through preferred sources in Google Search

If you’re a website owner, you can help your audience find your publication
as a preferred source in Google Search. When a user selects your site as a
preferred source, your content is more likely to appear in
Top Stories“,
highlighted with a “preferred” badge. In AI Mode and AI Overviews, your
content can be highlighted with a “preferred” badge for users who have
selected your site as a preferred source.

Preferred sources in AI Mode
Preferred sources in Top Stories

Feature availability

The preferred sources feature is available globally for the “Top Stories”
feature in all languages where Google Search is available. Preferred sources
can also appear in AI Mode and AI Overviews in all languages and locales
where those features are available.

Only domain-level and subdomain-level sites are eligible to appear in the
source preferences tool.
For example, https://www.example.com/ and
https://code.example.com/ are eligible for preferred sources,
but the subdirectory https://www.example.com/blog isn’t
eligible.

How to help users find your site as a preferred source

If your site appears in the
source preferences tool
(to check, enter your site in the tool’s search box), you can use the
following methods to guide your readers to select your site as a preferred
source:

  • Standard JavaScript implementation
    (recommended): Embed an interactive button to your web
    pages, which lets readers seamlessly add your site as a preferred source
    and returns them to your page. By adding only two lines to your HTML, this
    option renders an automatically localized, Google-styled button that
    supports device and language customization.
  • Advanced JavaScript implementation with custom design assets:
    If you want to use your own design assets and customize the standard
    JavaScript button, follow the advanced JavaScript implementation
    instructions. The end-user UI flow remains the same as the standard
    JavaScript implementation.
  • Deeplink implementation: If you
    can’t implement the interactive button (for example, your CMS doesn’t
    support it), you can use a deeplink to direct people to adding your site
    as a preferred source. You can do this by adding a text link or a clickable
    image on your web pages. You can also use the deeplink in your social
    posts, email newsletters, or promotions.

Standard JavaScript implementation (recommended)

By adding only two lines to your HTML, you can add an automatically
translated, interactive button, which lets readers seamlessly add your site
as a preferred source and return to where they left off on your page. You can
also set the theme of the button (dark or light), plus override the button
language. We recommend this implementation because it provides the best user
experience for readers.

Here’s how it’ll look:

Add to preferred sources button with JavaScript

To embed the JavaScript button on your web page, do the following:

  1. Add the following <script> tag to your web page
    (preferably in the <head> element), which loads the
    Preferred Sources library.
  2. Add the following <div> tag anywhere you’d like the
    button to appear in the body of your web page.

Set the button theme

By default, the “Add to Preferred Sources” button appears in a light theme.
To adjust the theme, add the data-theme data attribute to your
<div> element and set it to either light or
dark:

Override the button language

By default, the “Add to Preferred Sources” button displays in the user’s
language based on their browser settings. To override this behavior, add the
data-lang data attribute to your <div>
element and set it to the language code you’d prefer (download the
list of supported language codes):

Download supported language codes

Advanced JavaScript implementation with custom design assets

By default, the standard JavaScript button automatically scans the DOM for
elements with the google-add-preferred-source-btn attribute and
renders the standard badge. However, for custom integrations where you want
to trigger the flow from your own UI elements or application milestones, you
can initialize the client programmatically and bind the flow to custom
triggers.

When integrating the Preferred Sources library into custom user interfaces,
application milestones, or modern framework applications, you can take full
programmatic control over runtime settings and flow initiation using our
JavaScript SDK. We provide two distinct integration approaches depending on
your tooling and architecture: ES Module imports (ESM) and standard script
callback queues (IIFE). Both distribution models expose identical
capabilities and methods.

ES Module imports

For modern build setups and module-based environments, import the library
directly into your code.

Standard script callback queues

For standard script tag integrations, load the following script in the
<head> of your document with the
preferred-sources-control="manual" attribute to prevent
automatic button rendering:

Then use the global PREFERRED_SOURCE callback queue to
initialize options and bind custom triggers:

For interactive frontend and backend implementations showcasing live usage
across buttons, declarative containers, IIFE scripts, and ES Module bundles,
explore the
Preferred Sources demo.

If you can’t use JavaScript on your website, you can alternatively use a
deeplink to direct your users to the
source preferences tool,
where they can add your site as a preferred source and confirm their
selection.

Use the following URL format and replace example.com with your
publication’s domain name, which takes users directly to your site in the
source preferences tool:

Button image assets

You can design your own custom promotion badge or download official
translated graphic assets provided by Google:

Download button assets

Alien Road

How we apply this

Preferred sources reward brands that readers seek out by name. We pair this with brand-building work, because the feature only helps a site that people already recognise.

Related services

Share

© Copyright 2026 Alien Road. All rights reserved.