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
-
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 -
Catergories not appaearing in google help!
Hi I call upon the seomoz experts again this time regarding getting our categories to show in google when you type in our company name Tidy Books. Ive added 3 pictures 1 of our UK store www.tidy-books.co.uk 2 of US store - www.tidy-books.com 3 of a competitor who has over taken us and had the Google mark up we require. Would some love help some help in the last few months we've lost a few places and traffic is going down Thanks everyone ItiqzWV 6g8e1Zy I2qEJCc
On-Page Optimization | | tidybooks0 -
Rel="canonical" at the same page
Hello Everyone!! We have a Joomla Site and in the template we have a php function that create the **link rel="canonical" **and in the href inserts the same page url. For example, if the we do a search and the url have some cookies. That Url is gonna be the **rel="canonical" **for that page. Is it working correctly? We need an advice to to set it up correctly! Thanks!
On-Page Optimization | | mycostaricalink0 -
Creating the META title tag?
I am having a hard time figuring out what the best META title tag is for my site. I have a deal blog that focuses on Amazon deals but I also write articles, top ten lists, etc. It is baby and mom related. Is there a tutorial for this? Should I just experiment and watch my organic search results? TIA!
On-Page Optimization | | dealblogger0 -
Cnnonical Issue! Plz Help
Hi, I'm having this problem for one of my website, say www.abc.com. Certain information in the site is long and thus required to be put into several pages. For example, let say there is a section for the "List of Business Schools in Canada", this is a huge list and thus divided into several pages. The main URL is like this www.abc.com/business-schools/list-of-business-schools-in-canada.html & after on its goes on like www.abc.com/business-schools/list-of-business-schools-in-canada1.html www.abc.com/business-schools/list-of-business-schools-in-canada2.html www.abc.com/business-schools/list-of-business-schools-in-canada3.html Etc. Now as Google is considering these pages as canonical what should I do suppose do what with it? I've examine that rel="canonical" tag is used on every pages (canada1.html, canada2.html etc.) and the canonical URL is set to the main list-of-business-schools-in-canada.html page. So, why is that Google is picking this up as canonical? Have I made a mistake in placing the rel= canonical tag ? Please suggest. Thanks in advance,
On-Page Optimization | | ITRIX0 -
Changing Title Tags once Indexed and positioned?
Hello, Would it be wise to change title tags on a page that is optimized and ranked already in google? These are sports pages, and the teams we are targeting are now in the playoffs so we wanted to insert that into our Title? Thanks!!
On-Page Optimization | | TP_Marketing0 -
Will a new domain name help rankings
If I purchase a domain name that links to my site with the new domain name being keyword specific....will that help boost rankings in Google? Reason I ask is that a particular website always ranks higher than ours because of their domain name (keyword specific). They are currently not even "open" and they still manage to rank high. I checked for links with the seomoz tools but did not see any high links etc.. Thanks!
On-Page Optimization | | teachcsg0 -
Rel Canonical - Could someone please help confirm something?
Morning Mozzers, I'm looking at a site (www.zitan.co.uk) and making a few recommendations for SEO, one of the things I've spotted is something weird with rel canonical. It looks (to me) as if they've got almost every single page set with this tag: rel="canonical" href="http://www.zitan.co.uk" /> I'm 99% certain that this means that every page on the site (that has this tag) is pointing all link juice / authority back to the homepage? If someone could please check and just confirm that, I'd really appreciate it. Thanks in advance, James
On-Page Optimization | | JamesMio0