Connect Google to customer accounts

To connect Google to customer accounts, you need to complete the following tasks in order. During setup, you need to switch between browser tabs for your Google Cloud Console and your Shopify admin. You need to have a Google Cloud developer account set up to connect Google to customer accounts. To learn more about Google Cloud, refer to Google's help documentation.

Step 1: Open the Sign in with Google page in your Shopify admin

  1. From your Shopify admin, go to Settings > Customer accounts.

  2. In the Authentication section, click Manage.

  3. Click Connect next to Google to open the Sign in with Google page.

This page contains information that you'll be expected to copy and paste when configuring your Google app's OAuth client, so keep this page open in a separate browser tab.

Step 2: Create an app in your Google Cloud Console

  1. In another browser tab, sign in to your Google Cloud Console.
  2. Select an existing project or create a new one. You'll be redirected to the project's dashboard.
  3. Click Menu, and then click APIs & Services > Credentials.
  4. Click Configure consent screen > Get started.
  5. Complete your project OAuth configuration details:
    1. Give your app a name that a customer would recognize, such as the name of your online store. Provide your email for technical support, and then click Next.
    2. In the Audience section, select External, and then click Next.
    3. Provide a contact email for any notifications that Google might have about the project, and then click Next.
    4. Agree to Google's API Services User Data Policy, and then click Continue.
    5. Click Create.
  6. Configure your app's policy information that displays to customers on the consent screen:
    1. Click Branding.
    2. In the App domain section, include a link to your home page, a link to your public privacy policy, and a link to your terms of service. Learn more about creating store policies.

Step 3: Configure your app's OAuth client in your Google Cloud Console

This step requires you to copy details from the Setup instructions section of the Sign in with Google page of your Shopify admin and paste them into the appropriate fields in your Google Cloud Console tab.

  1. In your project's app in Google Cloud Console, click Overview.
  2. In the Metrics section, click Create OAuth client.
  3. Configure the OAuth client details:
    1. From the Application type drop-down menu, select Web application.
    2. In the Name field, enter a name.
  4. Configure the Authorized Javascript origins for your app:
    1. In Authorized Javascript origins section, click + Add URI.
    2. On the Sign in with Google page in your Shopify admin, copy the Authorized Javascript origins value.
    3. In your Google Cloud Console, paste the value in the URIs 1 field.
    4. If you have more than one URI in the Authorized Javascript section of your Shopify admin, then repeat these steps for the additional URI fields.
  5. Configure the Authorized redirect URIs for your app:
    1. In your Google Cloud Console, in the Authorized redirect URIs section, click + Add URI.
    2. On the Sign in with Google page in your Shopify admin, copy the Authorized redirect URI value.
    3. In your Google Cloud Console, paste the value in the URIs 1 field.
    4. If you have more than one URI in the Authorized redirect URI section of your Shopify admin, then repeat these steps for the additional URI fields.
  6. In your Google Cloud Console, click Create.

Keep the OAuth client created dialog that's displayed open for Step 4: Configure the credentials in your Shopify admin, as you're required to copy and paste information from the Google Cloud Console into your Shopify admin.

Step 4: Configure the credentials in your Shopify admin

  1. From the OAuth client created dialog in your Google Cloud Console, copy the Client ID.
  2. On the Sign in with Google page of your Shopify admin, in the Credentials section, paste the Client ID.
  3. From the OAuth client created dialog in your Google Cloud Console, copy the Client secret.
  4. On the Sign in with Google page of your Shopify admin in the Credentials section, paste the Client secret.
  5. On the Sign in with Google page of your Shopify admin, click Save.

Step 5: Publish your app in your Google Cloud Console

  1. In your project's app in Google Cloud Console, click Audience.
  2. Click Publish app.