Skip to content
AnswerWell geo Documentation

Research · 6 min read · Answerwell

Preferred Sources, Search Profile Badge and Site Implementation

How publisher sites become eligible for preferred sources, and how to embed badges, JavaScript buttons, and deeplinks.

This page summarises Google Search Central documentation on preferred sources—letting readers choose your publication so it can surface with a “preferred” badge in places such as Top Stories and generative search experiences—and on the separate Search profile badge for creators who maintain a Search profile.

Preferred sources: what changes for readers who pick your site

Section titled “Preferred sources: what changes for readers who pick your site”

Preferred sources are a user-controlled setting in Google Search. When someone selects your site as a preferred source, your content is more likely to appear in Top Stories with a preferred badge, and the same preference can affect how your site is highlighted in AI Mode and AI Overviews for users who chose you.

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.

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

You do not have to add a button or deeplink on your site simply to be a preferred source option; those implementations are optional ways to ask readers to opt in.

Global availability for Top Stories and generative surfaces

Section titled “Global availability for Top Stories and generative surfaces”

For Top Stories, preferred sources are available globally in every language where Google Search is available. For AI Mode and AI Overviews, preferred-source highlighting follows the languages and locales where those features exist.

To be eligible for display as a preferred source in AI-related surfaces, Google states that your site must be included in Search generative AI features in Search Console (no separate URL for that workflow appears in the published cluster excerpts).

Preferred sources eligibility: domain, subdomain, and what is excluded

Section titled “Preferred sources eligibility: domain, subdomain, and what is excluded”

Only domain-level and subdomain-level properties qualify. A subdirectory path on an otherwise eligible host does not.

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.

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

If you are unsure whether your publication appears in the source preferences tool, Google’s guidance is to enter the site in that tool’s search box (the same destination users reach via the deeplink format below).

How to add an “Add to preferred sources” control on your site

Section titled “How to add an “Add to preferred sources” control on your site”

Google documents three integration paths. They are examples for audience building; none are required for eligibility.

Method Best for User returns to your page after opting in?
Standard JavaScript (recommended) Most sites that can add a script and a placeholder element Yes, seamless return
Advanced JavaScript (ESM or manual publisher.js) Custom UI, frameworks, programmatic triggers Same end-user flow as standard
Deeplink CMS or environments without JavaScript User completes flow in the preferences tool

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.

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

Load the publisher library in the document head, then place a declarative container where the button should render.

<script async src="https://news.google.com/swg/js/v1/publisher.js"></script>
<div google-add-preferred-source-btn></div>

By default the control uses a light theme. Set data-theme to light or dark on the container:

<div google-add-preferred-source-btn data-theme="dark"></div>

Language follows the user’s browser unless you override with data-lang and a supported language code (Google publishes a downloadable code list; the cluster does not include that list URL):

<div google-add-preferred-source-btn data-lang="en"></div>

Advanced JavaScript: custom triggers and frameworks

Section titled “Advanced JavaScript: custom triggers and frameworks”

For builds that import modules, Google documents initializing preferredSource from publisher.mjs and calling addPreferredSource() from your own click handler:

import { preferredSource } from "https://news.google.com/swg/js/v1/publisher.mjs";
preferredSource.init({
theme: 'light',
lang: 'en'
});
document.querySelector('#myButton').onclick = () => {
preferredSource.addPreferredSource();
};

For classic script tags without auto-scanning, load publisher.js with preferred-sources-control="manual", then push configuration onto the PREFERRED_SOURCE callback queue before binding your trigger—behaviour matches the standard flow but rendering is under your control. Google points to a preferred sources demo for live patterns; that demo URL is not included in the cluster file.

Section titled “Deeplink: text or image when JavaScript is not possible”

Replace the publication domain in the query parameter; users land in the source preferences tool for that site:

https://www.google.com/preferences/source?q=Your_Website's_URL

Example link markup from Google:

<a href="https://www.google.com/preferences/source?q=example.com">
Add as Preferred Source
</a>

You may use the same URL behind a promotional image. Google also offers downloadable translated button assets for custom graphics; the asset download URL is not listed in the cluster.

Section titled “Search profile badge: link readers to your Search profile”

A Search profile badge is separate from preferred sources. It targets creators and publishers who have claimed a Search profile and want on-site navigation to that profile—not opt-in inside Search’s source preferences tool.

If you’re a website owner, publisher, or creator with a Search profile, you can add a badge to your website to help your audience find your Search profile.

— Google, Add a Search profile badge to your website

After claiming the profile, use:

https://profile.google.com/@handle

Image badge example (host the SVG yourself per Google’s asset download):

<a href="https://profile.google.com/@example"
aria-label="Find us on Google Search">
<img src="/path/to/google-search-badge.svg" alt="Google Search">
</a>

Text-only option for bylines or newsletters:

<a href="https://profile.google.com/@example">Find us on Google Search</a>

Brand guidelines when both badge types appear on one site

Section titled “Brand guidelines when both badge types appear on one site”

Google’s Search profile badge rules overlap with asset hygiene for preferred-source promotions:

  • Keep touch targets at least 48 × 48 dp on Android and 44 × 44 px on iOS and web.
  • Do not stretch, distort, rotate, or recolour the official Super G or Search profile button artwork.
  • Do not mix monochrome and full-colour badge families inconsistently.
  • If you show both a Search profile badge and a Preferred Sources badge, use the higher-emphasis Search profile button with label; do not pair the bare Super G icon with the Preferred Sources badge.
  • Treating a blog subdirectory as eligible when only the registrable host or subdomain is.
  • Assuming an on-site button is required for preferred-source status—it only helps conversions.
  • Using deeplinks where JavaScript is allowed, losing the automatic return-to-page experience Google recommends for readers.
  • Loading publisher.js without preferred-sources-control="manual" while also calling programmatic init, causing double initialization.
  • Confusing Search profile links (profile.google.com/@handle) with preferred source deeplinks (google.com/preferences/source?q=…).
  1. Confirm your property is a domain or subdomain, not only a path prefix, using Google’s eligibility wording in preferred sources documentation.
  2. Search for your site in the source preferences tool (via the deeplink pattern with your domain) and verify it appears as expected.
  3. In page source, confirm https://news.google.com/swg/js/v1/publisher.js (standard) or your manual/ESM setup matches Google’s implementation sections.
  4. Click the live control: the flow should complete and, for JavaScript implementations, return the reader to your page.
  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page does not match the official documentation or your experience, write to yimasynthetic@gmail.com with the page URL and the exact sentence you want clarified or corrected.