Skip to content

Google Preferred Sources Badge

Google lets readers mark a site as a preferred source. Once a reader picks your site, your content can show a "preferred" badge in AI Overviews, AI Mode, Top Stories, and Google Discover.

This page explains what the feature is, why it matters for AI-era search, and how to add it to any site in two lines of code.

What is a preferred source?

Preferred sources is a Google Search feature. Users select the sites they trust in Google's source preferences tool. After that, content from those sites is more likely to appear in:

  • AI Overviews and AI Mode, highlighted with a preferred badge
  • Top Stories, with a preferred badge
  • Google Discover

It is a reader-driven signal. The reader chooses, and Google surfaces more of your content for that reader.

Why it matters for AEO and GEO

Answer engines and generative engines cite sources they can trust. A preferred badge does two things:

  1. It puts your site in front of readers who already trust you, in the exact surfaces where AI answers appear.
  2. It signals to Google that real users actively select your content.

For business tools sites, this targets the same surfaces as AEO and GEO work: AI Overviews, AI Mode, and conversational search.

Eligibility

Only domain-level and subdomain-level sites are eligible. Subdirectory paths are not.

  • Eligible: https://example.com, https://code.example.com
  • Not eligible: https://example.com/blog

Two lines. Add the library script to the head:

<script async src="https://news.google.com/swg/js/v1/publisher.js"></script>

Add the button where you want it in the body:

<div google-add-preferred-source-btn></div>

That is it. The button is auto-localized and Google-styled.

Dark theme

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

Language override

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

For social posts, newsletters, and emails, use the deeplink format:

https://www.google.com/preferences/source?q=https://yourdomain.com

Readers click, add your site, and get returned to your page.

Advanced usage

For custom UI, the library also ships as an ES module with a programmatic API:

import { preferredSource } from "https://news.google.com/swg/js/v1/publisher.mjs";

preferredSource.init({ theme: "dark", lang: "en" });

Or bind to any click handler:

button.onclick = () => { preferredSource.addPreferredSource(); };

Official docs

  • Google Search Central guide: https://developers.google.com/search/docs/appearance/preferred-sources
  • Source preferences tool: https://www.google.com/preferences/source

SEO Pages | Hermes Home

Contact Terms Privacy Pricing