To verify that you are 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.
/templates/default/content/home
.To render your generated Google meta tag on the
pt_storefront-template
in the SiteGenesis application:
GoogleVerificationTag - Content Attribute
, which is an
attribute of the SitePreferences
system object.htmlhead.isml
template:
<!--- 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>