This module helps you improve your website's SEO by analyzing your content against best practices. It checks for things like keyword usage in titles, headings, and URLs, as well as the length of meta descriptions, heading structure, and image alt text. You can also input a specific keyword to see how well your content scores for it.
The SEO Analyzer module allows you to easily see which SEO improvements you can make to a node or canvas page. It aims to check your page content against SEO best practices and present you the results allowing you to make the necessary adjustments. You can enter a keyword or keyphrase and see how well your content SEO scores for that keyword.
Google search preview, and previews for sharing on WhatsApp, LinkedIn and Facebook are also automatically generated. In the case of for example a Commerce Product, if the correct product structured data is setup, you will also see a google shopping preview.
Where possible, there are buttons to directly take action, like edit the meta title and description, alter the alt texts of images found on the page etc.
Features
The current checks include:
- Do the meta title and description include your keyword?
- Is the keyword near the start of the title?
- Do the H1 and H2 headings include your keyword?
- Is the keyword used often enough in the content, without keyword stuffing?
- Is the keyword used in the first 100 words?
- Does the URL path include your keyword?
- Does an image alt text include your keyword?
- Does the page have a title of a good length?
- Does the page have one meta description of a good length?
- Is the heading structure correct (one H1, no empty headings, no skipped levels)?
- Does the page have enough content (no thin content)?
- Do all images have meaningful alt texts?
- Do images have a width and height (no layout shifts)?
- Do links have descriptive texts, and does the page have internal links?
- What is the ratio of text to HTML code?
- Does the page have Open Graph tags for social media?
- Does the page have valid structured data (schema.org)?
- Does the page return HTTP status 200?
- May search engines index the page (no noindex or nofollow)?
- Does robots.txt allow crawling the page, and does it reference the sitemap?
- Does the page have one correct, absolute canonical URL?
- Is the page listed in the XML sitemap?
- Are translations linked with hreflang, including x-default?
- Is the page language declared correctly?
- Is the page mobile friendly (viewport)?
- Is the page served over HTTPS?
- Are all resources loaded over HTTPS (no mixed content)?
- Does the URL redirect, or go through a redirect chain?
- How fast does the server respond?
- How large is the HTML document?
Post-Installation
After enabling the module, you need to be admin or have the access seo analyzer permission.
Then you will see a new node task link 'SEO Analyzer' (just like the 'Edit' or 'Translate' links). You will see the results there and on top of the page you can enter a keyword to check the content against for SEO.
Supporting this Module
This module used this github project as a starting point.
So many thanks to Grzegorz Karpiak (grgk) for the github code.
I had to make a lot of modifications to make it work, and made quite a lot of adjustments for being able to create the SEO analytics page that presents the results. I think it works well on its own at the moment, but could use your help to make improvements via issues, patches and MR's. For example:
- Make it work when there is no keyword at all: hide the entire 'Keyword analytics' section if there is no keyword given
- Improve design, UX, responsiveness
- Create a settings page for some hard coded values like ideal limits, when an item is 'orange' or 'red', disable some tests, ...
- Check and adjust the 'impact' values of all SEO tests against current SEO best practices. For example: code-to-text ratio is actually not that important at all
- A default drupal robots txt file should be 'green' instead of having a negative impact because some parts are blocked by it
- Sitemap check might be a problem because not evey site is gonna have a siemap with the exact name sitemap.xml. Either add possibility to overwrite sitemap in settings or disable the sitemap check completely
- Add more checks, for example more Lighthouse / PageSpeed like tests because site speed also have an SEO impact
Ask your assistant about SEO Analyzer
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.