EOM Preferred Sources Button

説明

When someone picks your site as a preferred source in Google Search, your articles show up more often in Top Stories, and they can carry a “preferred” badge in AI Mode and AI Overviews. Google reports that people are twice as likely to click through to a site after marking it that way.

This plugin puts that button on your site and gives you full control over where it appears and how it looks.

Three ways to integrate

  1. Deeplink (default) — a plain link to Google’s source preferences tool. No script from Google, no third-party connection, about one kilobyte in total.
  2. Two-click — your own button. Google’s library is fetched only after a visitor clicks, so the third-party request follows a deliberate action.
  3. Google’s official widget — the integration Google recommends, with an automatically translated button. Convenient, but it loads roughly 250 KB of JavaScript from news.google.com on every page view, and that script sets cookies and local storage.

The default is the deeplink, so the plugin adds no third-party requests until you decide otherwise.

Display rules

  • Automatic placement before, after or inside the content, or as a floating bar
  • Insert after a chosen paragraph
  • Per content type: posts, pages, custom post types
  • Per view: single views, front page, blog index, category, tag and taxonomy archives, author and date archives, search results, 404
  • Include or exclude individual posts by ID
  • Include or exclude categories, tags and custom taxonomy terms
  • Only on posts newer than a given number of days
  • Only for logged-out visitors, or hidden from chosen roles

Design

Colour scheme (light, dark, follow the system, or your own colours), icon and icon position, corner radius, border, font size and weight, padding, spacing, shadow, full width, alignment and extra CSS classes — with a live preview next to the fields. You can also turn the plugin stylesheet off entirely and style the button from your theme.

Also included

  • Block, shortcode [preferred_source] and template tag psbtn_button()
  • A ready-made link for newsletters and social posts
  • Optional click measurement through the dataLayer or gtag that is already on your site
  • Optional local click counter that stores nothing but a number per day
  • Import and export of the configuration as JSON
  • A fallback link when a content blocker stops Google’s script
  • A Site Health check

Auf Deutsch

Wenn Leserinnen und Leser deine Website als bevorzugte Quelle auswählen, erscheinen deine Inhalte häufiger in den “Top Stories” der Google-Suche. Dieses Plugin bringt den passenden Button nach WordPress — wahlweise als datensparsamen Deeplink ohne Google-Skript, als Zwei-Klick-Lösung oder als offizielles Google-Widget. Dazu kommen ausführliche Anzeigeregeln (Beitragstypen, Ansichten, Kategorien, Beitragsalter, Rollen), vollständige Design-Einstellungen mit Live-Vorschau, Block, Shortcode und eine optionale Klickmessung, die deine Website nie verlässt. Die Oberfläche ist auf Deutsch verfügbar.

Requirements from Google

Google only considers domains and subdomains for preferred sources. example.com and news.example.com are eligible, example.com/blog is not. Your site also has to be findable in Google’s source preferences tool.

Made by EOM

This plugin is built and maintained by EOM, a German online-marketing agency specialising in SEO and Google visibility. If it helps your site, we would love to hear about it. Learn more about our work at eom.de.

Third-party services

In two-click and widget mode this plugin loads the script https://news.google.com/swg/js/v1/publisher.js from Google. This is Google’s official library for the preferred sources button. Loading it transmits the visitor’s IP address, user agent and referrer to Google, and the script sets cookies and browser storage of its own.

  • Google Terms of Service: https://policies.google.com/terms
  • Google Privacy Policy: https://policies.google.com/privacy

In deeplink mode, which is the default, no script or asset is loaded from Google. The button is then an ordinary link, and nothing is sent anywhere until a visitor clicks it.

The plugin itself never contacts any server of its own, and it sends no data to the plugin author.

スクリーンショット

ブロック

このプラグインは1個のブロックを提供します。

  • Preferred Source A button that lets readers add this site as a preferred source in Google Search.

インストール

  1. Install and activate the plugin.
  2. Go to Settings Preferred Sources.
  3. Check the domain and pick an integration mode.
  4. Set the display rules and the design, then place the button through the block, the shortcode or automatic placement.

FAQ

Which integration should I choose?

For an audience in the EU the deeplink is the simplest: no third-party connection, no consent needed, no loading weight. The two-click mode gives you Google’s nicer dialog while still waiting for a deliberate click. The official widget offers the smoothest flow but belongs behind a consent banner.

Does the plugin send any data?

No. The plugin has no server of its own and no telemetry. In two-click and widget mode Google’s library is loaded from news.google.com, and Google then learns the visitor’s IP address. That is described under Third-party services above.

Can I use Google’s official button artwork?

Yes. Google offers button images in 51 languages. Download the archive, unzip it, upload the image you need to your media library and choose the image variant in the design settings. Note that the archive contains images, not a plugin, so it does not go through Plugins > Add New. The plugin deliberately does not imitate Google’s artwork.

Does it work with caching plugins?

Yes. The output is static and contains nothing visitor specific. The optional local click counter uses a small REST request, which caching does not affect.

How accurate is the local click counter?

Treat it as an orientation figure. It counts clicks on the button per day and nothing else, without cookies or visitor identifiers, and it is rate limited rather than audit proof. For exact figures use the dataLayer or gtag event with your existing analytics.

Where do I find the shortcode attributes?

[preferred_source mode=”deeplink” style=”button” theme=”dark” icon=”star” align=”center” label=”Add us on Google”]. Every attribute is optional and falls back to the settings. The mode can only be more restrained than the site setting, never more permissive.

評価

このプラグインにはレビューがありません。

貢献者と開発者

EOM Preferred Sources Button はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“EOM Preferred Sources Button” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.1.1

  • Added an EOM homepage link and refreshed the plugin branding (icon and banner).

1.1.0

  • Renamed to EOM Preferred Sources Button, per plugin review feedback.
  • Security: the REST permission callback now compares the request host exactly instead of by prefix.
  • Removed bundled translation files; translations come through translate.wordpress.org.

1.0.3

  • Fixed: the button no longer resets the horizontal margins that many themes use to build their content column, so it stays inside the column and the alignment setting finally behaves as expected.

1.0.2

  • The alignment setting is always visible again and now also works with full width, where it positions the content inside the button.

1.0.1

  • Fixed: button alignment now uses flexbox, so theme text-align rules can no longer override it.
  • Fixed: the floating bar loads its script early enough to actually appear.
  • Fixed: the full-width button no longer overflows its container.
  • Hardened selectors against themes that restyle anchors inside the content area.

1.0.0

  • First release.