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
-
Is Bing also ignoring meta Keywords tags?
Hi, I originally asked about pros (or lack of them) when it comes to using meta keywords tags here https://moz.com/community/q/importance-or-lack-of-meta-keywords-tags-and-tags-in-drupal. It was most likely related to Google, I guess. Is that the same if it comes to Bing as few sources are not sure how this SERP consider using meta keywords tags and people only speculating. Anyone has any kind of "confirmed" responses or experience? Thank you in advance.
On-Page Optimization | | Optimal_Strategies0 -
Rel Canonical help
Is it possible to confirm this to me please? My understanding of the rel canonical tag was to tell google of duplicate content? so for instance product 1
On-Page Optimization | | TeamacPaints
www.ourdomain.co.uk/products/category/subcategory/theproduct1 Product 1a
www.ourdomain.co.uk/products/category/subcategory/theproduct1a same content just a different colour would be rel canonical'd to Product 1 as thats the main product, is my understanding correct? Now here is what I have discovered. www.ourdomain.co.uk/products/category/subcategory/theproduct1 has a rel canonical tag that reverts back to www.ourdomain.co.uk/products/ which isn't optimized as such its just a generic catalog page. This is inccorect and google will dismiss the actial product and revert to the generic catalog page? any help would be great.0 -
Joomla Home Page Title Tag Issue
I have got a site that requires to have a custom title tag for its home page (primarily). Its using Joomla 3.3.1. I am not using any SEO components as of now. I have checked the the global configuration, It has Polymer Resources as the site name. I am also attaching copy of the Menu Manager>Main menu> home I would like to see the Home Page browser Title to read: Custom Engineered Plastic Resin | Polymer Resources But my current settings does not let me change the home page title. Any help in this regard will be highly appreciated. Thank you in advance 7yfHVw0.png KzouLB7.png
On-Page Optimization | | ArthurRadtke0 -
What is the Impact of Canonical to a Canonical Page?
hey folks, How does google respond to this, canonical to a canonical page? i.e page A is canonical to Page which is already/also canonical to PAGE C. Thanks In advance AK
On-Page Optimization | | AnkammaRao0 -
Title Tag, Internal Categories, Long tail
Hello, For internal categories - those that are not in the main navigation - we're optimizing for the long tail. How do you optimize the title tag for the long tail? For example if the internal category is about Men's shoes -> "Adidas Crosstrainers" and you already have a page in the main navigation with "Adidas Crosstrainers" in the title, what kind of title do you use for the long tail category? These categories are usually for the convenience of the user. I assume they should each have at least 500 words in them to do the best long tail searches. Thanks.
On-Page Optimization | | BobGW0 -
How to ALT tag correctly many similar images?
scenario: I have a product page with some text about the product and 12-15 different images af the product: details, colours, different views... how should I name an alt tag them correctly, been them actually really similar? Is it keyword stuffing to use the same name containing a relevant keywords?
On-Page Optimization | | DavideM0 -
Title tag formatting
So I thought I had Title tags cracked... Unique to each page Priority phrases at the start Under 70 characters inc spaces No spamming of keyword phrase Brand at the end But do people believe that this structure is bad? <keyword 1="" phrase="">| <keyword 2="" phrase="">|<brand></brand></keyword></keyword> and that Title tags should now be structure more like full sentences? And does using the same keyword phrase on several pages dilute or cannibalize results? Thanks
On-Page Optimization | | ToonyWoony
Kate0 -
What does Canonical mean?
Hi, I was wondering what is meant by canonical? I ran a test on my site and in the notices, SEOMOZ came back with a total of 90 canonicals. As far as I can tell, it refers to the preferred page (not really sure what that means though). I thought initially it was talking about duplicate content, but all the pages are totally different. There is no duplicate content on any of he pages that it lists. So I'm not sure how to fix this. Thanks for the help. Don
On-Page Optimization | | ge01734000