Automate process for naming page titles?
-
Hi everyone,
I'm new to the Moz community, but really loving it. I'm hoping some of you more experienced experts may be able to answer what is probably a pretty basic question.
I'm working for a non-profit client and I used the SEOMOZ tool to run a report on their site errors. I learned that the website has 5,432 duplicate page titles. They had their website redesigned last year before I started working with them and it appears that the developers didn't take into a account the need to provide unique page title names to each page.
While it may make sense to go in to add custom page titles to a handful of the pages for the site, the vast majority of the pages are allocated to products (e-commerce). Is there a script that the developers could add that would automatically add page unique page titles based on say, the title of the product?
Here are a few URLs to help you get a sense of what we're dealing with.
homepage: www.creativityexplored.org
example level two page: http://www.creativityexplored.org/artists/douglas-sheran
example product page: http://www.creativityexplored.org/shop/original-art/prints/2776/profile-of-a-lady
Thank you so much for any advice you can offer.
Best,
Linda
-
Hey George. Thanks for cluing me into the Holiday Express reference. Very funny. And yes, you were able to help me out.
Thank you!
-
No problem, glad I could help.
The Holiday Inn Express reference is in regards to a series of commercials they ran some time ago lol...
Here's a Youtube video from one of them:
http://www.youtube.com/watch?feature=endscreen&NR=1&v=l8Ah8WTL2i8
It basically means that I don't normally code in Ruby, but I think I can still help you out ;).
-
Hi George,
Thank you for your response. No, not too technical at all. I follow what you're saying. I'll pass this information on to my client and hopefully it's a relatively easy fix.
If anyone else has any additional information about implementing the solution specifically for Ruby code, I would appreciate it.
Thank you!
Linda
P.S. George, I'm curious, what is the connection between being a Ruby developer and staying at a Holiday Inn Express?
-
It looks like the product pages are dynamically created based on the product id in the URL (e.g. 2776 from your product page example). This product page could be updated to dynamically produce a different title based on this same information.
For example:
$product = getProductByProductID(2776);
$artist = getArtistByArtistID($product->artistID);
<title><?php echo "$product->name by $artist->name"; ?></title>
?>
Mind you, this is PHP code and you are using RESTful URLs so your site is likely written in Ruby - though I'm just guessing here.
For Ruby, this is essentially pseudo-code as I am not a Ruby developer by day (though I did stay in a Holiday Inn Express last night), but I believe you are looking to do something like this in your controller:
def product_page
@product = Product.find(params[:id])
@artist = Artist.find(@product.artistid)
@page_title = "<%=@product.name%> by <%=@artist.name%>"
end
Then in your page template you can use:
<title><%= @page_title %></title>
Hope this helps and sorry if it is too technical/cryptic; but your developers should be able to do something like this pretty easily. It appears to already be underway to produce the rest of the page content. Now they just need to use it to populate the page title (and maybe the meta description - use part of the product description).
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Filter pages - Shopify
Hi there, /collections/living-room-furniture/black
Technical SEO | | williamhuynh
/collections/living-room-furniture/fabric Is that ok to make all the above filter/tag pages canonicalised with their main category /collections/living-room-furniture OR I keep them as it is, so /collections/living-room-furniture/black can rank for filter keywords, example: black living room furniture, /collections/living-room-furniture/fabric fabric living room furniture etc. Also, does it needs to be noindex, follow as well? Note - already removed the main category content from filter pages, updated meta tags as well. Please advice, thank you0 -
Duplication in Meta Titles
Hi,
Technical SEO | | ChrisHolgate
In order to appease the Moz crawler we recently changed over 10,000 URL's in order to make our Meta Page Title less than 55 characters as it suggested. Unfortunately our rankings dropped dramatically pretty much overnight so I am getting the feeling that perhaps our titles are now just a little too concise and need elaborating on just a touch. Our competitors that rank well seem to use a small amount of keyword repetition. For example, whereas we may have:
Brother DCP-197C Inkjet Cartridges They will have:
Brother DCP-197C Inkjet Cartridges. Cheap Brother DCP-197C Ink. What are your opinions of the fact that: a) Their Title is over the 55 character figure that is suggested for displaying correctly in the SERPs.
b) The words Brother and DCP-197C are repeated in the title. The fact their title appears to be working better is almost enough to sway me but the competitors title just looks a little too spammy for me to make a sitewide change without asking some second opinions first. Cheers all!0 -
Home page indexed but not ranking...interior pages with thin content outrank home page??
I have a Joomla site with a home page that I can't get to rank for anything beyond the company name @ Google - the site works fine @ Bing and Yahoo. The interior pages will rank all day long but the home page never shows up in the results. I have checked the page code out in every tool that I know about and have had no luck....by all account it should be good to go...any thoughts/comments/help would be greatly appreciated. The site is http://www.selectivedesigns.com Thanks! Greg
Technical SEO | | DougHosmer0 -
Duplicating Keywords in Page Title
Hello All, I am currently trying to establish the TITLE tag of my homepage. I am trying to target 2 terms plus my company name. For example, purposes, the two keywords are: Widget Program Widget Software My company Name is: Widget Direct I originally had the title as: Widget Program | Software | Widget Direct My thought was that I didn't want to repeat the word "Widget" too many times. However, the SEOmoz on-page report card keeps telling me I should have the exact keyword in my title tag. In that case it would make the title: Widget Program | Widget Software | Widget Direct Do you think that is better so that I have each keyword in the title or will that result in a penalty because it looks like I'm stuffing the title with the keyword 'widget'? Any insight is greatly appreciated! Thanks!
Technical SEO | | Robert-B0 -
SEO Mox reporting all pages & titles as duplicate, but this is not the case.
HI, I am confused . This week SEOMoz is reporting that all my pages and pages titles are duplicate. This is not the case. I have added geo meta tags to each page - could this be causing the duplicate page content condition? I have no theory about the title duplicate condition. I have uploaded pdfs of these seomoz reports here: http://www.2shared.com/document/JAgS2Ni9/Issue_-Duplicate_Page_Content.html http://www.2shared.com/document/gyXcMsoP/Issue-Duplicate_Page_Title-.html Help please. thanks.
Technical SEO | | RichardB20 -
Title and description tags
Hi everyone! What is the maximum length a title tag should be and what range should a seo description be for best practice?
Technical SEO | | PeterM220 -
How to automate the process of checking the operators
How to automate the process of checking the operators of search teams.
Technical SEO | | meteorr
such as:
inurl:? lang = ru site: tochka.net
inurl: print site: tochka.net
inurl: print site: tochka.net / *
inurl: nomobile = 1 site: tochka.net / *
inurl: comments site: tochka.net
inurl: comments site: tochka.net / *
inurl:? a_aid site: tochka.net ... with the conclusion of the number of pages in the search. There is a program to identify?0 -
What are the causes of pages desindexation?
Hello, I was wondering what can be the causes of pages desindexation by Google? A poor quality pages,...? Thank you for your answers, Jonathan
Technical SEO | | JonathanLeplang0