How to set up Google login in Shopify: preparing Google Cloud and setup steps

Illustration of the steps to set up Google login in Shopify and the Google Cloud Console

In short: To add Google login to Shopify customer accounts, start the connection to Google from Settings > Customer accounts in the Shopify admin. Then create an app and set up an OAuth client in the Google Cloud Console, and enter the client ID and client secret it issues in the Shopify admin. Once you publish the app in the Google Cloud Console, customers can sign in with their Google account.

When you finish these steps, an option to sign in with Google is added to your store's Sign-in page. To use Google login alongside a sign-up form, see How to use a sign-up form alongside Shop, Google, and Facebook login.

Key points

  • You start enabling Google login from the Authentication section in Settings > Customer accounts in the Shopify admin
  • During setup, you switch between browser tabs for the Shopify admin and the Google Cloud Console, copying and pasting values such as the OAuth client ID
  • In the Google Cloud Console, you configure the consent screen, create an OAuth client for a web application, and publish the app
  • Even with Google login, the only customer information synced to Shopify is the email address
  • Stores that connect their own identity provider to customer accounts should contact that external identity provider before connecting social login

Is there anything to check before setting up Google login?

To connect Google to customer accounts, you need a Google Cloud developer account. You'll switch between tabs for the Google Cloud Console and the Shopify admin during setup, so keep both open.

You can find out how to use Google Cloud in Google's help documentation.

Source: Shopify Help Center: "Connecting Google to customer accounts"

Where do you start setting up Google login?

In the Shopify admin, go to Settings > Customer accounts and click Manage in the Authentication section. Click Connect next to Google, and the Sign in with Google page opens.

This page shows the values you'll paste into the Google Cloud Console, so keep it open in a separate tab.

Source: Shopify Help Center: "Connecting Google to customer accounts"

How do you create an app and configure the consent screen in the Google Cloud Console?

In another tab, sign in to the Google Cloud Console and select an existing project or create a new one. Go to Credentials under APIs & Services, and click Get started under Configure consent screen.

Enter an app name that customers will recognize, such as the name of your online store, and an email address for user support. Then select External in the Audience section and continue. Enter a contact email address for Google to reach you, agree to the Google API Services: User Data Policy, click Continue, and then click Create. The consent screen is what customers see when they allow the connection with their Google account, and the app name and support contact you entered are shown to customers on it. Finally, click Branding and add links to your home page, privacy policy, and terms of service in the App domain section.

Source: Shopify Help Center: "Connecting Google to customer accounts"

How do you create an OAuth client in the Google Cloud Console?

In your project's app, click Overview, and then click Create OAuth client in the Metrics section. Select Web application as the Application type and enter a name.

In the Authorized JavaScript origins section, click + Add URI and paste the value shown on the Sign in with Google page in the Shopify admin. If there are several values, repeat the same steps for each. Paste the values from the Shopify admin into the Authorized redirect URIs section the same way. When you're done, click Create. Keep the OAuth client created dialog that appears open until you copy the values in the next section.

Source: Shopify Help Center: "Connecting Google to customer accounts"

How do you enter the client ID and client secret in the Shopify admin?

From the OAuth client created dialog that appears after you click Create, copy the client ID and paste it into the Credentials section of the Sign in with Google page in the Shopify admin.

Copy the client secret from the same dialog and paste it into the same Credentials section. Click Save in the Shopify admin to register the client ID and client secret.

Source: Shopify Help Center: "Connecting Google to customer accounts"

How do you publish the app you set up?

In your project's app in the Google Cloud Console, click Audience, and then click Publish app. In the Shopify Help Center steps, publishing this app is the last step in setting up Google login.

Source: Shopify Help Center: "Connecting Google to customer accounts"

Which customer information is synced when you enable Google login?

Even when customers use Google login, the only customer data synced to Shopify is the email address. Your store can enable several social logins at the same time, such as Google login and Facebook login.

For ways to use the birthdays, addresses, and consent you collect with a sign-up form, see 7 ways to use birthdays, addresses, and consent collected at sign-up (Shopify new customer accounts).

Source: Shopify Help Center: "Social sign-in for customer accounts"

Can stores that use their own identity provider set this up?

If your store connects its own identity provider to customer accounts and you also want to connect social login, contact the external identity provider. Before you start setup, check whether you can add Google login.

Your own identity provider is a way to connect your store's own login authentication to customer accounts.

Source: Shopify Help Center: "Social sign-in for customer accounts"

After setup, how do you check that sign-in with Google works?

Open the customer accounts URL shown in Settings > Customer accounts in the Shopify admin in a separate tab, and check that you can sign in with Google using a test customer account.

The Shopify Help Center recommends testing every sign-in method you offer this way.

Source: Shopify Help Center: "Upgrading to customer accounts from legacy customer accounts"

The order of the setup steps

In the Shopify Help Center steps, you set up Google login by working through the following tasks in order. During setup, you switch between tabs for the Google Cloud Console and the Shopify admin, copying and pasting values.

  1. Prepare a Google Cloud developer account and open both the Google Cloud Console and the Shopify admin
  2. In the Shopify admin, click Manage in the Authentication section of Settings > Customer accounts, and open the Sign in with Google page by clicking Connect next to Google
  3. Open the Google Cloud Console in another tab and select a project or create a new one
  4. Configure the consent screen under Credentials in APIs & Services, enter the app name, support email address, and contact email address, and click Create
  5. In Branding, add links to your home page, privacy policy, and terms of service in the App domain section
  6. From your project's Overview, click Create OAuth client, select Web application as the Application type, and enter a name
  7. Paste the values from the Sign in with Google page in the Shopify admin into Authorized JavaScript origins and Authorized redirect URIs, and click Create
  8. Paste the client ID and client secret that appear into the Credentials section in the Shopify admin, and click Save
  9. In the Google Cloud Console, go to Audience and click Publish app

Source: Shopify Help Center: "Connecting Google to customer accounts"

Related articles

Frequently asked questions

Q. Where do you start setting up Google login?A. In the Shopify admin, click Manage in the Authentication section of Settings > Customer accounts, then click Connect next to Google to open the Sign in with Google page and start setup.
Q. What kind of OAuth client do you create in the Google Cloud Console?A. Create an OAuth client with Web application selected as the Application type, and paste the values from the Shopify admin into Authorized JavaScript origins and Authorized redirect URIs.
Q. Which customer information is synced when you enable Google login?A. The only customer data synced to Shopify is the email address. You can also enable several social logins at the same time, such as Google login and Facebook login.
Q. Can stores that use their own identity provider set this up?A. If your store connects its own identity provider to customer accounts and you also want to connect social login, contact the external identity provider. Before you start setup, check whether you can add Google login.

Try Howdy free for 14 days

Once you enable Google login, customers can sign in to your store with their Google account. Our dedicated team at Howdy creates your customer metafields, sets up your sign-up form fields, and places blocks on your profile page for free.

Start your 14-day free trial on the Shopify App Store

Back to Blog

Try Howdy free for 14 days

Our dedicated team handles the initial setup for free. Questions? Reach us through our contact form.