Search engine optimization (SEO) can be integrated within your CMS, letting you check and audit content as you work and before it gets published. This blog post shows how the SEO Module in Magnolia CMS does that.
Search Engine Optimization (SEO) is essential for a website to score a higher ranking in search engines and enhance the volume and quality of traffic directed to the website.
SEO is really about two things:
Search engines look in your pages for some basics things: title, meta keywords, meta description and canonical URL. These basics can have a big impact on your page ranking, especially when they aren’t there.
These basics can also help or hurt your page’s ranking relative to other pages. Do your meta keywords distinguish your pages from your competitors? Is your meta description succinct and helpful? These are more difficult to check and generally only done when your content has been published and is visible to search engines.
When doing SEO, you want:
The Magnolia SEO Module can help you with both: checking your content to make sure the basics are right and also checking how your content stacks up in search engines, all within Magnolia.
Magnolia Extensions is a new initiative for the development of Magnolia modules. Inspired from client requests, demos, support and interest, the Magnolia team has created various modules as side projects.
Like all other Magnolia Extensions, the SEO module is available for free to Magnolia On-Premises Pro license holders.
While you are free and encouraged to use these modules and provide feedback, it is important to be aware that these modules are not officially part of the product and therefore do not go through the same integration testing process. Also, at this time, support is limited. To learn more about the extensions that we have, please visit Magnolia Extensions.
1. Installing the module
Maven is the easiest way to install the modules. Simply add the following dependencies to your bundle:
2. Accessing the content apps
The module contains a variety of tools that can be configured to test different aspects of your pages and/or content.
The SEO module comes with two apps:
SEO app - Checks webpages for SEO best practices, internationalization support and/or HTML validation
Style Check app - Checks for grammar and spelling
Both apps are light apps, which means that they have been defined using Magnolia’s Light Development configuration. The SEO and Style Check apps also consist of a browser sub-app where you can pick pages or stories to check and a details sub-app where you can view the results.
The module contains different “auditors” that can be run to validate content. An auditor performs one check of your content – whether a page, or a story, or some other type of content – and returns some results.
Some examples of auditors include: spell-check a story, check that a page’s HTML is syntactically correct or check that a page has a meta description defined. The results depend on what the auditor found: a list of misspelled words, all the instances of malformed HTML found or if the page has a meta description.
You can run auditors with standard Magnolia actions in the two SEO apps (the SEO app or the Style app), or you can add actions to run auditors to customize other Magnolia apps.
There are two types of actions available in the SEO module:
Dynamic actions and canned actions are plain old Magnolia actions; you can add them to any app and can tweak and tune them to meet your needs.
For content authors and editors, working with the SEO app is simple.
Let’s check a page for the SEO basics:
Each of these checks has a separate auditor to perform the check.
All you have to do is select the page you want to check and select the “Check page” action from the workbench. A dialog will open showing you the available audits to choose from.
Just pick the audits you want to check and run them!
Here are results of your audit:
Each auditor has returned its results – whether it passed or failed, and if it failed, the auditor grades the failure as either an error that must be fixed, a warning that should be fixed or a note that can be fixed. The auditor results help you identify what is important to fix and what is less important.
You get a summary of your audit – how many errors, warnings and notes were found – and an expandable section for the detailed results from each auditor. When possible, the section will have a link or button that will take you to the place to correct the problem. For example, if your page is missing a meta description, there is a button to open the Pages app and open the audited page, where you can correct the meta description in the page properties.
So did our page pass the basics?
The title passed muster, but the meta description and meta keywords properties are missing, and so can’t be validated and don’t appear in the page. We get a handy button that can take you directly from the SEO app to the Pages app where you can add the missing content.
There are plenty of SEO tools and services out there that help you in comparing your content to similar pages: assessing your meta keywords, checking your page ranking and page authority, or spelling and grammar checking for your text.
You can plug those services into Magnolia with the SEO module and do those sophisticated content checks within Magnolia.
The SEO module gives you three examples of integrating an external service to do an audit:
With these auditors, backed by their external services, you can integrate their sophisticated checks into Magnolia and use them when you are developing and refining your content.
There is much more you can do with the SEO module:
If the SEO module doesn’t do what you need, let us know!