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
-
Can I use £ character in title tag?
Hi - Can you use something like "save £££s" in the title tag. Have looked but can't see an answer. Thanks.
On-Page Optimization | | StevieD0 -
Should you do on-page optimization for a page with rel=canonical tag?
If you ad a rel=canonical tag to a page, should you still optimize that page? I'm talking meta description, page title, etc.
On-Page Optimization | | marynau0 -
Does Rel=canonical affect google shopping feed?
I have a client who gets a good portion of their sales (~40%) from Google Product Feeds, and for those they want each (Product X Quantity) to have it’s own SKU, as they often get 3 listings in a given Google shopping query, i.e. 2,4,8 units of a given product. However, we are worried about this creating duplicate content on the search side. Do you know if we could rel=canonical on the site without messing with their google shopping results? The crux of the issue is that they want the products to appear distinct for the product feed, and unified for the web so as not to dilute. Thoughts?
On-Page Optimization | | VISISEEKINC0 -
Is this canonical issue?
WP site has automated canonical on domain.com/ by Yoast plugin but there is URL (/?page=kontaktine-forma) where same domaim.com/ canonical tag was put on. I made 301 redirect to main page. Is this a good practice?
On-Page Optimization | | OVJ0 -
Adding meta description tags to Drupal 6 content
It looks as if a quick improvement to the (inherited) site that I manage would be to add meta description tags to all our pages. But I don't see a user-friendly way to modify the html headers from within Drupal. I'm debating whether to interpose CSS code between Drupal and the final html content, but I'd face a steep learning curve on CSS. Can you suggest a more excellent approach? Thanks!
On-Page Optimization | | marcellu
John0 -
Title tag and URL Optimization
Hello guys, Should the URL reflect the structure of the title of a webpage? This is the old title with the Url: 20mm O/D Black Polypropylene LSZH Flexible Conduit 100m Coil /Product/20mm-o-d-black-polypropylene-lszh-conduit-100m-coil/1352 I changed the keyword position and it looks like this: 20mm Flexible Conduit | O/D Black Polypropylene LSZH | 100m I kept the same Url for now, should I change that too? Thanks
On-Page Optimization | | PremioOscar0 -
Google Results Title Tag HELP
Can anybody tell us why Google changes your title tag in the SERP? If you check out the below link or type in 'days inn', you will see the 2nd result for www.daysinnrc.co.uk just says 'Days Inn' but on the actual site the title tag for this page is 'Days Inn UK | Days Inn | Daysinnrc.co.uk' http://www.google.co.uk/#hl=en&sclient=psy-ab&q=days+inn&oq=days+inn&gs_l=hp.3...4110.4110.4.4297.1.1.0.0.0.0.0.0..0.0...0.0...1c.1.kWVC24EnCHE&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.&fp=7680231318a44bb0&bpcl=35466521&biw=1920&bih=934 This has happened with another site too, does anybody know why? Thanks
On-Page Optimization | | SEOwins0 -
Title tag question
Hi, If I wanted to rank for 'cheap football boots' and 'football boots' which tag would be the best option: 1. Cheap Football Boots (notice both keywords im targeting are included) 2. Cheap Football Boots, Football Boots (both keywords separate) and the keywords sit on an EMD (cheapfootballboots.co.uk) Cheers
On-Page Optimization | | activitysuper0