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
-
Is This a Misuse of Structured Data (JSON Recipe Tag on Collection Pages)?
I've noticed that many food blogs use the "recipe" tag to rank collection pages in carousels. For example, for the search term "Zucchini Recipe," Gaumenfreundin is in the first position in the carousel with a page that contains multiple recipes. This makes sense if the user intent is plural (e.g., "recipes") - but in the singular? According to Google's guidelines, the recipe tag is intended for individual recipes. Google even states that it is a misuse if only the ingredients are listed without the steps. So, isn't it against the guidelines to tag a collection page (even additionally) with the recipe tag? This practice is already common in the US market. Is Google aware of this and possibly tolerating it because it sometimes makes sense to present multiple recipes to the user? For example, "Zucchini Recipe" - the user might not yet know exactly what they want to cook with zucchini. Or do you think Google will take action against this practice in the future?
On-Page Optimization | | chueneke0 -
Using Canonical Tags on Every Page
I'm doing competitive research and noticed that one of our competitors (who outranks us) uses canonical tags on every page on their site. The canonical tags reference the page they are on. For example. www.competitor.com/product has a canonical tag of www.competitor.com/product. Does anyone use this practice? It seems strange to me. Thank you, Kristen
On-Page Optimization | | Ksink0 -
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 -
How to use canonical with mobile site to main site
I am pretty sure that the mobile version of the main site needs to be the same canonical link from what I understand. I am trying to find good docuementation that supports this. Even better if its from Google or Matt Cutts. I have a main domain like http://www.mydomain.com the mobile version of this is http://www.mydomain.com/m/ Should my canonical be rel="canonical" href="http://www.mydomain.com"/> for both these pages?
On-Page Optimization | | cbielich0 -
Can i use H2 tag for a brand logo
I want to use the brand logo of my products as a H2 tag and use ALT attribute for the image. Please refer for example to: http://www.parfumerie.nl/zoek-op-merk/clarins/clarinsmen/anti-huidveroudering/clarins-men-gel-revitalisant-50-ml/ CODE Clarins Online Is this ok for my SEO or do you advice me to no use the H2 tag for this?
On-Page Optimization | | parfumerienl0 -
Are lots of wordpress tags hurting my SEO?
When I started my blog 4 years ago and didn't know what I was doing, I set it up to be organized using tags (no categories). I have around 20 tags and around 250 articles. Each blog article typically has 2-4 tags associated with it. There is a lot of topic overlap and putting each post in only one category wouldn't work. I have been no indexing, do follow my tag pages because they are just a list of post titles, but I'm wondering if the whole situation is hurting my SEO. On my homepage I have a sidebar menu/list of all the tags so I have link juice going to no indexed (but dofollow) pages. Reducing the number of tags would be bad for user experience because people who were looking for info on a specific topic wouldn't be as easily able to find what they want. Ideas?
On-Page Optimization | | KateV0 -
Canalogical Tag
Hello, I wanted to have a clean url for example : site.com/producta and our web developer installed this module which does this great. However there are now two products one with unclean url for example sit.com/productaxmlayoiadkja and the clean one - on both pages page it says: <link rel="canonical" href="http://www.site.com/producta">Is this correct? Reason being is I'm aiming for the long tail and the site is not getting any visitor although we have unqiue 250 products+ and getting less then 20 visitors a day after almost a year! I would appreciate any help because I'm getting in real trouble because the site is performing so badly!
On-Page Optimization | | reallyitsme0 -
Canonical home page
I have a site that shows duplicate page content for: www.autoserviceexpertsonline and www.autoserviceexpertsonline/index.html When looking at the files using the cms (intuit) file manager, I only see the /index.html version. I added the Caononical tag referencing/pointing to both the domain name only and then changed to .../index.html No matter how I code this, the seomoz On-Site SEO Grader still has a problem with it. Is this a bug with the Grading program or am I doing something wrong? Please help as I think this is causing me problems with Google and I'd like to get this right for future sites I will be working on. Thanks, Bill
On-Page Optimization | | Marvo0