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
-
H2 tags always recommended? Or ok without?
Is it ok to have no h2 tags? There are no "keywords" relevant to the product in these example h2 tags. Also, is it ok to not have a PRODUCT DESCRIPTION header, or is it better with that header? It's for a "product page". Examples: <h1>Used Bow Front Desk With Mahogany Laminate</h1> <h2 style="display:inline;">QTY:</h2> 3 - <h2 style="display:inline;">Manufacturer:</h2> Hon <h2>Product Description:</h2> <p>This bow front desk is in excellent condition. It has a beautiful mahogany laminate.</p> OR (no h2 tags or product description header at all) <h1>Used Bow Front Desk With Mahogany Laminate</h1> <p>QTY: 3 - Manufacturer: Hon</p> <p>This bow front desk is in excellent condition. It has a beautiful mahogany laminate.</p> I prefer the last one as it's much simpler, but I'm curious if search engines would prefer the existence of h2 tags in the first version. Thanks,
On-Page Optimization | | NRSmart
Todd0 -
Issues with Multiple H1 tags on homepage?
Hi folks, My homepage has 3 identical H1 tags due to the fact that I have had to create individual hero images (with headings) for desktop, tablet and mobile. I couldn't get my theme to display the layout in exactly the way I wanted on each device without doing a specific hero image and tag for each device type. Does this have a major impact on my SEO? Thanks,
On-Page Optimization | | Veevlimike
Mike.0 -
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 -
Can I use Same Keyword for Multi pages Title Tags?
Hello All, I am working on client website and currently they are targeting One Keywords for multi pages. As I have search with Allintitle: Search query and Google display around 37 pages of website which carry same keyword in "Title Tags". I have told to client to change the "Title Tags" but they want that keyword for all relevant pages. So I want to know is that harm in Search Engine Ranking? Note: They have not done the link building activities for multi pages with same Keyword, they are using only in "Title Tags" only
On-Page Optimization | | jemindesai0 -
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 -
Does it matter what text you wrap in an H1 tag?
Typically H1 tags are reserved for page headings, i.e. on a blog post the blog post title is very often the pages H1, or top-level heading as the W3C puts it. On the SEOmoz home page they currently have "SEO Software." as their H1 tag, which seems perfectly reasonable and to me fits the W3C criteria. However, what if the primary keyword for SEOmoz was "seo community" so they decided to wrap just those two words in the sentence that follows on their home page and maintain the existing style of the words "seo community" with CSS. (see attachment) Are there any arguments against doing that? Would Google be able to detect this? If so, would Google care? I do believe the overall importance of the H1 tag has lessened to a degree, however I still believe they are valuable to an extent and would love to hear anyone's thoughts. 7NZcD.png
On-Page Optimization | | TakeLessons1 -
Related keywords in title/H1 tag
Hi, I am trying to improve our rankings for pages with photos/images. For the title is it benificial to include keywords that are almost identical in nature? For example: "Brad Pitt Photos and Images" In Google trends photos and images are both commonly used words so including both seems like it would help. When I search for each one separately in Google (Brad Pitt Photos vs Brad Pitt Images) different sites are returned (except for the ones that include both image and photos keywords). I had read that Google knows that Images and Photos mean the same thing, but the search results do vary. I know stuffing all related combinations isn't good, but selective phrases seem to make a difference. Just want to verify if this makes sense. Thanks
On-Page Optimization | | NicB10 -
Canonical tag for home page
This question was asked before but I didn't see a clear answer to it. If I've got a site that has as it's home page: http://www.mysite.com/, and there are many references within the site back to the home page that point to /index.php, should I include a canonical tag in the index.php page like this: to avoid a duplicate content issue, and to have all juice from both links combined into one?
On-Page Optimization | | wcksmith0