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
-
How can i fix the canonical tag issue?
I was experiencing today morning some issue on our website page. While I inspected the URL to Google for the page https://www.socprollect-mea.com/dubai-free-zone-company-formation/ I noted the issue. The canonical tag is showing errors only the source code showsThis is a serious issue right?Does anyone have the idea to solve this concern? Please help me to sort it out the issue and guide me on how to fix this WordPress issue.
On-Page Optimization | | nazfazy0 -
Product Colour Variation and Canonicals
Hi there, We are currently doing an SEO audit of an ecommerce website and we ar eunsure on the best practice in terms of using canonical link tag for some product variations. An example is that the company has a product with two colour variations: Black and Tan. These are for the same product and have 99% the same content. Within the content of the page the colour is the only thing that changes (along with the meta information and imagery of course). My question is should we choose one product and canonically link back to that one i.e. Black is the main product and we link Tan back to this via a canonical link? Many thanks in advance.
On-Page Optimization | | yousayjump0 -
[HELP!] File Name and ALT Tags
Hi, please answer my questions: 1. Is it okay to use the same keyword on both file name and alt tags when inserting an image? Example: File Name: buy-lego-online.jpg ALT tag: buy-lego-online Will it trigger Google Panda? Will I be penalized for that? Or the file name and alt tags should be different from each other? Because when inserting an image on Wordpress, the alt tags are always the same as the file name by default. 2. For example, I have 2 images in a page (same topic/niche) and I will put "cheap-lego-for-kids" and "best-lego-for-sale" as alt tags. Considering that I repeat the word "lego", is it considered keyword stuffing? Will I be penalized for that? Thanks in advance!
On-Page Optimization | | bubblymaiko0 -
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 -
Canonical URL Tag
Hi, I have two pages that are identical on my site: http://www.absolutepower.nl/creatine-monohydraat and http://www.absolutepower.nl/CREATINE/creatine-monohydraat Should I use the canonical URL tag in this case? Thanks, Jasper
On-Page Optimization | | Japking0 -
Are missing Meta Tags a big deal on a blog?
I show 272 missing Meta Description Tags after the crawl completed on my website. Pretty much all of those are from my website hosted wordpress blog. Should I be concerned about this?
On-Page Optimization | | webestate0 -
Title tag questions
General title tag questions how important is it not to change your title tag, I own a prom dress site and I'm always changing them between prom and homecoming' Is it bad to have title tags that are only different by one word across thousands of pages on your site. I have thousands of dresses so each title tag only varies by the style # I have always had title tags that are for example black prom dresses, well i recently discovered that just black dresses is googled 10 times the amount so im debating changing them to black dresses so that the word dresses is closer to the front of the title tag, am I over reacting or is that a good idea or would it be bad to put black dresses, black prom dresses, black homecoming dresses I also put the year in almost every title tag 2012, is that bad, I ranked great for 2012 stuff but could it hurt my homepage domain rankings on major broader keywords
On-Page Optimization | | Dirty0 -
Opinions on Alt tags
Reading around the web, there are many sources that suggest all images should have an Alt tag attributed to them. This is good for accessibility etc, however there appears to be conflicting interests between this and what works for SEO. Hence many other sources suggest that you include a keyphrase or two in 1 image Alt tag, and then leave the rest blank so as not to dilute the alts on the page. In my experience, the latter appears to be true. However this seems wrong when the Alt attribute really should be used for accessibility reasons and not for SEO - why would the search engines encourage us to provide poorer quality information by harming our rankings if we try to make a website accessible? Interested to hear your opinions and experiences on this subject. Thanks.
On-Page Optimization | | RiceMedia0