Skip to main content
All CollectionsMiscellaneous
How do I activate the "Subscribe with Google" option in my paywall?
How do I activate the "Subscribe with Google" option in my paywall?

In this article, you will see how to integrate a "Subscribe with Google" button into your Poool paywall.

M
Written by Marc-Antoine Begin
Updated over a week ago

What is Subscribe with Google?

Subscribe with Google is a service provided by Google that allows users to purchase a subscription (or make a one-time or recurring contribution) to participating websites, manage their subscriptions and access premium features through their Google Account.

If you already offer Subscribe with Google to your readers, this article is for you!

🚨 This activation requires tech team intervention.

Configuration on the Poool Dashboard :

In the Appearances section:

1. Create a core "Button" component in the advanced appearance that you'd like to add this "Subscribe with Google" button.

🚨 It's not possible to enable this feature on a basic appearance.

2. Click on ✏️ to edit the button. This takes you to the Button Options.

On the "Action" drop-down menu, choose "Trigger event", then enter the name of the JS event.

NB: on custom buttons, the customButtonClick event is always triggered on click. Specifying a name here will enable you to differentiate the buttons in your appearance so as to (possibly) call up different functions.

3. In the 'Styling' tab of the button editing window, add an additional CSS class that will allow you to customise the button design later.

In the Scenarios section:

Once created, remember to apply the appearance to your scenario!

Technical configuration on your side:

When the user clicks on the button you've just created, the customButtonClick event is triggered.

You can then call the function of your choice once this event has been triggered.

As you saw in the previous section, you can define the name of the JS event to be triggered in the button parameters.

This allows you to differentiate the JS event to be called if you have several custom buttons in your layout.

access.on('customButtonClick', event => {
if (event.name === ‘subscribe_with_google')
{ /* handle event */}
}
);


If you have any questions, please don't hesitate to contact us via the Intercom messenger!

Did this answer your question?