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
-
Colons in title tag?
Does Google view the colon as a keyword separator like it does with the pipe (|) character? Currently, our site automatically constructs the title tag based on the page name given by the user. Long ago, we started using the colon character to visually separate the brand & model of the product from the size, and as a result, all of our title tags have been constructed this way. This was done more to make it easier to read for humans than for search engines. My question is - should I consider getting rid of the colon from our title tags? To give more info, our website sells tires. So, for any given model of tire, there might be 25-100 different individual sizes. The tags are constructed as follows: (brand)(model) : (size). Here's an example from our site: GENERAL ALTIMAX ARCTIC : 225/45R17 91Q The brand is General Tire, the model is the Altimax Arctic and the size is 225/45R17 91Q Since this entire string really constitutes the full product name, should I remove the colon so that Google views it that way? Or, since I have used a colon instead of a pipe, will Google simply ignore it and treat the entire string as one keyword phrase?
On-Page Optimization | | kcourtem0 -
How to ALT tag correctly many similar images?
scenario: I have a product page with some text about the product and 12-15 different images af the product: details, colours, different views... how should I name an alt tag them correctly, been them actually really similar? Is it keyword stuffing to use the same name containing a relevant keywords?
On-Page Optimization | | DavideM0 -
Removing Tag Cloud to Decrease the number of On-Site Links?
I have website which has a tag cloud at the footer. This tag cloud or tag box has about 40 links pointing to different words(tags) pages. I believe that the tags are hardly ever clicked on by visitors, since its at the footer. If the tag cloud is removed would this decrease the number of on-site links? According crawl diagnostics summary I have 195 pages with too many links. Would removing it help? And what kind changes can I expect if they removed (seo wise)?
On-Page Optimization | | utesters0 -
Tags on blog post
I have just ran a report on SEOMOZ and it's came back saying I have over 1000 pages on my website with duplicate content, I thought wow that's not good, however when I looked at the report it was counting duplicate content because I have used more than one tag on a blog post, for example the blog post: www.example.com/blog-post/ Has the tags example 1 example 2 example 3 Meaning I have these URLs www.example.com/blog/tag/example-1 www.example.com/blog/tag/example-2 www.example.com/blog/tag/example-3 All 3 URLs above have the same content as www.example.com/blog-post/ because of the tags, is this a problem? Thanks
On-Page Optimization | | Paul781 -
Issue: Rel Canonical
My SEO Report shows issues: Rel Canonical I have a wordpress website each page has its content but I'm getting errors from my SEOMOZ report. I instaledl the yoast plug in to fix the issue but I'm still getting 29 errors. Wordpress 3.4.1
On-Page Optimization | | mobiledudes0 -
2 canonical tags on the same page
When using the 'on-page optimizer' tool, I continue to get the same recommendation on every page to only use 1 canonical tag on the page. I'm not sure why there are 2 tags on each page in the first place so I don't know how to remove the one that's not needed. Our site is on a WP blog and a sample page to view the source code would be: http://www.shilohstreet.com/blog/is-flipping-houses-smart-real-estate-investing.html Does anyone know why this is happening, how to fix it and/or if I should even be concerned with it? Thanks!
On-Page Optimization | | shilohstreet0 -
Meta Description Tags and Rankings
Hi there, I have a lot of pages set up on my site but most have no content. If I add the correct meta description tags to those pages, will that help rank for the root domain? I am slowly getting the content added for each page but wanted to see if I could boost rankings in the meantime. http://www.petmedicalcenter.com Example: most of pages under "Services" are blank. Thanks for the help!
On-Page Optimization | | PMC-3120870 -
Small Site Title Tag / Structure Question
Bit embarrassed to ask this question, but will ask it anyway! I have done some quite reasonable basic SEO for clients in the south of Spain with small sites and had reasonable success. My wife and I came to the Pyrenees in the south of France to take over and run bed and breakfast in a lovely old farm and some self-catering accommodation in one of the pastures (with my continuing to do a bit of work for clients too). We are running and developing the place for friends who are away 3-4 years. They had an abysmal site, so we designed one to together: http:www.loubetaspyrenees.com/ (I have given the French version because it's what I am most concerned with - there is an English version in case I can tempt you to a holiday here!) It's been very well received by users, so that's great. We have the place on about 12 agencies amd almost all link to our site, so it serves as a good showcase. Here's my issue (for the French site): It went online 11th Feb and is already doing well for more "long tail" searches, and for more local and specific searches, but is proving slow on our prime search terms. The prime market is French, and they key terms are "Gîtes" for the self-catering accommodation, and "Chambres d'Hôtes" for the Bed and Breakfast. Our key Geographical term for the French market is "Hautes Pyrenees" - it's a departmental area. In Google.fr We are around result 100 out of 600k results for "Chambres d'hôtes hautes pyrénées" and aren't in the first 200 for "Gîtes Hautes Pyrénées". This is a competitive market and we are competing with optimised and long-established agencies but still hope to do better. I know I am losing from poorly constructed title tags cannibablising the results, but cannot see how to solve this: Home Page Title tag: "Gîtes et Chambres d'Hôtes dans les Hautes Pyrénées | les Baronnies" I have two main pages on the Gîtes: Gîte for 2-3 people Title tag "Gîte dans les Hautes Pyrénées pour 2-3 personnes en les Baronnies"
On-Page Optimization | | PeterMurray
Gîte for 3-9 people Title tag "Location Gîte dans les Baronnies Pyrénées pour groupe 3-9 personnes" ("Location" means rental) Google understood the above and put us no 1 out of over 1miillion results for a search for a gite for 9 people in the south west of France ("gite sud ouest 9 personne") And 2 pages for the Bed and Breakfast: B&B in the farm building: "Chambres d'Hôtes dans les Hautes Pyrénées dans une ferme restaurée"
B&B in gite apartments with sitting rooms: "Chambres d'Hôtes dans les Hautes Pyrénées avec salon et terrasse" I am not sure how to handle the titles for the Home Page and for the 4 subpages - sounds silly, but have you any advice on how I might handle these titles better? I thought of using more general terms on the Home Page ("Holiday accommodation in the ..."), but on such a small site (18 pages in each language version) I feel that would be unwise. It seems I must try to find some way of differentiating the titles on the other 4 pages so that i am not cannibalising but where there are so few alternatives I am not sure how! Oh dear, sorry this was so long!0