How to Add the Google Preferred Sources Button to Your Website

How to Add the Google Preferred Sources Button to Your Website
Google's Preferred Sources button allows users to add your publication easily for personalized content. This guide explains how to add the button and enhance user engagement on your site.

Summarize with AI

Connect Claude to your Ad Accounts in less than 5mn

Discover the most powerful advertising MCP and unlock 140+ tools to analyze, optimize and manage your campaigns with AI.

Google’s Preferred Sources button is a valuable tool for publishers who want to increase reader loyalty and boost their content visibility in personalized search experiences. By enabling users to add your site as a Preferred Source, you can enhance repeated engagement on Google Top Stories, AI Overviews, and Google AI Mode. This article explains how to integrate the Preferred Sources button on your website and leverage its benefits.

Understanding Google’s Preferred Sources Feature

The Preferred Sources feature allows individual Google users to prioritize content from specific publications they trust. When a user marks a site as a Preferred Source, Google’s algorithms recognize this preference, influencing the personalized delivery of Top Stories and AI-generated summaries. It does not, however, improve your site’s global ranking or guarantee placement. Instead, it helps build a dedicated audience that seeks your content more frequently.

Availability and Impact

This feature is globally available wherever Google Search Top Stories is supported and in languages supported by Google Search. Additionally, Preferred Sources are highlighted in Google AI search experiences such as AI Overviews and AI Mode. However, to benefit from this, your publication must be eligible and recognizable in Google’s source preference tool.

Checking Eligibility Before Adding the Button

To determine if your publication qualifies, visit Google’s source preferences tool and search for your domain. Valid entries include root domains and subdomains, such as example.com or news.example.com. Subdirectories like example.com/blog are not eligible. If your site does not appear, placing the button will not enable preferences for your publication.

Implementing the Standard Preferred Sources Button

Google recommends adding the standard JavaScript-based Preferred Sources button for the optimal user experience. This embedded button streamlines the addition process by requiring just one click from the user and returning them to the original article page.

Benefits Compared to the Deeplink Option

While the standard button uses JavaScript to create a seamless flow, the deeplink option directs users to Google’s source preferences page, where they must manually select and confirm your publication. The standard button reduces steps and friction, enhancing adoption rates.

How to Add the Button

Include the following script once in your site’s <head> or main template to load Google’s library asynchronously:

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

Next, insert the button container in your desired location within the page content or sidebar:

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

The script detects this container and renders the interactive button automatically without hard-coding your domain in the markup.

Customizing Appearance

You can customize the button’s visual style to match your website design. Use the data-theme attribute with a value of dark for dark backgrounds, or leave it to the default light theme:

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

By default, the button language is set to the user’s browser language. To override and specify a particular language, add the data-lang attribute:

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

Using the Deeplink When JavaScript Is Not Available

If your platform disallows adding custom JavaScript, such as some content management systems or email newsletters, use the deeplink URL. This ordinary anchor link directs users to the Google preferences page with your domain pre-filled:

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

Example link markup:

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

The deeplink requires users to manually check your publication and does not redirect them back automatically, making it less seamless but still functional.

Adding the Preferred Sources Button to WordPress

To facilitate easy addition within WordPress, you can implement the Preferred Sources button as a widget. This allows site administrators to place it anywhere widgets are supported, such as sidebars or footers, with options to select color themes and alignment.

A simple custom plugin or code in your child theme’s functions.php can register a widget that outputs the appropriate markup and loads the official Google script asynchronously only if the widget is active, improving performance.

Benefits of the WordPress Widget Approach

The widget encapsulates the styling and placement logic, reduces code duplication, and provides user-friendly settings. This ensures consistent experience site-wide and easy future adjustments.

Get Alerts When Competitors Launch New Ads

Ad Radar automatically monitors your competitors across Google, Bing and Meta. Get alerted when a new ad appears for your tracked keywords, so you can spot new offers, messaging and opportunities without constantly checking.

Tracking Button Clicks for Analytics

Google provides built-in event tracking support for the Preferred Sources button to help monitor user engagement. The widget or embedded script listens for clicks initiating the Preferred Sources flow.

If Google Tag Manager (GTM) is present, the widget pushes a preferred_source_button_click event to the dataLayer. This can serve as a trigger to fire Google Analytics 4 (GA4) event tags, allowing you to track how often users attempt to add your publication.

“Tracking these button clicks provides valuable insight into how many readers are engaging with your content preferences, enabling data-driven decisions to boost loyalty,” explains a digital marketing expert.

Without GTM, the widget calls the standard gtag.js event function for compatibility. Use GTM Preview or the GA4 DebugView to verify that events are received properly before publishing changes.

Strategic Benefits for Publishers

While Preferred Sources is not a ranking factor for Google’s general algorithm, it significantly helps build a dedicated repeat audience within personalized features. Readers who add your publication are more likely to see your content in Top Stories and emerging AI-powered search results, fostering long-term engagement.

Increasing loyalty with Preferred Sources also complements broader SEO and marketing campaigns focused on user retention and brand trust.

Turn On Copilot. Let AI Optimize Your Ads 24/7.

Your AI agent works in the background, continuously watching your campaigns and finding ways to improve them. When it spots an opportunity, it tells you what to do, and you simply approve the action.

Additional Resources for Optimization

Integrate insights from advanced SEO reporting and competitor analysis techniques to complement your Preferred Sources strategy. Learn how Google updates to site reputation impact search quality and explore tools for detecting competitor display ads to sharpen your content promotion.

Adopting automation tools can streamline management. For instance, AI-powered platforms like Adsroid’s marketing automation features provide advanced reporting and workflow assistance to increase user engagement effectively.

Conclusion

Adding Google’s Preferred Sources button to your website is a straightforward method to encourage users to select your publication within Google Search personalization. This choice can enhance your content’s visibility in Top Stories and AI search features, driving increased return visits and reinforcing your brand’s presence.

Implementing the standard JavaScript-based button delivers the best experience with minimal user friction. For sites unable to add scripts, the deeplink method remains a viable fallback. Coupling this with proper analytics tracking enables publishers to monitor engagement and optimize their digital strategy over time.

For publishers aiming to boost loyalty and personalized search visibility, the Google Preferred Sources button is a crucial addition to their toolbox.

To start enhancing your site today, consider integrating reliable tools for marketing automation and analytics such as Adsroid’s AI agent for Google Ads and gain actionable insights for ongoing performance improvements.

Share the post

X
Facebook
LinkedIn

About the author

Picture of Clara Castrillon - SEO/GEO Expert
Clara Castrillon - SEO/GEO Expert
With over 7 years of experience in SEO, she specializes in building forward-thinking search strategies at the intersection of data, automation, and innovation. Her expertise goes beyond traditional SEO: she closely follows (and experiments with) the latest shifts in search, from AI-driven ranking systems and generative search to programmatic content and automation workflows.

Table of Contents

Your Google and Meta Ads on Autopilot

Let AI handle the work.

Adsroid analyzes your campaigns, finds opportunities and takes action to improve performance, while you stay in control.

Latest posts

How to Add the Google Preferred Sources Button to Your Website

Google's Preferred Sources button allows users to add your publication easily for personalized content. This guide explains how to add the button and enhance user engagement on your site.

Who Is Accountable When AI Automates Your Marketing Campaigns?

AI increasingly automates marketing campaigns, raising complex questions about accountability, oversight, and compliance. This article analyzes these challenges and offers practical solutions.

Understanding WebMCP: Enabling AI Agents to Interact with Websites

WebMCP is an emerging web technology allowing AI agents to interact with websites through structured tools, improving automation reliability and transforming online shopping experiences.