For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dev Portal
DocsAPI ReferenceLearnCommunityChangelog
DocsAPI ReferenceLearnCommunityChangelog
  • Overview
    • Quick Start
    • Sandboxes
    • Tools & SDKs
    • Support
  • Docs
      • Getting Started
        • Overview
          • Page Builder
          • Third-party Widgets
          • reCAPTCHA Support
        • B2B Edition for Stencil
    • Archive
    • Closed Beta Programs
Dev Portal
LogoLogo
On this page
  • How to Upgrade
  • Resources
  • Related Articles
DocsStorefrontStencilAdding Page Content

Adding reCAPTCHA V2

Was this page helpful?
Previous

Third-party Widgets

Next

B2B Edition for Stencil Themes (Legacy Experience)

Built with

reCAPTCHA v1 was deprecated as of March 31, 2018. To deter spam submission through storefront forms, BigCommerce now supports Google reCAPTCHA v2 challenges, to distinguish human customers/visitors from automated bots. We recommend that all storefront themes take advantage of this upgraded bot detection.

If you have based your theme on a theme/version that already incorporates reCAPTCHA v2, you do not need to take any further action. Compliant themes/versions currently are listed in Updating Themes with reCAPTCHA V2 (Knowledge Base).

How to Upgrade

To add reCAPTCHA v2 support to a theme, update script references in three template files. You can find them in the following subdirectories of the {theme-name}/templates/ directory:

  • pages/auth/create-account.html
  • components/products/modals/writeReview.html
  • components/pages/contact-us-form.html

See PR #951 in the Cornerstone GitHub Repository to see differentials for each file that needs to be modified.

It is possible to add reCaptcha to the Login template. See the Forms object for details.

Resources

Related Articles

  • Enabling ReCAPTCHA