SEO Duplicate Title & Meta Tags

Solved
CrazyCritters
Excursionist
27 0 2

I'm currently addressing SEO on my website. It is a new website so traffic is minimal. 

www.crazycritters.com.au 

The main issue I want to address is duplicate SEO title tags. 

I am using SEO Now (app) to show me some of the SEO errors on my website that need fixing. 

This error is coming up for almost every page on my website.

SEO Duplicate Title Tags.png

Can someone please explain why the duplicate tags are being created with my Business Name and how to fix this?

An identical duplicate meta tag is also showing up in the SEO errors. 

Thanks in advance for any help  

0 Likes
KieranR
Shopify Partner
146 11 38

There are two <title> tags present.

Looking at source code:

KieranR_0-1612378594269.png

and:

KieranR_1-1612378647120.png

 

Likely to fix, someone needs to get a bit hands on to edit code, exact change will be theme dependent. I'd suggest start by looking in the themes.liquid template file, that is the most common place where the <title> is inserted inside the <head>.

 

 

A self defined Shopify SEO "expert". Sometimes I freelance outside the 9-5
0 Likes
CrazyCritters
Excursionist
27 0 2

@KieranR Thank you for your reply! 

I’ll get someone to look into editing the code. 

Also, so I am not having this issue repeatedly do you know if it is likely an app I use (e.g. SEO Now) would be the reason for the change to code? 

0 Likes
KieranR
Shopify Partner
146 11 38

It's possible the SEO app has inserted a duplicate <title> tag. Might not be this though.

Looking at app config, docs, and maybe even dry running an install then diff checking the theme you could get a picture if this is the cause or not.

That code in themes.liquid is global across all pages, so if the issue is in there, and it is identified and fixed, then it should fix on all pages yes.

To get a better picture of what is happening someone needs to get in there ultimately, otherwise we are just speculating.

A self defined Shopify SEO "expert". Sometimes I freelance outside the 9-5
0 Likes
CrazyCritters
Excursionist
27 0 2

 

@KieranR 

I really don't know much about website coding, app config, docs or dry running an install. 

I have copied the code from theme.liquid and can see that in the <head> section it refers to the SEO Now app. I have copied the code for theme.liquid and the seo.liquid below. 

If this doesn't shed some light on whether the app is the cause then I'll have to wait to get someone to look into the coding properly. 

I can see there is still some leftover code from apps that I have removed from the website so it needs a cleanup anyway, just not something I can address at the moment. 

 

This is the code from theme.liquid <head> section:

<!doctype html>

<html class="supports-no-js" lang="{{ request.locale.iso_code }}">

<head>

{% include 'seonow' %}

<meta charset="utf-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<meta name="viewport" content="width=device-width,initial-scale=1">

<meta name="theme-color" content="{{ settings.color_primary }}">

<link rel="canonical" href="{{ canonical_url }}">

 

{% if settings.favicon %}

<link rel="shortcut icon" href="{{ settings.favicon | img_url: '32x32' }}" type="image/png" />

{% endif %}

 

<title>

{{ page_title }}{% if current_tags %}{% assign meta_tags = current_tags | join: ', ' %} &ndash; {{ 'general.meta.tags' | t: tags: meta_tags }}{% endif %}{% if current_page != 1 %} &ndash; {{ 'general.meta.page' | t: page: current_page }}{% endif %}{% unless page_title contains shop.name %} &ndash; {{ shop.name }}{% endunless %}

</title>

<!-- EGGFLOW SCRIPT START -->{% include 'eggflow-script' %}<!-- EGGFLOW SCRIPT END -->

 

{% if page_description %}

<meta name="description" content="{{ page_description | escape }}">

{% endif %}

 

{% include 'social-meta-tags' %}

 

<script>

document.documentElement.className = document.documentElement.className.replace('supports-no-js', 'supports-js');

 

var theme = {

mapStrings: {

addressError: {{ 'homepage.map.address_error' | t | json }},

addressNoResults: {{ 'homepage.map.address_no_results' | t | json }},

addressQueryLimit: {{ 'homepage.map.address_query_limit_html' | t | json }},

authError: {{ 'homepage.map.auth_error_html' | t | json }}

}

}

</script>

 

{{ 'theme.scss.css' | asset_url | stylesheet_tag }}

 

{{ content_for_header }}

 

{{ 'jquery-1.11.0.min.js' | asset_url | script_tag }}

{{ 'modernizr.min.js' | asset_url | script_tag }}

 

<script src="{{ 'lazysizes.min.js' | asset_url }}" async="async"></script>

 

{% if request.page_type contains 'customers/' %}

{{ 'shopify_common.js' | shopify_asset_url | script_tag }}

{% endif %}

{% include 'booster-common' %}

{% include 'previewer-head-template' %}

{{ 'ndnapps-contactform-styles.css' | asset_url | stylesheet_tag }}

{{ 'ndnapps-easyfaqs.css' | asset_url | stylesheet_tag }}

</head>

 

The section in bold italics in the code above - does this mean that it will use the rules created by the seo.liquid file? I have pasted this below... 

code from seo.liquid (that relates to the title and meta tags):

<title>{{ page_title | escape_once }}</title>

<meta name='description' content='{{ page_description | escape_once }}' />

{% if template contains "index" or template contains "product" %}

{%- if ldjson.enableStructuredData -%}

 

...Does this account for the second title tag and meta tags?

I will get someone to go through and clean up the code for the website soon hopefully but I was just hoping to try and fix this myself if possible first. 

I understand coding is beyond me and more than likely I'll need someone to do this but I appreciate the time you have taken to explain this. 

 

 

0 Likes
KieranR
Shopify Partner
146 11 38

This is an accepted solution.

So based on that I would suggest: 

KieranR_0-1612399958737.png

Do either: 

  • If you want to let the default theme code handle the title tag, then delete (1). 
  • If you want to let seonow app control the title tags, then delete (2)

Then test if the dupe <titles> have gone. 

It's possible (though unlikely) to break things with typo, or similar. If that does happen you should be able to rollback to a prev version of theme.liquid. However this is a risk, just caution you to be aware if you're not familiar. 

A self defined Shopify SEO "expert". Sometimes I freelance outside the 9-5
0 Likes
CrazyCritters
Excursionist
27 0 2

@KieranR 

Thank you so much! I will give it a try. 

Just to clarify, letting the default theme code handle title tags, this would be edited using the edit website SEO section on the product pages?

0 Likes
KieranR
Shopify Partner
146 11 38

letting the default theme code handle title tags, this would be edited using the edit website SEO section on the product pages?

Sortof. So for example you might set "Red Roses" as the product title, "Fragrant Red Roses - a perfect Valentines day gift" as the  SEO title. Then the theme code (or SEO app)  might conditionally append extra information like your brand for /product/ pages.

So the actual output in <title> might end up being "Fragrant Red Roses - a perfect Valentines day gift | FlowerShop"

That output may or may not be what you are expecting, or what you want, or what's best for search. A lot of flexibillity and a number of different approaches to decide text patterns end up in <title> tags. Most common approaches I see are either via app or via theme edits.

Also, worth considering a couple more things: 

  • Google will algorithmically decide to use (or not to use) the <title> tag that you have defined.
  • A title tag to Google is really just a suggestion. If you make it too spammy, or too long or too short, or not relevant, or otherwise then it's likely to be auto-replaced and overridden in organic SERPs. 
  • After you update a title tag, it usually takes some time (varies by what crawl frequency Googlebot is assigned to you) to re-crawl a page. Then some more time to update the search result index.
A self defined Shopify SEO "expert". Sometimes I freelance outside the 9-5
CrazyCritters
Excursionist
27 0 2

@KieranR 

Thank you so much for explaining that to me I appreciate all the help!

I have decided to continue using an external SEO program to identify SEO issues on my website (which lets me know if my title and meta tags are too long or short) and just manually edit the SEO information on the Shopify product pages. 

This is just for the sake of simplicity for moment and to eliminate any duplicate tags on the website. 

...for example you might set "Red Roses" as the product title, "Fragrant Red Roses - a perfect Valentines day gift" as the  SEO title.

Then the theme code (or SEO app)  might conditionally append extra information like your brand for /product/ pages.

So the actual output in <title> might end up being "Fragrant Red Roses - a perfect Valentines day gift | FlowerShop"

When looking at the duplicate tags I did notice that the one set of tags had " - Crazy Critters" at the end. 

You mentioned being able to use theme edits to address SEO... is this something that a theme edit could remove?

I would prefer being able to create the SEO title tags without any unseen extra information being added.

When the business is a little bit more established I will hire someone to address SEO properly but for the time being, I have to work within the limits of what I can do myself. 

On this note, can you please send me a PM with your information - including the tasks you can assist with and relevant costing (I see on your signature you handle SEO) - you have been so helpful! so when we reach the stage of hiring someone who actually knows what they're doing I'd like to get in touch.  

0 Likes
KieranR
Shopify Partner
146 11 38

When looking at the duplicate tags I did notice that the one set of tags had " - Crazy Critters" at the end. 

You mentioned being able to use theme edits to address SEO... is this something that a theme edit could remove?

I would prefer being able to create the SEO title tags without any unseen extra information being added.


Yeah I would say a theme edit could possibly be a fix for the dupe title thing. Do you have more specific examples? Really need more context. 

The Shopify Admin UI has a number of limitations and the SEO title/meta fields are one. Wrong lengths, no rule based logic exposed within the UI etc. So kinda just need to understand the limits. 3rd party apps (as you've discovered) are one workaround to viewing the "full" <title> tag outputs. However personally I prefer a combination of external SEO tools and hardcode any title tag pattern/logic directly into the theme with liquid.

 

 

A self defined Shopify SEO "expert". Sometimes I freelance outside the 9-5
0 Likes