Google Preferred Sources button generator
Enter your domain and get the official code letting your readers add you to their preferred sources in Google Search.
This link opens the Google preference page for your domain directly. Useful in a newsletter, a footer or a social post, anywhere you cannot load a script.
The script loads asynchronously and does not block rendering. Without the manual control attribute it finds every element carrying google-add-preferred-source-btn and initialises it as soon as the page loads.
This tool runs entirely in your browser. Nothing you type here reaches our servers, nothing is stored, there is no account to create and no quota to respect. We can give it away because it costs us nothing to run.
What this tool does
Preferred Sources lets a Google Search user name the sites they want to see more often in news results. Google provides an official button you can embed so your readers can add you in one click. The code is not complicated, but it gets copied wrong: this tool outputs the exact block for your domain, with your options.
- Outputs the official publisher.js script for the head, loaded asynchronously.
- Outputs the button element carrying the google-add-preferred-source-btn attribute and your options.
- Handles light or dark styling through data-theme, and display language through data-lang.
- Offers the manual mode (preferred-sources-control) to wire the flow to your own design.
- Also gives the direct link to the preference page, handy in a newsletter or on social.
Google restricts Preferred Sources to domains and subdomains: https://example.com or https://news.example.com work, https://example.com/blog is not eligible. The feature applies to news surfaces in Google Search. If your site does not appear on the preference page, the button will render without doing anything useful.
Frequently asked questions
What does Preferred Sources actually change?
Does the button work on any site?
Where exactly does the script go?
What is manual mode for?
Can I just use the direct link?
Beyond the generator
These micro-tools produce a file. The Ready2GEO scanners go and look at what is actually happening on your site and inside AI answers.
Checks whether your site is genuinely eligible and usable by the ChatGPT ads platform: crawler access, structure, commercial signals.
Test my site 🕷️ AI crawler log analyserPaste your server logs and see which AI crawlers really visit, how often, and which pages they choke on.
Analyse my logs 🧭 Full GEO auditThe bundled audit aggregates every scanner into a single report, with prioritised fixes and a PDF export.
Run the audit