Developer forum

Forum » Development » rel canonical on products

rel canonical on products


Reply
I need some way of pointing searchengines towards the original detail page for products.

We run a nation wide chain business website solution. It has 20+ stores, each with it's own website, and one general website. All websites feature a shared number of products and product groups. On top, each branch has their own products, on the same website.

It is of the highest importance, that shared products link with meta rel canonical tag to the main bussiness site, that feature all shared products. So Google know not to index shared products.

But the meta tags are on the master page, and products are in the product template. How do I solve this EXTREMELY importent issue, currently costing thousands of monthly visitors from searchengines.

 http://www.seomoz.org/blog/cross-domain-canonical-the-new-301-whiteboard-friday

Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer
Create a notification subscriber of before render:

http://engage.dynamicweb-cms.com/api/extensibility/?Dynamicweb~Dynamicweb.Notifications.eCommerce+Product~BeforeRender.html

In that, check that you are displaying 1 product (not in a product list).

Then provide the logic deciding if this is the dealer or master site.

If on a dealer site - set the meta tag:

pageview.current.meta.add("[link rel="canonical" href="http://www.themasterdomain.dk/someproduct.aspx"]")
Votes for this answer: 0
 
Reply
 You are my hero!

 

You must be logged in to post in the forum