Your readers can sign in to third-party websites and apps quickly and securely with Google Identity Services (GIS), also known as Sign in with Google. They can enjoy a fast, low-friction sign-in and registration experience through Google One Tap, which is the key feature of GIS. This integration with Reader Revenue Manager Enterprise (RRM:E) provides 2 key benefits:
- Unified sign-in: To reduce friction and prevent high onboarding drop-off rates, Google One Tap powers the RRM registration wall. It replaces the multi-step sign-in process with a single-click experience.
- Automatic entitlements: Readers who sign in through Google One Tap are automatically recognized by Reader Revenue Manager Enterprise. This provides them instant access to their subscriptions and metered content. Publishers can use GIS to sign-in without RRM prompts.
Set up Sign in with Google
If you’re new to Sign in with Google and Google One Tap, you can use these resources to learn the implementation basics:
- Sign in with Google: Learn about overview of Google Identity Services.
- Implement Sign in with Google through button: Learn how to display the Sign In With Google button.
- Implement Google One Tap: Learn how to display Google One Tap.
To set up Google One Tap:
- Configure your OAuth Consent screen.
- Learn how to set up.
- Obtain a client ID and load the client library.
- To add a code snippet on pages where you want to use Google One Tap, select HTML or JavaScript.
- To configure a callback to handle a credential response, use HTML or JavaScript.
Set up registration wall in Publisher Center
You can get credentials and install scripts quickly when you use Publisher Center to set up Sign in with Google.
- To set up, click Reader Revenue Manager Enterprise
Content Access.
- Click Overview
Reader registration.
- Turn on Sign in with Google.
- Set up Sign in with Google.
- Enter the URL of a page where Google One Tap is installed.
- Click Verify.
- Confirm that the message has changed to “Reader registration is set up to use Sign in with Google for account creation.”
Integrate client-side code
To integrate the Google One Tap API with the RRM Reader Registration feature:
- Initialize RRM client-side integration.
- For an Enterprise publisher, learn how to include and initialize swg.js.
- Add the
rrm_interopandcallbackparameters to your GIS snippet.- To enable prompt deconfliction, add the
data-rrm_interop='true'parameter to your Google One Tap HTML snippet or includerrm_interop: truefor the JavaScript API. - Configure GIS to use a callback function. For example, to receive the credential token, use
handleCredentialResponse. Detailed implementation instructions forhandleCredentialResponseare provided below.
HTML API example:
HTML
<div id="g_id_onload" data-client_id="YOUR_GOOGLE_CLIENT_ID" data-login_uri="https://your.domain/your_login_endpoint" data-your_own_param_1_to_login="any_value" data-your_own_param_2_to_login="any_value" data-callback="handleCredentialResponse" data-rrm_interop='true'> </div>JavaScript API example:
JavaScript
google.accounts.id.initialize({ client_id: 'YOUR_GOOGLE_CLIENT_ID', callback: handleCredentialResponse, rrm_interop: true, }); - To enable prompt deconfliction, add the
- Process the credential in the callback.
- To complete the integration, process the GIS credential with
processGisCredential. - Add this to the
SWGqueue.
For Reader Revenue Manager Enterprise with
SWG:JavaScript
function handleCredentialResponse(response) { if (response.credential) { (self.SWG = self.SWG || []).push((subscriptions) => { subscriptions .processGisCredential(response, { gisClientId: 'YOUR_GOOGLE_CLIENT_ID', }); }); } }This ensures that the credential returned by GIS is properly passed to and processed by Reader Revenue Manager Enterprise. This process synchronizes the sign-in state and entitlements.
- To complete the integration, process the GIS credential with