# Google One Tap

Source: https://docs.ezoic.com/docs/identity/google-one-tap/


## What is Google One Tap?

Google One Tap is a user-friendly sign-in mechanism provided by Google Identity Services. It allows users to quickly and securely sign in or sign up to your site with a single click—no password required. One Tap presents a subtle prompt at the top of the page, enabling seamless authentication using their Google account. This improves conversion rates, enhances user experience, and reduces friction during sign-in flows.

## Why Google One Tap Matters for Publishers

Implementing Google One Tap with Ezoic enables your site to automatically collect **identified users**—visitors who have signed in using a verified identity like their Google account. This identity data is critical for maximizing monetization:

- **Improved Targeting**: Advertisers pay more for impressions served to known, verified users.
- **Increased Revenue**: Identity unlocks access to higher-yield demand sources and helps generate better match rates in header bidding.
- **Privacy-First Compliance**: Identity-based ads support long-term ad revenue while aligning with industry privacy standards and cookieless future requirements.

The more users who sign in through One Tap, the more valuable your traffic becomes.

## How to Set Up Google One Tap

To implement Google One Tap on your site through Ezoic, follow the step-by-step instructions provided in this support article:  
[How to Set Up Google One Tap for Identity](https://support.ezoic.com/kb/article/how-to-set-up-google-one-tap-for-identity)

## Controlling Automatic Prompts

In the publisher dashboard, go to **Settings → Identity → Google One Tap**. The **Don't show sign-in prompts automatically** toggle controls whether Ezoic shows sign-in UI on its own.

When enabled, Ezoic will not show the One Tap prompt or the fallback sign-in modal automatically. The One Tap library still loads on your pages so you can trigger sign-in when you choose—for example, from a button click or another user action.

When disabled (the default), Ezoic shows One Tap and the fallback modal according to its normal automatic behavior.

## Triggering One Tap Manually

Sites using EzoicAds standalone (`ezstandalone`) can show the Google One Tap prompt on demand with `ezstandalone.showOneTap()`.

The method returns:

- **`true`** if the prompt was shown or queued. If you call it before the One Tap library has finished initializing, the prompt appears as soon as it is ready.
- **`false`** if One Tap is unavailable on the page—for example, One Tap is not enabled for the domain, no Google client ID is configured, or the visitor is already signed in.

`showOneTap()` works regardless of the **Don't show sign-in prompts automatically** setting. It also ignores Ezoic's 24-hour snooze that normally applies after a visitor dismisses the prompt.

Example using the standard command-queue pattern:

```html
<button onclick="ezstandalone.cmd.push(function() { ezstandalone.showOneTap(); })">
  Sign in with Google
</button>
```

Google applies its own frequency capping (a cooldown after repeated dismissals). That behavior is controlled by Google, not Ezoic, and still applies when you trigger One Tap manually.

