Display One Tap across Subdomains

Google One Tap stores user status in the g_state cookie. By default, the cookie domain is set to the domain of current page.

If One Tap is displayed on the parent domain and subdomains, the state cookie must be visible across all of your domains. In this case, you need to set the cookie domain to your parent domain, mainly when you set the cookie from a subdomain.

You can use the data-state_cookie_domain configuration parameter to change the state cookie domain. The following code example shows how to set the data-state_cookie_domain parameter:

<div id="g_id_onload"