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
-
Do keywords within a dropdown menu add any SEO value?
I haven't seen this written about in some time. Has anyone had any experience dabbling in this?
On-Page Optimization | | gregvellante0 -
Logo Image H1 Tag SquareSpace
We have a site hosted on SquareSpace: Roomhance.com Going through the on-page optimizaton tool, we noticed that the H1 tags weren't fully optimized. If you click on view source on the page, it shows 2 H1 tags on the home page: id="logoImage"><a <span="" class="html-attribute-name">href</a><a <span="" class="html-attribute-name">="</a>/">src="//static1.squarespace.com/static/5bcca055ab1a62465f5b9ee7/t/5c18feb270a6adf771765799/1588613682225/?format=1500w" alt="Virtual Staging For Real Estate | Roomhance" /> style="text-align:center;white-space:pre-wrap;">Virtual Staging The 2nd one shown above it the H1 tag we want. I'm wondering if the H1 tag in the logo image is hurting us for SEO? Can't figure out how to modify it in SquareSpace.
On-Page Optimization | | vikasnwu0 -
Canonical Question For Different Languages
My client has a site that supports different languages in the following structure: www.domain.com - English version www.domain.com/IT - Italian version www.domain/DE - German version etc.... I have set the languages up within Webmaster Tools but do I need to set up the canonical tag for all internal pages as they are basically the same but just in a different language i.e. www.domain.com/index.php is the same as www.domain.com/DE/index.php but in a different language. Thanks
On-Page Optimization | | bigfootdigital0 -
Head description tag, what now
Recently I heard Google virtually dropping the description tag for seo scoring? and it takes the data off the page, however one of my clients description is just pulling a url rather than any content from the page. is there some way thats ethical to suggest a description to google?
On-Page Optimization | | Shuffled0 -
Does the title tag on the home page affect sub-pages?
Hello. I am thinking of changing our home page title tag to include our two most valuable keywords from two of our sub-pages. Would this help the rankings of those two sub-pages? Thank you!
On-Page Optimization | | nyc-seo0 -
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 -
Site wide 301 or canonical links.
Hi guys, I'd like add code to my header file to specify www. as opposed to just http:// for the canonical links across my entire site. How can I do this? I'd like it to be site wide code that I can just add to my header.php file which is included across the site.
On-Page Optimization | | absoauto0 -
Canonical URLs and SEO
After publishing my new wordpress website my on page analysis shows two canonical urls on my homepage. In checking the source code the Yoast SEO plugin states my canoncial url is www.homepage.ca/ This is the only one showing. Having said this I do not add the trailing slash to anything on my url structure. Could this be why the on page analysis tool says there are 2? If so is there any way to resolve this?
On-Page Optimization | | casper4340