-
Notifications
You must be signed in to change notification settings - Fork 68
(DOCSP-29016): Added SEO guidelines. #144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
63ba6b4
(DOCSP-29016): Added SEO guidelines.
corryroot 9f03e26
(DOCSP-29016): Fixed build issue.
corryroot 57fab45
(DOCSP-29016): Incorporated Chris's feedback.
corryroot 30a5881
(DOCSP-29016): Added CTA examples.
corryroot ace0961
(DOCSP-29016): Incorporated Jeff's feedback.
corryroot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
.. _seo-guidelines: | ||
|
||
===================================== | ||
Search Engine Optimization Guidelines | ||
===================================== | ||
|
||
Search Engine Optimization (SEO) considers the actual terms that users | ||
enter into search engines (keywords) and employs best practices to | ||
improve traffic to web pages from search engines. The following | ||
guidance should help you optimize your documentation pages for search. | ||
|
||
Titles | ||
------ | ||
|
||
Use the following SEO best practices for page and subsection titles: | ||
|
||
- Use a maximum of 70 characters. | ||
|
||
- Include target keywords (the actual terms that users | ||
enter into search engines to reach your page). | ||
|
||
- Avoid excessive or irrelevant words (keyword stuffing). | ||
|
||
- Strive for unique page titles. Identical titles, even between | ||
documentation sets, might compete in search results. | ||
|
||
To learn more, see :ref:`titles-and-headings`. | ||
|
||
Alternative Text | ||
---------------- | ||
|
||
Screen readers read alternative text for images aloud so that users can | ||
better understand an image. Specify alternative text according to the | ||
following SEO best practices: | ||
|
||
- Use a maximum of 125 characters per image. | ||
|
||
- Describe the image with sufficient detail to understand what it shows. | ||
|
||
- If they apply to the image, include keywords | ||
(the actual terms that users enter into search engines). | ||
|
||
To learn more, see :ref:`write-for-accessibility`. | ||
|
||
Keywords | ||
-------- | ||
|
||
You can add the actual terms that users enter into search engines | ||
(keywords) to your page to improve its SEO. Add keywords according to | ||
the following best practices: | ||
|
||
- Take the most concise form of the information that the page conveys | ||
and make that the target keyword. | ||
Comment on lines
+52
to
+53
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [suggestion, non-blocking] Would it be possible to include an example of this practice? For instance, I would find it helpful if we provided a link to some docs page and highlighted what the target keyword would be for that page. |
||
|
||
.. example:: | ||
|
||
The target keyword for the `Getting Started with MongoDB Atlas | ||
<https://learn.mongodb.com/courses/getting-started-with-mongodb-atlas>`_ University page is | ||
``mongodb atlas course``. | ||
|
||
- Don't add keywords so broad that they compete with the product page. | ||
|
||
- Don't add keywords so specific that we miss the actual behavior of | ||
our searchers. For example, add “mongodb atlas course” instead of | ||
“Getting Started with Atlas Data Platform”. | ||
|
||
While keyword tags are available, some search engines might ignore | ||
these tags. To learn more, see :ref:`metadata`. | ||
|
||
Descriptions | ||
------------ | ||
|
||
The description is a snippet that appears under the link in the search | ||
results, which can impact SEO. Write these descriptions according to | ||
the following best practices: | ||
|
||
- Use a concise description of the page content that is enticing, if | ||
possible. | ||
|
||
- Emphasize the “why” for using the page. | ||
|
||
- Use a maximum of 155 characters. | ||
|
||
- Include target keywords and a call to action (CTA) that prompts the | ||
user to complete their desired task. | ||
|
||
.. example:: | ||
|
||
The following examples use a CTA in the description meta tag: | ||
|
||
.. code-block:: rst | ||
|
||
.. meta:: | ||
:description: Use a language analyzer to create search keywords in your Atlas Search index that are optimized for a particular natural language. | ||
|
||
.. code-block:: rst | ||
|
||
.. meta:: | ||
:description: Use the character filters in an Atlas Search custom analyzer to examine text one character at a time and perform filtering operations. | ||
|
||
- Use unique descriptions for every page. | ||
|
||
To learn more, see :ref:`metadata`. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion:
I think it might be better to suggest that keywords may not help SEO nor be used to match up with search terms, at least with Google. See
https://developers.google.com/search/docs/crawling-indexing/special-tags#unsupported
for more info.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, there are two parts to these recommendations. We should use the language that users search for in our content. But, search engines might not account for the keyword tags that we use.