Select one or more tags, then press “Search Plugins”

Find Plugin with any / all of the selected criteria
Search Plugin

SourceCue Button For Google Preferred Sources Wordpress Plugin - Rating, Reviews, Demo & Download

SourceCue Button For Google Preferred Sources Preview Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

SourceCue Button for Google Preferred Sources helps publishers give readers a clear way to add an eligible domain or subdomain as a preferred source in Google Search.

This is an independent plugin. It is not affiliated with, endorsed by, or sponsored by Google.

The plugin supports the three implementation approaches documented by Google Search Central:

  • Standard JavaScript button: Google’s recommended automatically localized interactive button.
  • Advanced JavaScript button: a customizable site-owned button that starts Google’s Preferred Sources flow.
  • Deeplink: a normal link to Google’s source preferences tool, rendered as text or an official translated badge.

Key features include:

  • Gutenberg block and [psbgs_preferred_source] shortcode.
  • Automatic inline insertion before content, after content, or both.
  • Sticky top banner, sticky bottom banner, and floating alert.
  • Display rules for sitewide, posts, pages, front page, selected public post types, and custom exclusions.
  • Searchable category and individual-content exclusions.
  • Immediate, time-delay, and scroll-percentage display triggers.
  • Desktop, tablet, and mobile visibility controls using responsive CSS.
  • Dismissal controls using browser sessionStorage/localStorage rather than dismissal cookies.
  • Simple inline output or a customizable inline card with title and subtitle.
  • Six editable custom-button style presets, gradients, border controls, spacing, and typography.
  • {site_name} and {domain} variables in promotional text.
  • Official translated Preferred Sources badge assets in 17 languages, with light/dark and 1x/2x variants.
  • Official badge widths from 40 to 676 pixels.
  • Optional local click counter with configurable text and appearance.
  • Optional local analytics with 30-day reporting for impressions, clicks, dismissals, CTR, implementation, placement, and integration source.
  • Optional cache purge integration for detected popular WordPress caching plugins.
  • Data Management controls for analytics clearing, click-counter reset, settings reset, and uninstall cleanup preference.
  • Conditional/minified front-end assets and no jQuery dependency.
  • Developer action, filters, and PHP helpers.

Google controls Preferred Sources eligibility. Installing this plugin does not make a site eligible and does not guarantee rankings, traffic, or visibility.

Shortcode

Basic usage:

[psbgs_preferred_source]

Examples:

[psbgs_preferred_source mode="standard" theme="dark" align="center"]

[psbgs_preferred_source mode="custom" label="Add {site_name} as a Preferred Source"]

[psbgs_preferred_source mode="deeplink" deeplink_style="official_badge" badge_theme="dark" badge_lang="hi" badge_width="160"]

[psbgs_preferred_source mode="standard" presentation="alert" alert_position="bottom_right" trigger="scroll" scroll="35"]

[psbgs_preferred_source inline_style="card" inline_title="Stay connected with {site_name}" inline_subtitle="Add {domain} as a preferred source in Google Search."]<h3>External services</h3>

This plugin integrates with Google’s Preferred Sources service. The external service is required only for the Google functionality selected by the site administrator.

Google Preferred Sources JavaScript SDK

When the Standard or Advanced JavaScript implementation is rendered, the visitor’s browser loads Google’s Preferred Sources publisher library from:

https://news.google.com/swg/js/v1/publisher.js

This browser request is made to Google and may transmit information normally included in a web request, such as the visitor’s IP address, user agent, and referrer, according to Google’s policies. The plugin does not proxy or store that request.

The SDK is not loaded for the text-deeplink or locally served official-badge implementation unless another interactive Preferred Sources element on the same page requires it.

Google source preferences

Preferred Sources actions ultimately use Google’s source preferences service at:

https://www.google.com/preferences/source

For deeplink mode, the configured source domain is included in the q query parameter when the visitor follows the link. Standard and Advanced modes use Google’s documented interactive flow.

Service documentation: https://developers.google.com/search/docs/appearance/preferred-sources

Google Privacy Policy: https://policies.google.com/privacy

Google Terms of Service: https://policies.google.com/terms

Privacy

Local analytics is disabled by default. When enabled, the plugin stores aggregated daily counters in the site’s WordPress database. It does not store IP addresses, visitor IDs, WordPress user IDs, cookies, or individual page-view rows for analytics.

The optional public click counter stores one aggregate integer. A click is not presented as proof that the visitor completed the selection inside Google.

Dismissal preferences use browser sessionStorage or localStorage, depending on the configured behavior.

The Google external-service behavior is described in the External services section above.

By default, uninstalling/deleting the plugin removes its settings, public click counter, analytics database-version option, and custom analytics table. Administrators can disable this cleanup in Settings > Preferred Sources > Advanced & Usage > Data Management when they intentionally want to retain the database records for a later reinstall. Scheduled plugin events are always removed during uninstall.

Third-party assets

The plugin includes translated Preferred Sources badge image assets supplied by Google Search Central from the Preferred Sources documentation page:

https://developers.google.com/search/docs/appearance/preferred-sources

Google explicitly provides these translated badge assets for the Preferred Sources implementation described on that page. Google’s general Developers site license applies to page content, but Google’s site policies separately reserve Google trademarks and brand features and note that images may have separate terms. This plugin therefore does not claim that the Google logo or other Google brand features are licensed under CC BY 4.0. See THIRD-PARTY-LICENSES.txt for the source and trademark notice.

The badge files are included unchanged solely to implement Google’s documented Preferred Sources deeplink experience. Google, the Google logo, and related marks are trademarks of Google LLC. Inclusion of these assets does not imply affiliation, endorsement, or sponsorship of this plugin by Google.

Developer API

PHP echo helper:

psbgs_preferred_source_button( array( 'mode' => 'standard', 'align' => 'center' ) );

PHP return helper:

$html = psbgs_get_preferred_source_button( array( 'mode' => 'deeplink' ) );

Action:

do_action( 'psbgs_preferred_source_button', array( 'presentation' => 'sticky_bottom' ) );

Selected filters:

  • psbgs_default_settings
  • psbgs_settings
  • psbgs_button_args
  • psbgs_button_html
  • psbgs_deeplink_url
  • psbgs_badge_language
  • psbgs_badge_asset_urls
  • psbgs_supported_post_types
  • psbgs_should_auto_display
  • psbgs_analytics_retention_days

Screenshots

No screenshots provided


Reviews & Comments