Google provides a number of methods for verifying site ownership when searching your site. Commerce Cloud supports the HTML file upload method, which involves the following steps:
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
.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 aswww.example.com
, the file should be uploaded to/thirdparty
, so you do not need a subfolder; if your site is specified aswww.example.com/es
, the file should be uploaded to/thirdparty/es
, so you need to create a subfolder named/es
.Use the
startFileUpload
endpoint to generate a token for uploading the file to the appropriate folder.Use the
doFileSegmentUpload
endpoint to upload the file.Publish your changes to the production environment.
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 namedgoogle2827eae44ccfac6b.html
, the URL for the file is:http://www.example.com/es/google2827eae44ccfac6b