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 -
Canonical: Same content but different countries
I'm building a website that has content made for specific countries. The url format is: MyWebsite.com/<country name="">/</country> Some of the pages for <specific url="">are the same for different countries, the <specific url="">would be the same as well. The only difference would be the <country name="">.</country></specific></specific> How do I deal with canonical issues to avoid Google thinking I'm presenting the same content?
On-Page Optimization | | newbyguy0 -
Is it okay to leave off H1 tags?
I know that SEO uses H1 and H2 mainly and there should only be one H1 and there can be multiple H2 tags. But the site I’m reviewing generally has no H1 on a page and multiple H2 tags. The Page Title reflects the title of the page, so maybe this is okay as is? They have the styling down just so, so I don’t want to make them change it if it’s okay.
On-Page Optimization | | amybethmegjo0 -
Rel canonical tag on a single page site?
I have a wordpress theme site which essentially is all in 1 page. Do I need to use rel-canonical tag? It would just loop?
On-Page Optimization | | graftene0 -
Are lots of wordpress tags hurting my SEO?
When I started my blog 4 years ago and didn't know what I was doing, I set it up to be organized using tags (no categories). I have around 20 tags and around 250 articles. Each blog article typically has 2-4 tags associated with it. There is a lot of topic overlap and putting each post in only one category wouldn't work. I have been no indexing, do follow my tag pages because they are just a list of post titles, but I'm wondering if the whole situation is hurting my SEO. On my homepage I have a sidebar menu/list of all the tags so I have link juice going to no indexed (but dofollow) pages. Reducing the number of tags would be bad for user experience because people who were looking for info on a specific topic wouldn't be as easily able to find what they want. Ideas?
On-Page Optimization | | KateV0 -
Help With Disappearing Rankings
Hi Guys, I am stumped!!. I have been asked to look at this site http://www.quarrymotors.co.uk. Which has lost rankings for "BMW Parts" since a redesign of the site. Through a bit of detective work I have managed to get hold ot the wayback machine version of the old site here http://web.archive.org/web/20080520104847/http://www.quarrymotors.co.uk/ And according to the onpage factors I have compared with SEOquake, the keyword density, title tag, description is almost identical. I have checked webmaster tools and analytics (I only have data from June 22nd) So I am unable to confirm what traffic was available before the redesign. All other keywords:- BMW Breakers BMW Spares Are on the first page but this keyword "BMW Parts" is on page 22??!?. I have checked open site explorer and it's not a case over optimisation of anchor text as a majority of the keywords are pointing back to the url and it's one of the cleanest profiles I have ever seen. The only issue, which it can't be is right at the top left corner of the site is a piece of text "Used BMW Parts & Spares" Any help would be gracefully appreciated Kind Regards Neil
On-Page Optimization | | nezona0 -
Meta tag "revisit after" - useful?
Hi everybody, I've rarely seen the "revisit after" meta tag during the last 1,5 years. As some of my current client websites are still using it and I'm not sure, if it's still usefull/has any effect, I'd like to hear from the community. Any advices/hints/experiences with the tag? Thanks in advance and cheers from Germany Sven
On-Page Optimization | | targi420 -
Is there a tool out there I could use to help me compose unique meta tags in bulk?
We have a website that has hundreds of crawl errors due to duplicate meta tags. I could do with a tool to help compose unique ones in bulk so we don't exceed the recommended character limit and follow any other best practices.
On-Page Optimization | | WebDesignBirmingham0