How to add canonical tag
-
Hi,
I read through many of the forum questions dealing with the overly dynamic URLS and I think I understand. Please let me know if I know what I am talking about:
If SEO moz is saying I have 20 pages (mostly search and home/index pages) with overly dynamic urls, I would go to the that particular page and add the following code between the head tag:
This code would cause Google to go to this page instead of the following duplicate index pages:
1. http://www.about-sports-collectibles.com/index.php?pcsid=0a83aa7119cf3d80a1d018634ec4ec94&p
2. http://www.about-sports-collectibles.com/index.php?pcsid=18b220fc62628b013a51c6f26209df50&p
There are a total of about 8 of these index pages.
The problem is that I can't figure out where I would access each of these duplicate pages to add the canonical tag. There is only one home page with coding.
As far as the search pages are concerned, I would not want Google to follow those pages would I? If that is the case, what would be the best code to add between the tags?
For instance here are a couple of the overly-dynamic URL pages for the search pages:
1. http://www.about-sports-collectibles.com/index.php?p=catalog&mode=search&search_in=all&search_str=
I hope I am not overwhelming anyone with my questions. I really am trying to get a handle on how Ll this stuff works.
Thanks so much the help.
Don
-
Thanks Chris.
I Appreciate your help.
Don
-
Yes, you would add the canonical link element:
to the 20 pages that are the same as your home page. But I think they are all the same page, so you don't have to look far. The pcsid looks like a session id, so if you can add the canonical link element to index.php, it will appear in all displays of the home page. It is OK if the canonical link element on a page points to itself.
Notice that index.php is used for search results and shopping cart pages also. So adding it to index.php may add it to all your search pages and cart pages. But do you want those pages indexed? If not, then the element is OK on these pages.
WARNING
Your product pages do not display index.php, but I am assuming they are dynamically generated. If they are, you may end up with the canonical link element on every page of your site. If your software can't handle that differently, you will be better off without the canonical link element.
Use an XML Sitemap
NOTE: Use an XML sitemap, and submit it on Google Webmaster Tools (and similar at other engines). If the URL is on the sitemap, it should get preference over a URL not on the sitemap.
Currently on Google
You sites listings don't show any pcsid numbers, so the duplicate content issue may not be a big problem. You do, however, want credit when someone links to your page and add a pcsid in their linking url.
If your shopping cart provider does not have a way for you to fix this, urge them to add it.
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
-
Titling and H1 Tag Question
What to do if you have hundreds of thousands of a particular product. Comic Books for example. Is it ok to have the words Comic Book in the title and H1 tag as long as it is qualified? For example, if I have the following as both the Title tag and the H1 tag. Comic Book - Spider Man Versus Wolverine Comic Book - Silver Surfer Goes Home to Visit Mom. Comic Book - Superman Gets a New Kitten Comic Book - Wonder Woman is More Wonderful Than You Know As of now, I have been doing it this way, but only in the title tag. However, Google has been using my H1 tag as my title, so in the search results, I am only getting: "Superman Gets a New Kitten" And I am afraid that that is leaving out important info for searchers, especially qualifying that the product is a Comic Book and if someone is searching for a Comic Book, I need that to return. But I don't want any 'more' trouble from the Panda. Again, this will be hundreds of thousands of products. Thanks for your help! Craig
On-Page Optimization | | TheCraig0 -
Title Tags
Say you have a client that specializes in Driveways and you have multiple keywords within one locations. So for instance the keywords are Driveway company, Driveway installers, driveway repairs etc.. How would you set it up? San Diego Driveway Company, San Diego Driveway Installers, San Diego Driveway repairs or San Diego Driveway Company, Driveway Installers, Driveway repairs
On-Page Optimization | | benjaminmarcinc0 -
Should the title tag now be 50 characters long?
Hi, I'm fairly new to SEO and as a rule so far I have been making every page title around 70 characters in length, after analysing the a website that I'm currently working on in the MOZ tool it say's that the page title element is to long. Does anyone know if I should carry on writing titles 70 characters in length or if I should go down to 50, I have been using this tool (http://www.seomofo.com/snippet-optimizer.html) as a guide if you know of any others then that would be great and any advice will be greatly appreciated. Regards Chris
On-Page Optimization | | chrissmithps0 -
Duplicate title tag
Hello,
On-Page Optimization | | JohnHuynh
My site have problems with duplicate title, they were reported from google webmaster. For example:
/extra-services/car-pick-up-service-146.html (1) /extra-services/transportation--car-rails--146.html (2) According to my sitemap the first URL is right (1). But the second URL is wrong, I don't know it occur here.0 -
Using H3-4 tags in the footer or sidebars: good or not?
Howdy SEOmoz fans! Is it considered a good / bad / neutral practice to include H tags in the footer, as a mean to group a few links? Take http://www.seomoz.org/ for instance: - Voted Best SEO Tool 2010! = H2
On-Page Optimization | | AxialDev
- Looking for SEO consulting? = H3
- Product and Tools = H3 Company = H3 etc. I often see the same principle applied to sidebars. I feel like because they don't contribute to the actual content structure and because they are repeated from page to page, we should avoid them, but I have nothing to back my intuition. [+] Perhaps they are helpful for usability (screen readers) and thin added value (i.e. category names that carry more weight than if they weren't headers). What do you think? Thanks for your time.1 -
Can RSS Title tags be optimized?
I need to know if one can optimize RSS feeds to a particular Physical Location. As an Example if my website has RSS feeds for Travel. Can I optimize the individual Title tags to Travel in Maryland, Washington DC, New York etc?
On-Page Optimization | | sherohass0 -
Canonical to the page itself?
Hello, I'd like to know what happens when you use canonical to the same page itself, like: Page "example.com" rel canonical="example.com" Does that impact in something? Bad or good? See ya!
On-Page Optimization | | seomasterbrasil1 -
H1 tag in the footer?
Quick question: I have been scouring SEOMoz.org along with webmaster forums looking for an answer, but we have a person who insists that the H1 tag be located in the Footer. I feel that is is fundamentally wrong because it is not the intent of the H1 tag, and I do not believe it is a best practice. That being said would we see what little value the H1 tag has disappear if we put it in the footer, would we be penalized, or am I being too vanilla by wanting to keep it in the Title position?
On-Page Optimization | | travelclickseo0