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, you'll now have a new option available to you - sitemaps! These files are a representation of the pages on your site and the links between them, though don't contain extensive page content themselves. When fed into a search engine, it greatly improves the speed at which Google's search service can map your site, thus improving its ranking in Google's search results.

To confirm if your sitemaps have generated, navigate to https:// .miraheze.org/sitemap.php, replacing the portion with your wiki's unique subdomain. If the sitemap has generated successfully, you should be treated to a page like the following, listing out sub-maps for each numbered namespace (main, talk, templates, etc.):

(to be continued) NOTE: Wiki Sitemaps are refreshed weekly on Saturdays, so pages created after the last time the script was run will only start showing up in the sitemap once the script generating sitemaps next time it runs