Upload a Google site ownership verification file

Google provides a number of methods for verifying ownership of your sites. Commerce supports the HTML file upload method.

Complete the following steps to upload a Google site ownership verification file:
  1. Create a Google site ownership verification HTML file as described on this page:
    https://support.google.com/webmasters/answer/35179?hl=en#verification_details

    The name of the file differs from site to site. The naming convention is google<code>.html, where <code> is a sequence of letters and numbers. For example, google2827eae44ccfac6b.html.

  2. Depending on how your site URL is specified when you create the file, you may need to use the createFolder endpoint to create a subfolder of /thirdparty. For example, if your site is specified as www.example.com, the file should be uploaded to /thirdparty, so you do not need a subfolder; if your site is specified as www.example.com/es, the file should be uploaded to /thirdparty/es, so you need to create a subfolder named /es.
  3. Use the startFileUpload endpoint to generate a token for uploading the file to the appropriate folder.
  4. Use the doFileSegmentUpload endpoint to upload the file.
  5. Publish your changes to the production environment.
  6. View the file in your browser to verify that it was uploaded correctly. For example, if your site is www.example.com/es, and the file you uploaded is named google2827eae44ccfac6b.html, the URL for the file is:
    http://www.example.com/es/google2827eae44ccfac6b