Add code snippet to your site

To launch Reader Revenue Manager for your publication, you have to set up each page on your site with a code snippet from Publisher Center. This snippet loads Reader Revenue Manager prompts on your site.

To install the snippet, you must have permission to access and edit your site’s theme or template code in your content management system (CMS).

Add a code snippet to your site

  1. Go to Google Publisher Center.
  2. Sign in with a Google Account you use with your publication.
  3. Click Reader Revenue Manager.
  4. Click Add code snippet to your site
  5. If you’ve already completed your setup but haven’t added the code snippet, you can access it under CMS Sync. There are 2 snippet types:
    • Open access snippet:
      • Use this on:
        • Articles that should be open to all readers if you set up a paywall.
        • All articles if you set up contributions or surveys
    • Product ID snippets
      • On the pages you want to paywall, copy the code snippet containing the product ID you want to use.
      • To set different prices for different content types, use product IDs. For example, if you’d like to sell a subscription for your news content and sports content, create 2 separate product IDs to have separate code snippets. The code snippet associated with your sports subscription is added to your sports pages. The code snippet associated with your news subscription is added to your news pages.
  6. Add the snippet to the <head> tag of each page.
  7. To make sure Reader Revenue Manager loads properly, go to your website.

Tips:

  • If you make an update to your price with a new product ID, you must update your CMS Sync on your website.
  • If you have multiple plans active on a single site, you must configure multiple snippets and add each snippet to the relevant content pages. One snippet per page:
    • Configure one snippet for each product ID.
    • Include these product IDs on the:
      • Relevant pages
      • Templates within your CMS

Glossary

Fields

Example code snippet


12258534985955523896
true
Search Help Center
true
true
true
true
true
100499
Search
Clear search
Close search
Main menu
false
false
false
false