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.”
- Make sure that the CTA button has the
- When the
swg-basic.js
library loads, it finds allswg-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 .
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 .