Canonical tag help
-
Hi,
We have a product which is marketed by affiliates . Affiliates send referrals to our sale page by adding their affiliate IDs to our product page like http://www.mysite.com/products.php?ref= 12345.
We want to avoid the content duplication impression to Google by using canonical tags but we are not clear about its use.
Should we use it on http://www.mysite.com/products.php ( actual page) or we should create temporary pages for each referral id i.e http://www.mysite.com/products.php?ref= 12345 and then add canonical tags to all those pages linking to proper page i.e http://www.mysite.com/products.php ?
Thanks,
shaz
-
Thanks Peter, I've added those urls to canonical tags which are actually being viewed by users i.e simple-url from above mentioned rewrite rule . So now same url is being used both for user and search engine bots
-
Be careful changing your sitewide URL structure, but if you're going to show users the "url-with-extension" version, make that canonical. It's dangerous to use one version for users and another for search, and people will start linking to the one they see.
I'd also 301-redirect the rewrite (add "[R=301]" to the end of the rewrite rule) and link to it internally. If you have one "canonical" version for bots and another for visitors, you'll end up with a mess.
-
Hi,
I've written some rewrite rules in htaccess file to make url names more readable like
RewriteCond %{REQUEST_URI} (.)(simple-url)$
RewriteRule (.)$ url-with-extension.phpShould i specify the "simple-url" or "url-with-extension.php" (urls from above example) in canonical tag as proper url ?
Thanks,
shaz
-
Thanks Peter for the explanation. We only have ref ID so we should be fine by adding canonical tag to only products.php.
All of you have been really helpful.
Regards,
shahzad
-
Thank you Dr. Pete
-
I want to expand on what I think Istvan was trying to say. First, the canonical on "products.php" will consolidate all of the affiliate IDs. That should be a perfectly valid solution here.
The only warning is whether you have other IDs on that page that drive different product views. If it's just one single product page, then the canonical is great here. If, however, you have something like:
http://www.mysite.com/products.php?prod=1&ref=12345
http://www.mysite.com/products.php?prod=2&ref=12345
...where "prod=" (or something like it) represents separate products, then a canonical tag to "/products.php" would collapse ALL of your product pages into one. That's certainly not what you want. So, it does depend a lot on the details. In that case, the "?prod=1", etc. version would actually be the canonical version (you'd have to set the tag dynamically).
-
Yes, the parameter is there only to track the affiliate
Thanks,
shaz
-
But you'd still want to add a rel=canonical on the products.php page so that all "versions" that get indexed with a referrer parameter are pointing to the vanilla products.php as the canonical version?
-
Hi,
I'm afraid your answer is not entirely correct.
Let me quote directly from the source:
"If Google knows that these pages have the same content, we may index only one version for our search results. Our algorithms select the page we think best answers the user's query. Now, however, users can specify a canonical page to search engines by adding a **** element with the attribute
rel="canonical"
to the **** section of the non-canonical version of the page. Adding this link and attribute lets site owners identify sets of identical content and suggest to Google: "Of all these pages with identical content, this page is the most useful. Please prioritize it in search results." -
Hi Shaz,
When you are loading http://www.mysite.com/products.php?ref=12345, you are basically loading http://www.mysite.com/products.php.
In order to resolve the duplicate content issue for each product page you could insert a canonical pointing to itself OR you could eliminate the duplicates by adding the affiliate parameters into Google Webmaster Tools -> Site Configuration -> URL parameters. This way you will tell Google what that specific parameter is.
Or you could use both (if it is a large website, it is advised to do so).
I hope that helped,
Istvan
-
Hi Shaz,
I'm guessing the parameter displays no alternative content, it's simply there for tracking, right?
If so, the canonical tag should simply be added to http://www.mysite.com/products.php
You can also set how you want Google to interact with parameters via Google Webmaster Tools.
Good luck!
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
-
Product Tags
So Opencart allows the use of product tags (please note, this are NOT meta tags) which I believe are used for when customers want to search for a product using the search function. So one of my tags could be ''star wars socks'', and when a customer types this into the search it brings up every product containing the tag for socks. This is all good and well, however, these tags appear on the product page itself, right below the Manufacturer/Brand, and above the price. Will Google look kindly on this or could it be considered as keyword stuffing? Or will Google know they're for search and ignore them? I just need to know whether or not removing them entirely will be a good or bad idea.
On-Page Optimization | | moon-boots0 -
What are "stop" words in Title Tags?
My client is following his GoDaddy SEO Checklist, and it is reporting 5 errors in Title Tags, saying the Titles contain "stop" words. I can't figure out what these are. Any ideas?
On-Page Optimization | | cschwartzel0 -
I need some help...
I am completely perplexed here guys. I have accomplished all of the the things that the On- Page Analysis tool says that we need to perform as far as( Keyword laden page titles and webpages) yet the report comes back and gives the webpage a C and says that we still need to correct these issues. Can anyone explain this? The keywords are: " real estate augusta ga" " property management augusta ga" the address is: www.aubenrealty.com Thanks in advance, C
On-Page Optimization | | AubbiefromAubenRealty0 -
Should I add canonical tag on these pages?
Hi folks I have some pages that used to rank pretty well..but I believe it is affected due to the content similarities. Here is one the sub category pages http://www.ilovebodykits.com/category/98/2/Full-Body-Kits_Duraflex.html the main category page http://www.ilovebodykits.com/category/98/Exterior_Body-Styling_Full-Body-Kits.html These 2 links have very similar contents. The content are dynamic generated by template and I don't think I am able to change content for each individual pages since there are over 2000-3000 of them or more. Should I use canonical tag on the Duraflex.html page to give the main category page all the link juices and credits? There are about 20 other pages like this under this main category. Is it right to canonical all of them? Please let me know if anyone has any suggestion.. thanks
On-Page Optimization | | ilovebodykits0 -
Would adding noindex help?
I had completely forgotten that I have about 20 pages of content on my site that is an exact duplicate of other sites (i.e. obtained from PLR site). I really do not want to delete these pages as they do get a lot of visitors (or did before last algo updates). These visitors are not from organic search but have navigated to the pages from within my site. Question is should I a) add noindex to these pages and then ask google to remove them from index or b) try to rewrite them Many Thanks Simon
On-Page Optimization | | spes1230 -
Do I need canonical link on target page?
I've placed in my head tag on duplicate content pages, but do i need to place it on the target page such as http://www.example.com/index.html too?
On-Page Optimization | | CaliB0 -
Correct use of Canonical link vs 301 redirect
Hi All, Seeking yet more advice. SEOMOZ tools have told me I have duplicate content on one of my sites and I am keen to clean this up. I am not to familiar with the following so thought I would ask. The duplicate content is shown on : www.mysite.com www.mysite.com/index.html Obviously I only see index.html when I check the code so what is the best method of resolving the duplicate content, Canonical or 301? Can you give me an example 🙂 Thanks all
On-Page Optimization | | wedmonds0 -
Opinions on Alt tags
Reading around the web, there are many sources that suggest all images should have an Alt tag attributed to them. This is good for accessibility etc, however there appears to be conflicting interests between this and what works for SEO. Hence many other sources suggest that you include a keyphrase or two in 1 image Alt tag, and then leave the rest blank so as not to dilute the alts on the page. In my experience, the latter appears to be true. However this seems wrong when the Alt attribute really should be used for accessibility reasons and not for SEO - why would the search engines encourage us to provide poorer quality information by harming our rankings if we try to make a website accessible? Interested to hear your opinions and experiences on this subject. Thanks.
On-Page Optimization | | RiceMedia0