Free tool · Google Search Central

Preferred Sources badge generator

Let readers mark your site as a preferred source in Google — so your stories get highlighted in Top Stories, AI Mode and AI Overviews. Pick a style, copy the code, paste it on your site.

Style
Theme
Button language
Your domain (optional)

The JavaScript button reads the domain from the page it runs on — this is only used for the no-JS fallback.

Live preview

Prefer us in Google

Add our site as a preferred source to see our stories highlighted in Search, AI Mode & AI Overviews.

Add to Preferred Sources

Visual mock. On your own site Google renders the real button and adds your domain.

Embed code
<!-- Maya AI · Google Preferred Source card -->
<script async src="https://news.google.com/swg/js/v1/publisher.js"></script>
<div class="maya-prefsrc-card">
  <div class="maya-prefsrc-copy">
    <strong>Prefer us in Google</strong>
    <span>Add our site as a preferred source to see our stories highlighted in Search, AI Mode &amp; AI Overviews.</span>
  </div>
  <div google-add-preferred-source-btn data-theme="light"></div>
</div>
<style>
.maya-prefsrc-card{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px;max-width:640px;padding:18px 20px;border:1px solid #e5e0d8;border-radius:14px;background:#faf8f3;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;transition:border-color .2s}
.maya-prefsrc-card:hover{border-color:#ff5800}
.maya-prefsrc-copy{display:flex;flex-direction:column;min-width:0}
.maya-prefsrc-copy strong{font-size:14px;color:#0b0d12}
.maya-prefsrc-copy span{font-size:13px;line-height:1.45;color:#5f6368;margin-top:2px}
</style>

Paste the code where you want the button to appear. Put the <script> tag once, ideally in your <head>.

Check that your site is eligible first

Only sites that appear in Google's source preferences tool can be selected as a preferred source.

Check my site

How it works

01

Design your badge

Pick a style, theme and language and see it update live.

02

Copy the code

Copy the generated HTML — it loads Google's official publisher.js.

03

Paste on your site

Add it to your article template or footer. Readers can now prefer you in one click.

Preferred sources — FAQ

What are Google preferred sources?
Preferred sources let readers tell Google which publications they want to see more often. When a user marks your site as a preferred source, your content is more likely to appear in Top Stories and can be highlighted with a 'preferred' badge in Top Stories, AI Mode and AI Overviews.
Is my site eligible to be a preferred source?
Only domain-level and subdomain-level sites are eligible (for example example.com or news.example.com, but not example.com/blog). To check, search for your site in Google's source preferences tool at google.com/preferences/source. If it appears there, readers can select it — and the button below will work on your pages.
How does the 'Add to Preferred Sources' button work?
The button loads Google's official publisher.js library, which scans your page for an element marked with google-add-preferred-source-btn and renders a Google-styled button in its place. When a reader clicks it, Google adds your site as a preferred source and returns them to where they left off.
Does the button add my domain or Maya's domain?
Google infers the site from the page the script runs on. That means the button only adds YOUR domain when the code is installed on YOUR site. The live preview on this page is a visual mock — copy the generated code onto your own pages for it to work.
What if my CMS can't run JavaScript?
Use the 'Text link' style. It generates a plain deeplink to Google's source preferences tool (google.com/preferences/source?q=yourdomain) that you can drop into a link, button image, newsletter or social post — no JavaScript required.
Which languages and themes are supported?
The button auto-translates to the reader's browser language by default, and you can force a specific language. It also ships in light and dark themes. This generator lets you set both before copying the code.

Want to know how you actually show up across AI answers? Run a free AI visibility audit.

AI görünürlüğünü takip eden 100'den fazla markaya katılın

AI'ın markanız hakkında
ne düşündüğünü öğrenin

Markanız için ücretsiz AI görünürlük denetimi alın ve ChatGPT, Claude ve Gemini'nin sizi ne sıklıkta önerdiğini ve hangi rakiplerin önde olduğunu görün. LLM Görünürlük Skorunuzu keşfedin ve AI arama varlığınızı geliştirmek için uygulanabilir GEO önerileri alın.

3 gün ücretsiz deneme
2 dakikada sonuç
Ücretsiz plan mevcut
İstediğiniz zaman iptal