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
-
Alt Tags on multiple product images
Hi I work on SEO for an ecommerce site and wanted to find out how important it is to optimise all images with alt tags. We have alt tags in place, however have not optimised descriptions for the following example images: Front of cupboard Back of cupboard Side of cupboard etc Is this dangerous for SEO if these images all have the same alt tag? We have thousands of products so it would be a huge job to update these, but if it's crucial for SEO we can work through our priorities. Thank you!
On-Page Optimization | | BeckyKey0 -
Title Tags
Say you have a client that specializes in Driveways and you have multiple keywords within one locations. So for instance the keywords are Driveway company, Driveway installers, driveway repairs etc.. How would you set it up? San Diego Driveway Company, San Diego Driveway Installers, San Diego Driveway repairs or San Diego Driveway Company, Driveway Installers, Driveway repairs
On-Page Optimization | | benjaminmarcinc0 -
Wordpress Title Element tag too long?
So apparently when I add the name of the blog within Wordpress, the name of the blog shows up after the the main title of each blog post and page. So trying to keep the title element >70 characters, how does one name the Wordpress blog as mine is/was: Lake Tahoe wedding photographer / Heidi Huber Photography and keep that only on the intro page and leave each page of the blog and the titles of the blog posts to not have "Lake Tahoe wedding photographer added to the end of the Title Element? Anyone have any idea? I also had gone in at one point and updated every single Title on each page/post using Yoast's SEO and the SEOMOZ crawl is still coming up with over 216 caution errors for the title page. Thank you so much for any advice! Heidi
On-Page Optimization | | hmhuber0 -
Why are my tags causing duplicate error?
Hi, When I run an SEO moz crawl it is picking up duplicate errors from my tags. Currently I have these set as domain url/tag/name of the tag. Is this incorrect? Is there anything I can do to stop this being picked up as duplicate pages? Thanks, Eliz
On-Page Optimization | | econley0 -
Title Tag suggestions for blog....
Hi Guys. I have been sorting out title tags for a photography site. I have given each page within the website a different title tag but now Im unsure as what I should do with the blog. Blog title tag is currently "Portrait Photographer London | Company Name Blog" This is fine however wordpress combines the homepage title tag with the title of each blog post and imo makes for a long & cumbersome title...such as : "The Obamas Family Portrait | Portrait Photographer London | Company Name Blog" I'm pretty sure I could do better and should do better but Im at a loss, what do you guys think?
On-Page Optimization | | RankStealer0 -
H1 tag in the footer?
Quick question: I have been scouring SEOMoz.org along with webmaster forums looking for an answer, but we have a person who insists that the H1 tag be located in the Footer. I feel that is is fundamentally wrong because it is not the intent of the H1 tag, and I do not believe it is a best practice. That being said would we see what little value the H1 tag has disappear if we put it in the footer, would we be penalized, or am I being too vanilla by wanting to keep it in the Title position?
On-Page Optimization | | travelclickseo0 -
Confused about meta tags.
(Ok, this might be a stupid question.) I am a little confused about the best practice for the Meta Tag. I know they don't have a real effect on ranking. But I am getting "mixed signals" as to their general use. I've pasted the 2 examples of below that are confusing me. From my Campaign's Crawl Diagnostics: (I have missing Meta Tags) "Meta description tags, while not important to search engine rankings, are extremely important in gaining user click-through from search engine result pages (SERPs). These short paragraphs are the webmaster's opportunity to advertise content to searchers and let them know exactly what the given page has with regard to what they're looking for" From The Keyword Optimization Tool: (Avoid Using Meta Keyword Tool) "Search engines have, for years, ignored the meta keywords tag as a ranking signal. Although it technically does not harm rankings, it can be used by competitors as a method to extract your targeted terms and thus, we recommend against its use. " I would love to hear opinions on this topic. I am trying to decide wether or not to use unique meta tags on every blog post.
On-Page Optimization | | NerdsOnCall0 -
Follow up on "Canonical Tag Placement - Every Page?"
But if it is like Pete said, I don't understand why e.g. SEO Moz has a Canonical Tag on this Page http://www.seomoz.org/blog/canonical-url-tag-the-most-important-advancement-in-seo-practices-since-sitemaps Which leads to the exact same page!? What is the benefit of doing so? Regards
On-Page Optimization | | Here4You0