Checkmark

Thank you for your feedback

Add Google sign-in to customer registration

Learn how to enable buyers to log into your store using their Google account.

Article ID: SLN26127

Important: Customer Registration is not supported in Microsoft-based browsers (such as Edge) released before April, 2019. It is also not currently supported on mobile devices.

Google project and client ID steps

You'll need a Google project and client ID before you add this feature to your store. Here's how to get those.

Create a Google project

 Before you start - You must have a Google account to create a Google project.

  1. Sign in to Google's Developers Console with your Google account.
  2. Click Create Project.
    Create Project.
  3. Enter a project name then click Create.
    Enter a Project Name and click Create.

Create a client ID

After you create a Google project, you'll need a client ID and client secret for this project to turn on Google sign-in. Here's how to get them.

  1. Click My Project then your project name to go to the project dashboard.
    Click My Project.
  2. In the Select a project dialog, click your Project Name and ID then click OPEN.
    The Select a project dialog.
  3. Click the hamburger menu on the top-left.
    Click the hamburger menu.
  4. Mouse over APIs & Services, then select Credentials.
    The APIs & Services and Credentials options.
  5. Click Create Credentials and select OAuth client ID.
    Create Credentials and select 0Auth client ID.
  6. On the far-right, click Configure consent screen
    Click Configure consent screen.
  7. Enter an Application name and confirm the Support email address.
    Add your required consent screen info.
  8. Enter your domain name in the Authorized domains field.
    The Authorized domains field.
  9. Click the Save button at the bottom.
    The Save button.
  10. Choose Web application.
    Choose Web application.
  11. Add these authorized URIs for your store.
    • Authorized JavaScript origins:
      • http://[your store's domain] (like http://widgetdesigns.com)
      • http://www.[your store's domain] (like http://www.widgetdesigns.com)
      • https://[your store's domain] (like https://widgetdesigns.com)
      • https://www.[your store's domain] (like https://www.widgetdesigns.com)
      Note: After entering the first URL, tap your Enter or Return key. This will add an additional Authorized JavaScript origins field. Repeat until you're able to add all four URLs.
    • Authorized redirect URIs: Note: You can find your store ID on the Store Account Info page.
      Add authorized URLs for your store.
      Note: The redirect URIs must match the 301 redirect if used. If unsure, add authorized URIs for both the www address and one without www.
      • http://[your store's domain]/ystore/openid/FinishAuth?sid=[your store ID]&opp=g (like http://widgetdesigns.com/ystore/openid/FinishAuth?sid=yhst-1234567&opp=g)
      • http://www.[your store's domain]/ystore/openid/FinishAuth?sid=[your store ID]&opp=g (like http://www.widgetdesigns.com/ystore/openid/FinishAuth?sid=yhst-1234567&opp=g)
      • https://[your store's domain]/ystore/openid/FinishAuth?sid=[your store ID]&opp=g (like https://widgetdesigns.com/ystore/openid/FinishAuth?sid=yhst-1234567&opp=g)
      • https://www.[your store's domain]/ystore/openid/FinishAuth?sid=[your store ID]&opp=g (like https://www.widgetdesigns.com/ystore/openid/FinishAuth?sid=yhst-1234567&opp=g)
      Note: After entering the first URL, tap your Enter or Return key. This will add an additional Authorized redirect URIs field. Repeat until you're able to add all four URLs.
  12. Click the Create button.
    Click Create.

Once created, the OAuth dialog will pop up. Copy your client ID and client secret one at a time by clicking the copy icons on the right. For now, paste them to Notepad or another text editor. After copying and pasting them, click OK.
Here is your client ID and client secret.

Turn on Google sign-in

Once you have your Google project client ID and client secret, add them to Checkout & Registration Manager to turn on Google sign-in.

  1. Sign in to your My Services page.
  2. Click the Store link.
    The Store link is under Control Panels.
  3. Go to Checkout & Registration Manager.
    The Checkout & Registration Manager link is under Order Settings.
  4. Go to Global Settings.
    The Global Settings link.
  5. Click the Customer Registration tab.
    Go to Customer Registration.
  6. Next to Allow Google ID, choose Customers can register using their Google ID and copy and paste your client ID and client secret from the text editor.
    Allow Google ID.
  7. Click the Save button.
    Click Save.
  8. Return to Store Manager and publish your Order Settings.
    The Publish Order Settings link.
  9. Test Google registration and sign-in on your live store.
    Sign in to test the Google registration.