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
-
Alt tags
Do we use our main keyword only for alt tags for all images on the page?
On-Page Optimization | | Timberwink0 -
Canonical URL, cornerstone page and categories
If I want to have a cornerstone "page", can I substitute an actual page with a category archive of posts "page" (that contains many posts containing the target key phrase)? This way, if I make blog posts about a certain topic/ key phrase (example "beach weddings") and add a canonical URL of the category archive page to the individual posts, am I right then to assume google will see the archive page as the cornerstone page (and thereby won't see the individual posts with the same key phrase as competing)?
On-Page Optimization | | stephanwb0 -
H1 tag in wordpress
Hi there! I'm having problems to locate the h1 tag in wordpress (in each page) in order to optimize the pages for SEO. When introducing text it starts with h2. Where can I locate it? Thanks in advanced.
On-Page Optimization | | juanmiguelcr0 -
Title Tags
Would it be wise to change title tags on the fly? ex. NFL regular season is now complete and they are into the playoffs, want to optimize and structure page around new info. Worried about losing current rank. Thanks guys
On-Page Optimization | | TP_Marketing0 -
Do I need a robots meta tag on the homepage of my site?
Is it recommended to include on the homepage of your site site? I would like Google to index and follow my site. I am using WordPress and noticed my homepage is not including this meta tag, therefore wondering if I should include it?
On-Page Optimization | | asc760 -
Title Tag Over Optimization
Hey, I've read that adding the company name to the title tag was a waste of space since the more words the less weight each one has, with all this over optimization preventive measures, should I rewrite the title tags format with company names? and if so should it be (company name): (naturally organized keywords) (naturally organized keyword) | (Company name). or can I keep it just naturally organized keywords Also I used to do (keyphrase) - (keyphrase) instead of commas, should I fix this? I asked this question on Randy's post http://www.seomoz.org/blog/6-changes-every-seo-should-make-before-the-over-optimization-penalty-hits-whiteboard-friday but didn't really get an answer. Thanks!
On-Page Optimization | | nrv0 -
Title Tag To Long
In the initial review of my site, I have 38 warnings of title tags to long. It also says these warnings are often penalized by search engines. In Google webmaster tools, It says I have no problems with long title tags. So am I getting penalized and do I need to shorten them? I would already have shortened them but in the past, everytime I have changed my title tag I have been penalized by the search engines. I usually get my rankings back but it can take up to a month and a half to get back to where I was.
On-Page Optimization | | tkobrien0