Add a Call-To-Action button on articles

Get started

You can include Call-To-Action (CTA) buttons on your pages. To add a CTA button, you can insert HTML into the page when you have the CMS sync snippet from the Google Publisher Center.

  • Include a CTA button in the <body> tag of a page that has your CMS Sync snippet.
    • Make sure that the CTA button has the swg-standard-button attribute set to “subscription” or “contribution.”
  • When the swg-basic.js library loads, it finds all swg-standard-button-labeled elements to style and turns them on automatically.

Example usage for the Contributions button


JavaScript

<html>

  <body>

    <article>

      ... <button swg-standard-button="contribution"></button>

    </article>

  </body>

</html>

 

Add a Call-To-Action button as a contribution 

To add this Contribution button HTML example to your article, click Contribute with Google ​Google Search.

Example usage for the Subscriptions button


JavaScript

<html>

  <body>

    <article>

      ...

      <button swg-standard-button="subscription"></button>

    </article>

  </body>

</html>

 

Add a Call-To-Action button as a subscription

To add this Subscriptions button HTML example to your article, click Subscribe with Google Google Search.

Was this helpful?
How can we improve it?
Search
Clear search
Close search
Google apps
Main menu
Search Help Center
true
true
false
true
true
100499
false
false