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
-
Canonical home page references - logo link
should a website's logo be linked to the "abc.com/index.html" page or to the "abc.com" domain root? Is one better for the search engine robots?
On-Page Optimization | | mtishman1 -
Is there any benefit to removing brand name from the title tag?
I just signed up for Moz recently, and have noticed that in my crawl errors, I have hundreds of issues with my title tag being too long. My business is selling prints for landscape/travel/nature photography, and I've built these pages dynamically to where the title tag for pages selling individual photos has the title of the photo for sale followed by a hyphen and then the brand name. The same goes for gallery pages "Gallery Name | Brand Name". Would it be worth it to shorten the title tags by removing the brand name from these pages? Or will that actually harm more than help? Thanks in advance!
On-Page Optimization | | shannmg10 -
Difference in using dividers in TITLE TAG
Hi everyone, i know that dividers in title or even title tag doesnt have much of an impact on better rankings. I had great rankings for many keywords, not using dividers or using only one divider. However for better reading comprehension and usability, and also aesthetics i started to use the pipe as my main divider and other secondary dividers. I saw many pages drop in rankings vs other less competent and with less content pages. My format was as follows: Product Brand | Product description - Additional info or local info ie. Fiber Glass MBI | Insulation Batts for Home and Commercial use - Acoustic and Thermal Insulation I changed the format for a handful of pages, and saw immediate results on rankings and traffic on those pages. Product Brand with Product Description - Additional Info ie. Fiber Glass MBI Insulation Batts for Commercial use - Acoustic and Thermal Insulation. Does it sound like something i should implement page wide. I personally like the aesthetics of the pipe as it gives a cleaner look, but the better rankings on the changed pages with using only one divider makes me think. Does it sound familiar, or its just a coincidence, Regards,
On-Page Optimization | | JesusD0 -
IMG ALT tags - should they be the same or the product title?
I have about 300 products. Should I make all my IMG ALT tags with my keywords, such as sea glass jewelry, sea glass necklace, sea glass bracelets? Or, should I make them what their title is, some of which do not pertain to the keyword, such as By the Sea. Some of my products do have keywords in them, but not all. I am hesitant on changing all the titles, as almost all URLs are indexed.
On-Page Optimization | | tiffany11030 -
Tags vs. Categories? What should I use?
I'm starting with a blog (self-hosted wordpress) and I'm thinking of the following content structure so that the readers are easily able to locate relevant content: Background: It's a blog which gives people relevant info about government jobs. To start with we will just be publishing information about these jobs but over a period of time also intend to post content that helps readers prepare for these jobs. In other words, right now it's just about detailed job notifications but in the coming months, we shall also post about preparation-related information. Typically, each of the job notifications can be bifurcated like: Jobs basis industry Banking Railways Clinical, etc. Jobs basis company ABC co. DEF co. XYZ co. etc. Jobs basis State / City City 1 City 2, etc. Jobs basis educational qualification Graduation Post-Graduation, etc. Now, I'm seriously confused how should I structure this data from the perspective of Categories & Tags such that it's reader as well as SEO-friendly. Do note that each of the government jobs post ideally falls in a couple of above mentioned categories. Thanks..
On-Page Optimization | | Shalin.TJ0 -
Wordpress Title Element tag too long?
So apparently when I add the name of the blog within Wordpress, the name of the blog shows up after the the main title of each blog post and page. So trying to keep the title element >70 characters, how does one name the Wordpress blog as mine is/was: Lake Tahoe wedding photographer / Heidi Huber Photography and keep that only on the intro page and leave each page of the blog and the titles of the blog posts to not have "Lake Tahoe wedding photographer added to the end of the Title Element? Anyone have any idea? I also had gone in at one point and updated every single Title on each page/post using Yoast's SEO and the SEOMOZ crawl is still coming up with over 216 caution errors for the title page. Thank you so much for any advice! Heidi
On-Page Optimization | | hmhuber0 -
Alt Tags On "VIEW INVENTORY" Button
I have an E-commerce site that sells events, and tickets. By default it shows 10 events per page, each event with its own "View Inventory Button" which leads a customer to a list of tickets for that particular event. My question is that by default ea event page has 10 listings all with View Inventory buttons, should I just remove ALL alt tags? For example if it was football game with Detroit lions, and the Detroit lions page shows 10 events by default, should each of my View tickets buttons say EX. "Buy Lions tickets"? I am so confused, i have an understanding of how and what alt tags do, but I am afraid to "over optimize the pages? I am just not sure how many times to have this alt tag visible with keywords in them, as the rest of the page is optimized in my descriptions and I would want to avoid keyword stuffing. Currently all that I can see how is "view tickets" view tickets" 10times as alt tags. Any help would be MUCH appreciated!!!! This was a response in the past from someone in the forums 'Depending what language/CMS your website is built on, you will be able to insert a bit of code that dynamically creates a suitable alt tag depending on the product. So whatever page/product template currently instructs the alt tag to be 'buy now', would instead instruct a dynamic name to be generated along the format of 'buy button for"
On-Page Optimization | | TP_Marketing0 -
Title tags missing
I have noticed that some of my title tags have been altered (by Google?) on the SERP. I am only showing the keywords on some listings, not the full title tags that I wrote, this is happening to our competitors as well. Any idea what is going on, one of my clients is looking for answers! Thanks
On-Page Optimization | | USHoleInOne0