Issue :
Sometimes it is an issue that we can’t verify the authenticity of Force.com Site because Google webmaster needs verification tag in head section and Salesforce doesn’t provide that by default.
Solution:
To verify a Force.com Site we need to remove existing html tag using applyHtmlTag=false and applyBodyTag=false. After that we need to define our own custom <head> tag as shown below.
<apex:page applyHtmlTag="false" applyBodyTag="false" showHeader="false"> <html> <head> <meta name="google-site-verification" content="Codehere" /> </head> <body> <!-- Page code --> </body> </html> </apex:page>
Happy Coding!!
Comments