Setting up Google Login

Let users log in with their Google Account in one click

Sign in with Google allows users to log in to your site using their Google Account, providing a seamless one-click login experience.

customer accounts for woocommerce sign in with google on login page
Google Login for WooCommerce

How it works

When a user clicks Sign in with Google, they are redirected to Google’s consent screen where they grant your site access to their basic profile information. The plugin requests only the following scopes:

  • userinfo.email — to read the user’s email address.
  • userinfo.profile — to read the user’s basic profile (name).

Once the user authorizes, Google returns their email address and profile to your site. The plugin then looks for an existing WordPress user account with a matching email address and logs them in. No account linking is performed — the email must match exactly. If no matching account is found and Registration is enabled, a new account is created.

Because the plugin only uses basic, non-sensitive scopes, Google does not require app verification for this integration.

Before You Start

You will need a Google Cloud account to create an OAuth 2.0 Client ID and Client Secret. Go to console.cloud.google.com to get started.

Accessing Google Login Settings

Go to WooCommerce > Settings > Accounts & Privacy > Customer Accounts and click on Sign in with Google.

customer accounts for woocommerce customer accounts main settings page sign in with google card

Steps

Setting up Google Login involves several steps in the Google Cloud Console. We’ve recorded a complete walkthrough to guide you through the process. Watch the video above before getting started.

Step 1: Create a Google Cloud project

  1. Go to the Google Cloud Console and create a new project if you don’t have one.
  2. From the left sidebar, go to APIs & Services > OAuth consent screen (now called Google Auth Platform).
  3. Set the User type to External and click Create.
  4. Fill in the required app information (app name, support email).
  5. Under Scopes, confirm that the following are included (they are added by default): .../auth/userinfo.email and .../auth/userinfo.profile.

Do not add additional scopes beyond these two. Adding sensitive or restricted scopes triggers a Google verification process that can take several business days.

Step 2: Create an OAuth 2.0 Client ID

  1. Go to APIs & Services > Credentials.
  2. Click Create Credentials > OAuth Client ID.
  3. Set the application type to Web application.
  4. Under Authorized redirect URIs, add both URIs shown in your plugin settings page.
customer accounts for woocommerce sign in with google authorized redirect uris

The URIs will look like this:

https://www.example.com/my-account/auth/?login=google_callback
https://www.example.com/checkout/auth/?login=google_callback
  1. Click Create. Copy the Client ID and Client Secret shown in the dialog.

Step 3: Enable Sign in with Google

In your WordPress admin, under Sign-in with Google, check Enable login with Google.

Step 4: Enter your Client ID and Client Secret

  • Paste your Client ID into the Client ID field.
  • Paste your Client Secret into the Client Secret field.
customer accounts for woocommerce sign in with google enable

Step 5: Configure Registration (optional)

Under Registration, check Create a new customer account if it does not exist already if you want new users to be automatically registered when signing in with Google for the first time.

This only creates accounts if Account creation is also enabled under WooCommerce > Settings > Accounts & Privacy.

Step 6: Click Save changes

Click Save changes to apply your settings.

Important notes

Warning: If you change the Authentication endpoint in Customizing Account & Checkout Endpoints, your redirect URIs will change. You must update them in the Google Cloud Console or the login flow will break.

The Google consent screen shows your app name and domain to the user. It is recommended to configure your app’s branding in the Google Auth Platform console to improve trust with your users.

Plugin details

Buy now

Version

2.1.0

Updated

May 6, 2026

Languages

English

Developer

Cartsera
Requires: WooCommerce 7.8+, PHP 7.4+, and WordPress 6.2+.
Compatible up to: WooCommerce 10.7, PHP 8.3, and WordPress 6.9.
Compatible with WooCommerce HPOS.