Extension:GoogleSiteVerification

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
GoogleSiteVerification
Release status: stable
Green check.svg
Implementation Hook
Description Adds Google Site Verification meta tag to pages
Author(s) Adam Shorland (Addshoretalk)
Latest version 0.1.1 (2014-01-20)
MediaWiki 1.19+
PHP 5.3 or later
Database changes No
License GNU General Public License 2.0 or later
Download
README
Parameters
  • $wgGoogleVerificationCode
Hooks used
BeforePageDisplay
Translate the GoogleSiteVerification extension if it is available at translatewiki.net
Check usage and version matrix.

GoogleSiteVerification inserts the Google Site Verification meta tag into pages.

Installation[edit]

  • Download and place the file(s) in a directory called GoogleSiteVerification in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/GoogleSiteVerification/GoogleSiteVerification.php";
    $wgGoogleVerificationCode = 'KwDrf1TIRRgNQxUF6Nv_PkcpM-gnVFFm28OOAWv2-oo'; // Replace the example code with your website's code!
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.