It would be nice to NOT make the meta descriptions cascade so to avoid duplicate meta descriptions. Best practice is having a unique meta description, but no description is better than a duplicate description.
Announcement
Collapse
No announcement yet.
No More Cascading Meta Descriptions
Collapse
X
-
While we do default to "cascading" mode, its easy to change. Currently in the HEAD tag you'll find this tag:
Code:<mvt:item name="prodctgy_meta" param="combined" />
Cascading META tag rules are applied as follows:
|
| 1. Global META tags
| 2. Page META tags : Page overrides Global
| 3. Category META tags : Category overrides Page
| 4. Product META tags : Product overrides Category
The idea behind this logic was it was better to have some meta tags vs nothing. The conventional wisdom around that has shifted over the years. However, keep in mind Meta Tags have no impact on SEO today and are more valuable for click through rates in organic listings. This article has a good overview on duplicate meta tags: https://www.eversparkinteractive.com...criptions-bad/
In addition to the combine mode, there are 4 other available modes you can use:
<mvt:item name="prodctgy_meta" param="prod" />
<mvt:item name="prodctgy_meta" param="ctgy" />
<mvt:item name="prodctgy_meta" param="global" />
<mvt:item name="prodctgy_meta" param="page" />
If you don't want any of the cascading logic you could replace the combine tag with some logic like this:
Code:<mvt:if expr="g.Screen EQ 'PROD'"> <mvt:item name="prodctgy_meta" param="prod" /> <mvt:elseif expr="g.Screen EQ 'CTGY'"> <mvt:item name="prodctgy_meta" param="ctgy" /> <mvt:else> <mvt:item name="prodctgy_meta" param="global" /> </mvt:if>
Last edited by Brennan; 05-03-19, 02:14 PM.
- 1 like
-
Hi Brennan - I tried implementing the code change but it doesn't seem to work.
In the User Interface > Settings > HEAD Tag Content, is where I found the default cascading meta code and when I changed it to the logic:
Code:<mvt:if expr="g.Screen EQ 'PROD'"> <mvt:item name="prodctgy_meta" param="product" /> <mvt:elseif expr="g.Screen EQ 'CTGY'"> <mvt:item name="prodctgy_meta" param="category" /> <mvt:else> <mvt:item name="prodctgy_meta" param="global" /> </mvt:if>
Any thoughts?
Thanks!Last edited by Rick Wilson; 05-03-19, 10:50 AM.
Comment
-
Originally posted by Brennan View PostWhile we do default to "cascading" mode, its easy to change.
The idea behind this logic was it was better to have some meta tags vs nothing. The conventional wisdom around that has shifted over the years. However, keep in mind Meta Tags have no impact on SEO today and are more valuable for click through rates in organic listings. This article has a good overview on duplicate meta tags: https://www.eversparkinteractive.com...criptions-bad/
Why should a store owner have to "change" something like this out of the box? Most won't because most will not be aware of this defect that will potentially cost them sales..
Comment
-
Why should a store owner have to "change" something like this out of the box? Most won't because most will not be aware of this defect that will potentially cost them sales..
- 1 like
Comment
-
I'm trying to come up with something that will display alternate content if the SEO field for a category is empty. Currently, if the field is empty it pulls in the metadata from the parent category. I thought something like this might work
Code:<!-- CTGY --> <mvt:if expr="ISNULL l.settings:category:metafield:description"> <meta name="description" content="&mvt:category:name; &mvt:category:code;"> <!-- &mvt:category:metafield:description; --> <mvt:else> <!-- CTGY prodctgy_meta --> <mvt:item name="prodctgy_meta" param="ctgy" /> </mvt:if>
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
Originally posted by lesliekirk View PostI'm trying to come up with something that will display alternate content if the SEO field for a category is empty. Currently, if the field is empty it pulls in the metadata from the parent category. I thought something like this might work
Code:<!-- CTGY --> <mvt:if expr="ISNULL l.settings:category:metafield:description"> <meta name="description" content="&mvt:category:name; &mvt:category:code;"> <!-- &mvt:category:metafield:description; --> <mvt:else> <!-- CTGY prodctgy_meta --> <mvt:item name="prodctgy_meta" param="ctgy" /> </mvt:if>
Code:<mvt:capture variable="g.man_this_is_cool"><mvt:item name="prod_ctgy_hdft" param="ctgy_header" /></mvt:capture> <mvt:if expr="g.man_this_is_cool NE ''"> <div class="ctgy-header"> &mvt:global:man_this_is_cool; </div> <mvt:else> <p class="tableheader" style="margin-left:10px;">&mvt:category:name;</p> </mvt:if>
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
I think the question I am now trying to ask is can each of the META Tags that are available to the PROD page be conditionally displayed separately? Currently, the site has an "all or nothing" approach to the robots
Code:<mvt:if expr="g.Screen $ '^' CIN 'PROD^ACAD^ACED^ACLN^ACRT^BASK^BSKE^AFAD^AFCL^AFED ^CEML^CPWD^FPWD^ORDL^ORDL^ORDS^ORHL^LOGN^ACNT^OCST ^AMAZONPAY_OCST^OSEL^OPAY^SRCH^WREVIEWS^NTFD^SVBAS K^'"> <meta name="robots" content="noindex,nofollow" /> <mvt:else> <meta name="robots" content="index,follow" /> </mvt:if>
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
So here is what I have done for the CTGY template
Code:<mvt:if expr="l.settings:category:metafield:robots"> <meta name="robots" content="&mvt:category:metafield:robots;"> </mvt:if> <mvt:if expr="l.settings:category:metafield:description"> <meta name="description" content="&mvt:category:metafield:description;"> </mvt:if> <mvt:if expr="l.settings:category:metafield:keywords"> <meta name="keywords" content="&mvt:category:metafield:keywords;"> </mvt:if>
I'm wondering (before I even try to use the "cool" code - which I'm not sure how to use in this case) is there really no way to stop this behavior?Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
-
Oh, come on now...really?Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
Comment