I cannot verify Google Webmaster Tools with my forum

I have Xenforo 1.1 installed on my forum at www.memeideas.com, and I also have Xenporta installed as the portal page.

I have my Google Analytics ID added to the Xenforo setup options, and that seems to work, as my Analytics page is reporting traffic to my site. However, when I try to verify that I am the owner of my site by telling the Webmaster Tools to verify my site by using the asynchronous snippet from Analytics, it keeps telling me that verification has failed.

The google analytics template for my page reads as follows:

<xen:if is="{$xenOptions.googleAnalyticsWebPropertyId}"><script>

var _gaq = [['_setAccount', '{$xenOptions.googleAnalyticsWebPropertyId}'], ['_trackPageview']];
!function(d, t)
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.async = true;
g.src = ('https:' == d.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
s.parentNode.insertBefore(g, s);
(document, 'script');

</script><xen:comment><!--Adapted from http://mathiasbynens.be/notes/async-analytics-snippet--></xen:comment></xen:if>
Can anyone tell me what the problem is? I have seen from another thread that this code does not match the code provided by Google for Analytics setup, but it seems to be working on my Analytics page, and as you can see above, it appears that the asynchronous snippet is turned on.

One thing I am wondering is if Xenporta being installed as the home page of my site is having something to do with it, but like I said previously, it seems like Analytics itself is working fine.



Well-known member
Use the file method to verify your site. Much easier. Google will give you the name that you should give the file "BlahBlahBlah" and then you simply create a (empty) file "BlahBlahBlah.html" with that name and upload it to your site. Then complete the verification process.

(from Google)

Verification: HTML file
To verify your site by uploading an HTML file:
  1. On the Webmaster Tools Home page, click Verify this site next to the site you want.
  2. In the Choose verification method list, select Upload an HTML file, and follow the steps on your screen.
  3. Upload the file to your webserver to the location we specify. Generally, this is the root folder for your site. Note: Don't make any changes to name or content of the file.
  4. Confirm the successful upload by clicking the link provided.
  5. Once you have uploaded the file and can open it, click Verify. We will verify that the file exists in the specified location. If we can't access the file, we'll give you information about the error we encountered. More information about HTML file verification errors. Once this problem is resolved, try to verify your site again. Don't delete the file from your server, as this will cause your site to become unverified.