Notification

We’ve recently announced an update on publication pages. Please read here for more information.

درحال‌حاضر صفحه درخواستی به زبان شما دردسترس نیست. می‌توانید زبان دیگری را در انتهای صفحه انتخاب کنید یا بااستفاده از ویژگی ترجمه داخلی Google Chrome هر صفحه وبی را فوراً به زبان انتخابی‌تان ترجمه کنید.

Enable Reader Revenue Manager on WordPress

Get started

This guide shows how to set up your Reader Revenue Manager Integration in WordPress. Before getting started, you’ll need to have completed all the onboarding steps in Publisher Center for Reader Revenue Manager.


Adding Reader Revenue Manager to a WordPress installation requires adding the Reader Revenue Manager code snippet to your WordPress Theme. To simplify this, you should install a third party plugin WPCode.

Add a code snippet to your publication

  1. Launch your WordPress Admin.
  2. On the left, under the “Plugins” section, click Add New.
  3. On the Search bar, enter “WPCode.” You can find the“WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager” plugin.
  4. To install this plugin, click Install Now.
  5. Once you install the plugin, to add a snippet:
    1. On the left, under “Code Snippets,” click Add snippet and then Add Your Custom Code.
    2. Add a title you want to use for your snippet.
    3. Copy the Reader Revenue Manager code snippet.
    4. Paste the Reader Revenue Manager code snippet from the “CMS Sync” tab in Google Publisher Center.
  6. Turn on Active.
  7. Set “Code type” to “HTML Snippet.” For:
    1. Set the Insertion method to “Auto Insert.”
    2. Set Location to “Site Wide Header.”
    3. Update Priority from “10” to “1."
  8. At the top right, click Save snippet.

Check Accelerated Mobile Pages compatibility

If your entire site is built on Accelerated Mobile Pages (AMP), you should not use Reader Revenue Manager.

  • If you use Newspack, you can configure AMP.
  • By default, AMP blocks the “Reader Revenue Manager” code snippets since it isn’t valid AMP.
  • You can add the “Reader Revenue Manager” code snippet to your canonical pages and disable AMP if:
    • You have both AMP and non-AMP pages.

Use Allow-List to your code snippet within AMP

  1. On {site or location}, open an article with a broken pop-up in edit mode.
  2. To trigger an AMP error, click Revalidate.
  3. To show the article URL, in the AMP plugin, open validated URLs you want to use.
  4. To see a list of what AMP kept or removed, click Details.
  5. Select “code snippets” lines you want to allow.
  6. From the drop-down, change the value from “Removed” to “Kept.”
  7. Click Save.

Note: On the page that results in an invalid AMP page, you keep a custom javascript code.

Turn off Accelerated Mobile Pages

  1. On the search bar of the “Plugins” page, Enter “AMP.”
  2. Check the box next to AMP.
  3. Under “bulk actions,” select Deactivate.
  4. To remove your AMP pages from Google Search, learn how to remove AMP pages.
Search
Clear search
Close search
Main menu
16148942430595924514
true
جستجوی مرکز راهنمایی
true
true
true
true
true
100499
false
false