To verify that you’re the owner of a site, Google requests that you add a specific meta tag to your site or deploy a file with a specific name to your web server's root directory. Though this topic refers specifically to Google, other search engines have similar procedures.
To add the meta tag to your site, you must create a custom site preference for
the Google tag and then include the tag in your storefront. Google uses the name
google-site-verification for the meta-tag used for site
verification. The htmlhead.isml template in SiteGenesis uses this name
for Google site verification with the storefront.
Note pt_storefront.isml is located in the SiteGenesis Storefront Core cartridge,
/templates/default/content/home.
-
To render your generated Google meta tag on the
pt_storefront-templatein the SiteGenesis application, click App Launcher
, and then select .
-
On the Custom Site Preferences page, enter the
GoogleVerificationTag - Content Attribute, which is an attribute of theSitePreferencessystem object. -
Make sure that the following code exists in your
htmlhead.ismltemplate:<!--- Insert meta tag for the "Google-Verification" feature to verify that you are the owner of this site. ---> <isif condition="${'GoogleVerificationTag' in dw.system.Site.current.preferences.custom && dw.system.Site.current.preferences.custom.GoogleVerificationTag!=''}”> <meta name="verify-v1" content="<isprint value="${dw.system.Site.current.preferences.custom.GoogleVerificationTag}"/> "/> </isif>