Thursday 24 May 2012

Using Facebook's Insights Analytics to Expand Your Audience



This article takes a closer look at ways merchants can utilize Facebook's administrative console and Insights analytics platform for marketing purposes.
These newly revised sections contain information that can help merchants gain a deeper understanding into (a) who is visiting their pages, (b) the types of content the visitors engage with, (c) the page's reach across the Facebook ecosystem, and (d) how to improve the page's performance.

1. Admin Panel

The Admin Panel provides a snapshot of page activity and engagement.

The first thing page administrators see when they log onto their page is the "Admin Panel." It contains a snapshot of the latest page activity and is divided into five parts.
  • Notifications. This area lets admins know what posts to the Timeline page visitors have liked.
  • Messages. Facebook pages now allow fans and visitors to send private messages to page owners. Messages that have been submitted will appear here.
  • New Likes. This is a list of people who have liked the page itself.
  • Insights. This is a thumbnail-sized graphic showing the number of posts, how many people have engaged with the content, and the content's reach based on those interactions.
  • Page Tips. Facebook uses this section to provide tips, as well as promote advertising messages.
Administrators can remove the panel from view by clicking the "Hide" button located in the upper right-hand corner.
Also, located to the left of the Hide button are three others.
  • Manage. This lets administrators edit the page, see an activity log, and view banned users.
  • Build Audience. Click this button to invite email contacts to the Page or create an ad.
  • Help. This links to help files, a downloadable PDF guide about Insights, a step-by-step tour of the administrative console, and a learning video.

2. Insights

The Admin Panel provides "at a glance" information. To gain a more comprehensive understanding of page activity and user behavior, click the "Insights" thumbnail graphic, which links to a page containing a larger version, along with other information.
Insights provides comprehensive data about Page performance.

Across the top of the Insights page are four categories: Overview, Likes, Reach, and Talking About This. It is important to monitor these four metrics to assess the audience size and how it is engaging with page content.

  source:practicalecommerce.com

Tuesday 22 May 2012

SEO Site Migration Checklist


Migrating a site to a new platform or domain, or implementing a major redesign, is one of the most stressful situations in search engine optimization. The potential for massively impacting organic search traffic and sales is higher during these launches than at any other time. But with planning and priority on the SEO impact of the launch, it’s possible to actually improve SEO performance after a major launch event.
However, most sites neglect to include an SEO professional in the planning, design, development and launch phases of the project, typically resulting in a loss of SEO performance post-launch. While an experienced SEO professional can certainly come in afterwards to guide the team through a strategy to revive the site’s SEO performance, this process typically takes three to six months of planning, rework from the design and development teams, and a loss of traffic and revenue in the interim.
Speaking from experience helping clients through many platform changes, redesigns, domain moves and other assorted SEO pitfalls, these are my best tips for arriving at the other end of the launch with your search engine rankings safely intact.

Migrations on the Same Domain

Most migrations occur on the same domain, where a site needs to implement a new ecommerce platform perhaps, or is redesigning the site for better branding and usability. Even if the subdomain, domain and top-level domain ("TLD," such as .com) don’t change, the URIs are likely to change in these situations. And anytime a URI changes there will be an impact on SEO.
URIs are the name by which search engines know your pages. It’s how they’re stored in the engines’ indices. Changing those names without warning or helping the engines understand how the new URIs relate to the old URIs they have indexed is like starting all over again with fresh pages that have no history or link popularity. That’s essentially SEO suicide.
The first step is to bring in an SEO professional at the start of the project. Until the wireframe redesign stage, it’s unlikely that the SEO will do much more than absorb information, but that background can be invaluable when it comes time to actually making recommendations. The SEO professional should be involved all the way through design, development, pre-launch testing and post-launch monitoring.

URLs and Migrations on the Same Domain

Whenever possible, keep the URLs the same. In a cosmetic redesign, where the same pages are getting new skins, this should be entirely possible. In a more complex redesign or a platform migration, URIs are likely to change. When there’s a one-to-one match between pages, make every effort to use URL rewrites to convert the new URI to the same old URI that the engines know and love for that page. For example, if a site has a sweater category page before and after the redesign or migration, and the purpose of that page will remain relatively constant, then the platform’s new URL of http://www.jillsclothingsite.com/sweater-x147gh?cid=43 should be able to be rewritten to the pre-migration URL of http://www.jillsclothingsite.com/sweaters/. Even if URL rewrites are only done for the most important pages of the site – those that drive significant organic search traffic and sales and the major category pages – it’s better than changing every URI on the site. Protect the majority of your organic search traffic and sales by keeping the same URIs for the pages that drive the most organic search traffic and sales.
If the URIs have to change, 301 redirects are the best bet to preserve as much of the site’s link popularity and transfer it to the new URIs. This transfer is critical to not only infuse the new URIs with link popularity and to communicate to the search engines that the URI that they have indexed has moved and should be de-indexed and replaced with this new URI. If you’re unable to use 301 redirects for some very important reason, use cross-domain canonical tags — explained here in Google Webmaster Tools. It’s important to note that canonical tags are suggestions to the search engines while 301 redirects are commands, so be certain that 301 redirects are truly not a viable option before settling for canonical tags.
Google Webmaster Tools explains the use of cross-domain canonical tags.

Some marketers try to play it safe by running the old and new sites simultaneously to ensure that users don’t encounter broken links from various marketing channels. Sites that do this must apply 301 redirects to the old URIs, or the old and new sites will be considered full-site copies of each other and could face duplicate content issues. At the very least, the engines will serve a confused mixture of the old and new URLs to searchers, throwing off the site’s ability to measure the success of the transition to the new site. At worst, the site could drop out of rankings entirely because the new site will be indexed based on internal links but the old orphaned site will have the benefit of the external links its pages have earned over the years. So a few of the strongest old pages may still rank, but the new pages won’t have the benefit of any external links to help them rank and drive traffic and sales.

Navigation and Migrations on the Same Domain

Oftentimes a new design rejiggers the navigation, adding or removing categories and subcategories, merging or splitting categories and subcategories, adding or removing rollovers or other features. Check the URI implications of any navigation change very carefully. Copy all of the URLs in the header navigation and all the URLs in the side navigation and compare the list with the URLs produced on the development site for the header and side navigation. If there’s a large degree of change, expect a similarly large degree of risk to the SEO performance of the site. Push to keep the same URI or at lease do 301 redirects to preserve as much link popularity and trust as possible.
Once the SEO professional can get access to the development or testing environment, he or she will want to identify how many URIs are changing site-wide and whether new sources of duplicate content are being generated. The easiest way to do this is to crawl the site — see "8 Reasons to Crawl Your Clients' Sites," my previous article on that topic. Filtering and sorting in particular tend to generate unwanted pockets of duplicate content, as do some implementations of breadcrumb navigation. Crawling the site and sorting the list of resulting URLs alphabetically will show where multiples of the same base URI are duplicated with parameters of subdirectories to enable these features.
A simple canonical tag referring back to the default URI will resolve any of these sources of duplicate content. In this case, a 301 redirect is undesirable because the URIs have to exist, — i.e., not redirect back to the base URI — for human usability. For example, placing a 301 redirect on a URI that sorts the products on a category page so that products are shown by price would result in the user simply ending up on the default sweater page again without the sorting order they requested. That would be terrible usability. Because the canonical tag affects only search engine crawlers, it’s a safe alternative to canonicalizing in instances where customers need to see the page but it’s redundant to search engines. Make sure to identify and resolve duplicate content issues before the site launches, however, because once the horses are out of the barn — the duplicate content is live and indexed — it’s a lot harder to get them back in that de-indexation barn.

 source:practicalecommerce.com

Friday 18 May 2012

Making more pages load instantly

At Google we're obsessed with speed. We've long known that even seemingly minor speed increases can have surprisingly large impacts on user engagement and happiness. About a year ago we rolled out Instant Pages in pursuit of that goal. Instant Pages makes use of prerendering technology in Chrome to make your site appear to load instantly in some cases, with no need for any extra work on your part. Here's a video of it in action:



We've been closely watching performance and listening to webmaster feedback. Since Instant Pages rolled out we've saved more than a thousand years of ours users' time. We're very happy with the results so far, and we'll be gradually increasing how often we trigger the feature.

In the vast majority of cases, webmasters don't have to do anything for their sites to work correctly with prerendering. As we mentioned in our initial announcement of Instant Pages, search traffic will be measured in Webmaster Tools just like before this feature: only results the user visits will be counted. If your site keeps track of pageviews on its own, you might be interested in the Page Visibility API, which allows you to detect when prerendering is occurring and factor those out of your statistics. If you use an ads or analytics package, check with them to see if their solution is already prerender-aware; if it is, in many cases you won't need to make any changes at all. If you're interested in triggering Chrome's prerendering within your own site, see the Prerendering in Chrome article.

Instant Pages means that users arrive at your site happier and more engaged, which is great for everyone.







source:googlewebmastercentral.blogspot.in

Tuesday 15 May 2012

Using Google Analytics Advanced Segments to Find Actionable Data


Editor's note: We welcome Jaime Brugueras as our newest contributor. He's the co-founder ofMineful, a marketing and data-analysis firm. For us, Brugueras will address analytics, measurement and conversion matters. His first piece, on creating "Advanced Segments" in Google Analytics to measure traffic and drive conversions, is below.
Recent updates to Google Analytics have changed the layout and functionality of its dashboard. But the tools available to business owners and marketers remain there, and are more effective than ever.
One of the most powerful tools is "Advanced Segments." Google Analytics automatically parses your site data out into small, easily understood statistics by default, giving you a general understanding of your web performance. With Advanced Segments, you can tighten your focus on a few key categories of data you are especially interested in, giving you direct metrics for measuring the success of a website or campaign. If Analytics’ default measurements are a broad viewpoint on your entire website’s performance, Advanced Segments is a pair of high-power binoculars that allows you to hone in on a very specific point of interest.
Create a "New Custom Segment" in the "Advanced Segments" section. Click "Enlarge This Image" for a wider view.
To access Advanced Segments, select the Standard Reporting tab — see the graphic above — from the orange bar at top. The dashboard should open to the default overview page. If it doesn’t, select the "Audience" tab on the left, then "Overview." Advanced Segments will be directly under the “Visitors Overview” title on your dashboard. Click the “New Custom Segment” button to the right, under the empty list “Custom Segments.” This will open the Advanced Segment creator, a list of variables you define to customize your data the way you see fit.
Ordering your variables to reveal actionable data should come in the form of answering a question: What do you need to ask to find the desired data? Your answer can be programmed into Advanced Segments using simple “AND” and “OR” logic. If you are looking for the amount of traffic you are getting from social campaigns from multiple specific regions, you can select Landing Page from the drop-down menu, then define the landing page for your social campaign, then under “AND” add the Region dimension, and define which regions you are polling from. If you offer a variety of products, you can select the Search Refinements metric and track how often customers continue searching to locate the exact product they are searching for on your website. Which search terms are driving the most business to your website? What referral sites and which searches are sending you hits with low-bounce-rate—potential customers that actively want to explore your website for a long period of time? No matter how many intricate variables are involved, Advanced Segments can produce the metrics you need in real time.

Advanced Segments for Social Media

For example: you’ve just started a brand new social media campaign engaging Twitter users with a new product. You set up a branded Twitter account that posts interesting content, followed by links directing traffic back to your main website. With a few mouse clicks in Advanced Segments, you can monitor how many hits your Twitter campaign produces for your main web page and compare the traffic alongside your everyday direct and search-traffic rates. A few more clicks will allow you to track how many new conversions your Twitter campaign lands your business. Actionable data like the quality and source of conversions is vital to the success of a business as a whole, not just the sales and marketing department.
This custom segment is called "Social source." It measures traffic from LinkedIn, Twitter, Facebook and Hootsuite. Click "Enlarge This Image" for a wider view.

Advanced Segments for Search Engine Optimization

One great way to use Advanced Segments is to measure and understand how and why organic traffic patterns change. Most sites' organic traffic comes from searches that contain the name of the company, this is called branded traffic. You can use advanced segments to first separate all keyword searches that contain your store’s name and create a segment called say “branded search.” Imagine that conversions from new customers coming from organic search were down but overall traffic numbers were as expected. You want to know which organic searches have declined lately. By separating the keywords into various segments — for example branded, non-branded, apparel and accessories — you can understand which keyword categories and specific keywords suffered a drop in traffic. This allows you to take action right away and improve organic rankings for those keywords that have suddenly underperformed.
The power of Google Analytics and the Advanced Segments tool lies in its versatility, ease of use, and graphic visualizations of data points for essential business and marketing benchmarks. It doesn’t take a professional data mining team to extract fine points of data from your company’s online statistics. With Advanced Segments, the power to instantly sort and measure highly focused points of actionable data is as easy as defining a few variables and clicking "Save." Once you have fine-tuned your Advanced Segments, measuring success and finding the actionable data you need to move forward is a simple process that can generate dynamic progress. With easily understood graphs and charts, you can spend less time worrying about understanding your online statistics and more time using them strategically to improve your business practices.


 source:practicalecommerce.com

Thursday 10 May 2012

8 Social Shopping Sites for Ecommerce Merchants



Today's social shopping sites are the online equivalent of old-fashioned swap meets and flea markets. They bring thousands of buyers and sellers together in a social environment where shoppers can rely on friends to help them shop and connect with merchants.
These social marketplaces are also channels through which smaller merchants can get products discovered outside their own ecommerce websites.
Here is a list of eight social shopping sites worth checking out.

1. Etsy


Etsy is designed for merchants who sell handmade and vintage products.

Etsy may be the leader of the social marketplace movement. It provides very small businesses with the ability to sell handmade and vintage products to consumers in bazaar-style fashion.
From an ecommerce perspective, Etsy makes it possible for sellers to move from hobbyist status to full-time businesses. And, for buyers interested in handcrafted or vintage items, it makes the job of product discovery much simpler. Socially, the site functions as an online community where buyers and sellers can come together to discuss the products they love.
--

2. Envato

Envato specializes in digital products such as WordPress themes.

Envato Marketplaces allow anyone to buy or sell digital goods like WordPress themes, background music, Adobe After Effects project files and Flash templates. The marketplaces have more than 500,000 users, authors and buyers. New files are added daily.
--

3. Threadflip

Threadflip is similar to Etsy, but focuses on women's clothing.

Threadflip is an Etsy-like social marketplace designed to let women sell the items they no longer wear, or share their own designs. Customers use credits to shop the closets of favorite designers, collectors, and friends, or cash out on products they have sold.
--

4. Svpply

Svpply is a consumer-driven shopping community.

Svpply is a consumer-driven online community where registered users share products with other members. They can use the site to keep track of products they want to purchase at a later time, or to discover products they didn’t know existed.
The site's members reference products from 75,000 stores, and over one million products are included in Svpply's database. Merchants can participate by adding a Svpply button to product pages on their websites to encourage members to share them within the community.



source:practicalecommerce.com

Tuesday 8 May 2012

Navigation, Dashboard and Home page

fter announcing Webmaster Tools spring cleaning earlier this quarter, it’s time to do the job. There are a few changes coming along: an updated navigation, revamped dashboard, and a compact view for the home page site-list.


Here's the new sample Webmaster Tools Dashboard for www.example.com

We’ve regrouped the features in Webmaster Tools to create an improved navigation structure (shown on the left-hand side of the above image). We distinguished the following groups: Configuration, Health, Traffic and Optimization. Each group represents a related set of functionality:
  • Configuration: Things you configure and generally don’t change very often.
  • Health: Where you look to make sure things are OK.
  • Traffic: Where you go to understand how your site is doing in Google search, who’s linking to you; where you can explore the data about your site.
  • Optimization: Where you can find ideas to enhance your site, which enables us to better understand and represent your site in Search and other services.

If you have a moment, please take time to familiarize yourself with the new Webmaster Tools navigation. Some features were slightly renamed, such as HTML Suggestions became HTML Improvements, however the functionality remains the same.

Hoping you’ll find the new navigation useful, we also think you’ll like the new Dashboard. At the top of the Dashboard you can see recent, important, prioritized messages regarding your site. Just below that, you’ll find another section which provides a brief summary of the current status of your site. There are three widgets displayed: Crawl Errors, Search Queries and Sitemaps, each representing a different navigation group: Health, Traffic and Optimization (respectively). We know your time is valuable. With the new Dashboard, we've surfaced more messages and charts to let you see how your site is doing at a glance. Take a quick look before diving into the details.

Finally, those of you who manage a large number of sites can choose to view your site-list in a 'Compact' layout, without the large site-preview thumbnails. Don't worry, if you want the more expanded layout you can always switch back.


Compact layout of the Home page





source:googlewebmastercentral.blogspot.in

Sunday 6 May 2012

SEO Professionals Can Harm an Ecommerce Business

Like Bon Jovi’s song, “You Give Love a Bad Name,” some search engine optimization companies give that profession a bad reputation. Practical eCommerce recently fielded a question from a reader wondering why his site was being penalized for work his SEO company had done on his behalf. It doesn’t seem fair, he complained. He’s right, it doesn’t seem fair when you’ve trusted a company to improve your site’s organic search performance and instead the company makes it worse. Shouldn’t the SEO company be punished instead of the hapless site owner? It just doesn’t work that way, whether it seems fair or not.
Anyone can call himself or herself an SEO professional, just like anyone can call himself or herself a web designer, a landscaper, a chef or any number of other professions. Skill and knowledge levels vary greatly in any industry, as does the professionals’ interest in providing a fair service for a fair price.
Is the company ethical, does it strive to provide the best service possible for every client, or is it just out to make a quick buck? For ecommerce merchants looking to retain an SEO professional, here’s how to tell the difference.

Demonstrated Results for Real Clients

The best way to tell an accomplished SEO from some guy in his mom’s basement is to ask for real examples of SEO success with real clients. No true professional is going to reveal his client’s private data; that would be a breach of confidence and likely a violation of a nondisclosure agreement. But there are ways of communicating success without divulging specific traffic or financial information. This could include the following accomplishments.
  • "Created a program to increase backlinks to a critical page by 300 percent in one week’s time, resulting in a 20 percent increase in organic search traffic over one month."
  • "Increased organic search visits to the client’s most profitable category page by 53 percent over six months."
  • "Improved organic search conversion rate on product pages from 2.3 percent to 4.5 percent."
Conversely, some examples might sound impressive but could be low-quality tactics in disguise. Here are potential samples.
  • "Built 500 links to the client’s site."
  • "Increased top 3 rankings by 400 percent."
  • "Optimized meta keywords across the entire site."
The difference between these two sets of examples is that the first set demonstrates measurable impact to the client’s bottom line. SEO professionals, after all, are supposed to sell product, not feel happy about hours spent on the project.
The second set of examples, by contrast, speaks to numbers but not numbers that matter. The agency built 500 links? But from where and to where? Are we talking comment spam and SEO directories? Were the links from relevant sites that have any link popularity to pass on to the sites they link to? And that’s just the first example. Ask the agency to tie their actions back to traffic, orders and revenue increases. If it can’t or won’t for even a single client, I’d be reluctant to hire them.

Industry Reputation

Search marketing is a relatively small and well-networked industry. Ask around to see if your peers who know SEO have heard of the agency you’re considering, or the person who will be working on your account. Search on Google for the agency and your primary contact there. Ask questions on your social networks like LinkedIn, Twitter, Google+ and Facebook. Chances are someone will have heard something about the agency in question, or can perhaps point you to someone who has.
Another telltale sign of positive standing in the industry is whether anyone from the company has been published in an industry publication online or in print. If the agency has its own company blog, that’s a good sign as well, but it doesn't count as being published in an industry publication. Read the recent blog posts. Are they well written, understandable, consistent with what you know to be industry standards? If you can't locate articles or blog posts from the personnel at the agency, ask which publications or other sources they read to stay current on SEO industry trends — and then check those publications out. If they don’t reference, at the very least, Search Engine Land, SEOmoz, or Google’s Webmaster Central Blog, then it’s possible they’re not as familiar with current SEO standards and the state of the industry as they claim.

Pricing

Many think that because organic search is “free” traffic that SEO shouldn’t cost much. But like most things in life, you get what you pay for. Seasoned SEO professionals command larger salaries. In order to pay those salaries, agencies need to charge higher rates. Lower agency rates mean that the staff is most likely inexperienced and more likely to recommend or perform tactics that are questionable or outdated. This isn’t 100 percent true; I was mortified to discover that a new client had paid its last SEO consultant $10,000 for a two-page Word document of rough recommendations. And I have heard of clients that were lucky enough to discover a great SEO professional who was just starting, and who charged very little comparatively. However, by and large, price, experience and quality of recommendations go hand in hand.
When discussing pricing, request a sample or description of the deliverables that you’ll be paying for. Does the firm plan to merely offer suggestions by phone or to deliver, say, an 80-page PowerPoint audit containing data, analysis, recommendations and priorities? Will the firm present it in person, over the phone, or just by email? Is it a one-time project or an ongoing relationship to work with you through the inevitable challenges that come up during implementation? Be sure to get this information in writing.

Manage Your SEO Agency

After you choose an agency, no matter how comfortable you feel with them, you must manage their actions. After all, your site’s organic search performance and sales are on the line. Make sure you follow the agency's recommendations and ask its staff to explain until you’re sure you understand not just what is proposed but why. If the SEO agency will be acting on your company’s behalf — reaching out to bloggers, building links, creating or optimizing content — check its plans before it gets started and check its work afterwards. It’s not that you don’t trust the agency. It’s that the stakes are too high to let go of the reins.
Watch your organic search traffic and revenue trends in your web analytics tools for signs that the SEO program is having a positive or negative effect. Talk about the data with your agency and ask questions about what it means and what actions need to be taken based on the data.

Summary

In the end, hiring an agency and managing its performance is very subjective, despite the presence of objective data and SEO best practices. Listen to your instincts, and if that fails consult with Google Webmaster Central forums or friends who know more about SEO than you do and ask their advice about the tactics your agency is recommending or the answers it gives to your questions. It’s better to nip a bad agency decision in the bud quickly than to ride it out and see if it improves. By that time, the damage could be done and you’ll be left holding the bill and the broom to clean it up.


source:practicalecommerce.com

Tuesday 1 May 2012

Responsive design – harnessing the power of media queries

We love data, and spend a lot of time monitoring the analytics on our websites. Any web developer doing the same will have noticed the increase in traffic from mobile devices of late. Over the past year we’ve seen many key sites garner a significant percentage of pageviews from smartphones and tablets. These represent large numbers of visitors, with sophisticated browsers which support the latest HTML, CSS, and JavaScript, but which also have limited screen space with widths as narrow as 320 pixels.

Our commitment to accessibility means we strive to provide a good browsing experience for all our users. We faced a stark choice between creating mobile specific websites, or adapting existing sites and new launches to render well on both desktop and mobile. Creating two sites would allow us to better target specific hardware, but maintaining a single shared site preserves a canonical URL, avoiding any complicated redirects, and simplifies the sharing of web addresses. With a mind towards maintainability we leant towards using the same pages for both, and started thinking about how we could fulfill the following guidelines:

  1. Our pages should render legibly at any screen resolution
  2. We mark up one set of content, making it viewable on any device
  3. We should never show a horizontal scrollbar, whatever the window size


Stacked content, tweaked navigation and rescaled images – Chromebooks
Implementation

As a starting point; simple, semantic markup gives us pages which are more flexible and easier to reflow if the layout needs to be changed. By ensuring the stylesheet enables a liquid layout, we are already on the road to mobile-friendliness. Instead of specifying width for container elements, we started using max-width instead. In place of height we used min-height, so larger fonts or multi-line text don’t break the container’s boundaries. To prevent fixed width images “propping open” liquid columns, we apply the following CSS rule:

img {
  max-width: 100%;
}


Liquid layout is a good start, but can lack a certain finesse. Thankfully media queries are now well-supported in modern browsers including IE9+ and most mobile devices. These can make the difference between a site that degrades well on a mobile browser, to one that is enhanced to take advantage of the streamlined UI. But first we have to take into account how smartphones represent themselves to web servers.

Viewports

When is a pixel not a pixel? When it’s on a smartphone. By default, smartphone browsers pretend to be high-resolution desktop browsers, and lay out a page as if you were viewing it on a desktop monitor. This is why you get a tiny-text “overview mode” that’s impossible to read before zooming in. The default viewport width for the default Android browser is 800px, and 980px for iOS, regardless of the number of actual physical pixels on the screen.

In order to trigger the browser to render your page at a more readable scale, you need to use the viewport meta element:

<meta name="viewport" content="width=device-width, initial-scale=1">


Mobile screen resolutions vary widely, but most modern smartphone browsers currently report a standard device-width in the region of 320px. If your mobile device actually has a width of 640 physical pixels, then a 320px wide image would be sized to the full width of the screen, using double the number of pixels in the process. This is also the reason why text looks so much crisper on the small screen – double the pixel density as compared to a standard desktop monitor.

The useful thing about setting the width to device-width in the viewport meta tag is that it updates when the user changes the orientation of their smartphone or tablet. Combining this with media queries allows you to tweak the layout as the user rotates their device:

@media screen and (min-width:480px) and (max-width:800px) {
  /* Target landscape smartphones, portrait tablets, narrow desktops

  */
}

@media screen and (max-width:479px) {
  /* Target portrait smartphones */
}


In reality you may find you need to use different breakpoints depending on how your site flows and looks on various devices. You can also use the orientation media query to target specific orientations without referencing pixel dimensions, where supported.


@media all and (orientation: landscape) {
  /* Target device in landscape mode */
}

@media all and (orientation: portrait) {
  /* Target device in portrait mode */
}



Stacked content, smaller images – Cultural Institute
A media queries example

We recently re-launched the About Google page. Apart from setting up a liquid layout, we added a few media queries to provide an improved experience on smaller screens, like those on a tablet or smartphone.

Instead of targeting specific device resolutions we went with a relatively broad set of breakpoints. For a screen resolution wider than 1024 pixels, we render the page as it was originally designed, according to our 12-column grid. Between 801px and 1024px, you get to see a slightly squished version thanks to the liquid layout.

Only if the screen resolution drops to 800 pixels will content that’s not considered core content be sent to the bottom of the page:


@media screen and (max-width: 800px) {
  /* specific CSS */
}


With a final media query we enter smartphone territory:


@media screen and (max-width: 479px) {
  /* specific CSS */
}


At this point, we’re not loading the large image anymore and we stack the content blocks. We also added additional whitespace between the content items so they are more easily identified as different sections.

With these simple measures we made sure the site is usable on a wide range of devices.


Stacked content and the removal of large image – About Google
Conclusion

It’s worth bearing in mind that there’s no simple solution to making sites accessible on mobile devices and narrow viewports. Liquid layouts are a great starting point, but some design compromises may need to be made. Media queries are a useful way of adding polish for many devices, but remember that 25% of visits are made from those desktop browsers that do not currently support the technique and there are some performance implications. And if you have a fancy widget on your site, it might work beautifully with a mouse, but not so great on a touch device where fine control is more difficult.

The key is to test early and test often. Any time spent surfing your own sites with a smartphone or tablet will prove invaluable. When you can’t test on real devices, use the Android SDK or iOS Simulator. Ask friends and colleagues to view your sites on their devices, and watch how they interact too.

Mobile browsers are a great source of new traffic, and learning how best to support them is an exciting new area of professional development.


source:googlewebmastercentral.blogspot.com