Mobile app version of vmapp.org
Login or Join
Murray432

: Preventing links with query parameters from being indexed by Google I manage a mobile version of a desktop site. The mobile site has an mdot subdomain and is served from a different server.

@Murray432

Posted in: #Indexing #WebCrawlers

I manage a mobile version of a desktop site. The mobile site has an mdot subdomain and is served from a different server. As part of recommended best practices by Google, I've included a link on the mobile site which allows the user to opt out of the mobile experience and view the desktop site instead.

In order to monitor the number of users who opt out I've appended a query parameter (?MobileOptOut=1) to the corresponding desktop link. To illustrate this:
If a user on the mobile site visiting m.example.com/products/1127 clicks the opt out link he's taken to www.example.com/products/1127?MobileOptOut=1
Trouble is, Google is indexing the page with the ?MobileOptOut=1. Even more incredibly, this page actually ranks higher than the correct version without this parameter (http://www.example.com/products/1127)!

Is there any way I can tell Google's crawlers to ignore pages with this parameter - using Google's Webmaster Tools?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Murray432

2 Comments

Sorted by latest first Latest Oldest Best

 

@Shanna517

Stephen Ostermiller’s answer explains how to configure it in Google Webmaster Tools (which answers your question). If you care about other search engines, too, or in addition,

you could use the Canonical link type.

You could specify the canonical link in a HTTP header, or you could specify it in the HTML:

On www.example.com/products/1127?MobileOptOut=1 (*), add the following link element:

<link rel="canonical" href="http://www.example.com/products/1127" />


Now supporting search engines (or other consumers) know that the document containing this element has the canonical URL www.example.com/products/1127, and they may use this URL (instead of the current one, i.e. the one including the parameter) in their SERPs (or whatever the consumer does).

(*) You may also add the link element when the current page’s URL is already the canonical one.

10% popularity Vote Up Vote Down


 

@Heady270

Google Webmaster Tools does have the ability to tell Googlebot to ignore parameters. You can tell Googlebot to ignore the parameter "MobileOptOut" anywhere it appears on your site.

To do so:


Navigate in Webmaster Tools to Crawl -> URL Parameters.
Click the Configure URL parameters » link.
Click the Add Parameter button.
Put in the name: "MobileOptOut".
Select No: Doesn't affect page content (ex: tracks usage) from the drop down.
Click the Save button.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme