User:NotAracham/WikiSEO - Improving Search Ranking

There are three perennial questions new administrators ask regarding search results: All of these questions can be answered through the same extension: WikiSEO!
 * How can I get my wiki to show up on Google/Bing/Yandex?
 * How can I see how many folks are visiting my site?
 * How can I see how my created content is doing?

This guide will walk new administrators through the process of connecting their wikis to other analytics tools and submitting their sitemaps to Google for faster indexing and improved search results.

Enabling The Extension
While most new wikis now have the extension enabled by default, the administrator should confirm that the extension is enabled by:
 * Navigating to Administration > Manage this Wiki's Extensions > Parser Hooks (or Special:ManageWiki/extensions#mw-section-parserhooks on your wiki)
 * Scrolling to and ensuring WikiSEO is active, otherwise clicking the checkbox to enable it and then clicking Save.
 * Clicking the "Manage available configuration options for this extension" for the WikiSEO entry or navigating to Administration > Manage this Wiki's additional settings > SEO to ensure that the extension is enabled and configurable.

Once you are able to navigate to the configurations page, you may notice that there are several site verification key fieldss that are currently blank. These fields are how we will be connecting to different search providers in later steps.

There are also some additional options for defining text/images for link previews in search results. While these can be beneficial to enable/disable, we will not be modifying them in the scope of this guide. Please reach out via the Community noticeboard or Miraheze's official Discord server for additional help if needed.

Setting up Google Search Console
If this is your first time using Google Search Console, start by navigating to https://search.google.com/search-console/ and follow the below steps:


 * If you are not currently logged in to your Google account, Click 'Start Now' and log in to your account (or create an account if you do not have one)
 * When prompted to choose a property type, put your wiki URL in the text box of the URL Prefix option, then click Continue
 * A message will flash about attempting to verify your property, after which you'll be taken to a screen outlining your options for verifying the property. In this case, we will need to use the HTML tag option.
 * Click to expand the HTML Tag section, click Copy next to the long string starting with "<meta name=...", then click Done.
 * Paste the context into the text editor of your choice, then copy the long string of characters found between content="...", excluding the quote-marks.
 * Navigate back to your wiki, specifically the SEO settings page, and paste the string of characters in the Google Site Verification Key (WikiSEO) text field
 * Save changes, then wait 10-15 minutes as the new tag gets added to all pages on your wiki
 * (Optional) Verify the code was added correctly by pressing F12 on your wiki's main page, expanding the ... tags, and looking for the  tag
 * Return to Google Search Console and refresh the page
 * Click "Already started? finish verification" and then click your wiki's URL you entered earlier.
 * After the verification window re-opens, expand the HTML tag section and click 'Verify'

If everything has gone correctly, your property should now be verified and Google will start indexing your pages and collecting data on your site's visitors.

If you receive an error message but are confident your verification tag is present, not to worry! Try to verify your property again after 30-40 minutes, it can sometimes take a while for Google to start finding the tag.

Example Setup Images

Exploring Google Search Console
(to be added)

Submitting Sitemaps via Google Search Console
After your wiki has existed for at least a week, a new option is now available - Sitemaps!

Sitemap files are a representation of the pages on your wiki and the links between them, though they don't contain actual page contents. Submitting these files to a search engine greatly improves the speed at which Google's services can map your site, improving your site's ranking in Google's search results.

To confirm if your sitemaps have generated, navigate to https:// .miraheze.org/sitemap.xml, replacing with your unique subdomain.

If the sitemap has generated successfully, this URL should load a page like the following, listing out sub-sitemaps for each numbered namespace (main, talk, templates, etc.):

If the page loads as above, you can now submit your sitemap to Google for indexing through the following steps:


 * Navigate back to the Google Search Console
 * Under the Indexing category in the sidebar, click Sitemaps
 * In the "Add a New Sitemap" box, enter sitemap.xml in the free-text area after your verified wiki URL
 * Click Submit

After a brief "submitting sitemap" pop-up, the sitemap should now appear in the section below, with a status of 'in progress' or similar.

It may take several days for Google to fully parse through the sitemap, (and Google may fail to locate it on the first few attempts,) but the Status field for this record will eventually change to Success and list the count of discovered URLS.

Once a link to the sitemap is established, there won't be a need to reddo these steps, Google will automatically re-query sitemaps at regular intervals to pull any newly-added pages.

NOTE: Miraheze Wiki Sitemaps are automatically refreshed weekly on Saturdays, so pages created between refreshes will be included in sitemaps after the next weekly refresh completes