DivaVocals / zen_MetaTagsImproved

1st version attempt at modernizing the current Zen Cart meta tagging functionality
GNU General Public License v2.0
0 stars 0 forks source link

zenMetaTagsImproved

Two meta tags search engine DO use for helping with matching search terms to matching content are Title, and Description. (https://support.google.com/webmasters/answer/79812)

The current meta tag capability in Zen Cart is really out of touch with modern search engine standards.. This module is the 1st version of an attempt at modernizing the current Zen Cart meta tagging functionality.

Zen Cart has admin functionality for editing the meta tags for categories and products, but not the rest of the site pages.. The rest of the site meta tags must be managed via the includes/languages/english/YOUR_TEMPLATE_NAME/meta_tags.php file.

Novice site owners should not have to have to learn how to edit PHP files just to update the site meta tags.

There is a need to add the functionality for managing page meta tags into the shop admin so that it can be managed there. Improvements to the existing meta tag functionality is needed as well because the current behavior doesn't match the search engine's current standards. (like the devaluation of keywords for example) The current way that title, keywords, and description tags are auto generated has the potential to HARM versus help current site owners.

Based on current browser standards, here's how title and descriptions should be managed on a site:
Description - Recommended Length
Meta descriptions can be any length, but search engines generally truncate snippets longer than 160 characters. It is best to keep meta descriptions between 150 and 160 characters.

Description - Not a Google Ranking Factor
Google announced in September of 2009 that neither meta descriptions nor meta keywords factor into Google's ranking algorithms for web search. Google uses meta descriptions to return results when searchers use advanced search operators to match meta tag content, as well as to pull preview snippets on search result pages, but it's important to note that meta descriptions do not to influence Google's ranking algorithms for normal web search.

Quotes Cut Off Descriptions
Any time quotes are used in a meta description, Google cuts off the description. To prevent meta descriptions from being cut off, it's best to remove all non-alphanumeric characters from meta descriptions. If quotation marks are important in your meta description, you can change them to single quotes rather than double quotes to prevent truncation.

Title - Optimal Format
Primary Keyword - Secondary Keyword | Brand Name

Title - Optimal Length for Search Engines
Google typically displays the first 50-60 characters of a title tag, or as many characters as will fit into a 512-pixel display. If you keep your titles under 55 characters, you can expect at least 95% of your titles to display properly. Keep in mind that search engines may choose to display a different title than what you provide in your HTML. Titles in search results may be rewritten to match your brand, the user query, or other considerations.

ALL meta tag functionality should include validation (preferably some kind of on-page validation) to ensure that the meta tags do not exceed search engine character or word limits as follows:

The validation functionality needs to be incorporated into the new admin meta tag management functionality as well as the existing category and product meta tag maintenance.

Taking a few cues from the popular WordPress plugin "Yoast SEO" by Joost de Valk and his team at Yoast, the "Meta Tags Updated" plugin for Zen Cart was developed based on the following requirements:

There are various elements that are required to meet the data-gathering aspects of the requirements:

Along with the data-gathering elements, the store-side meta-tag processing will be modified to use the following "rules" in meta-tag processing:

Optional feature: Intelligent Auto-Population

Adds an additional true/false configuration switch (Configuration->My Store->Default Meta-Tag Values?), default: false. If this switch is set to true, then the following “rules” are used to populate the meta-tag values if no other setting applies:

Page Type Title Keywords Description
All product pages Product's name [model] Not populated First nn characters of the product's description
Any category/product listing page Category name Not populated First nn characters of the category description (if present)
Manufacturer's listing Manufacturer name Not populated Not populated
EZ-Pages EZ-Page title Not populated First nn characters of the HTML content, if present.
"Other" Pages HEADING_TITLE constant for the page in question Not populated Not populated