Saturday, May 7, 2011

Google Talk and AIM to Become Interoperable

When you log in to your AIM account in Gmail, you get a message from AOL that links to this page.


In the next few days, Google and AOL are working together to change the way you connect to AIM buddies within Gmail. After this change, Gmail and AIM users can talk directly to each other without having to log into both services (you will no longer be able to log into AIM within Gmail's "Chat" section).

It's nice to know that AIM and Gmail Chat (Google Talk) will finally become interoperable and the Gmail integration will no longer be necessary. Back in 2005, Google and AOL announced that "Google Talk users and AIM users will be able to communicate with one another" and two years later Gmail Chat integrated with AIM, but they didn't become interoperable.

{ Thanks, Josh. }

Google Tests a New Search Interface

Many users noticed a new interface for Google's search results pages that tries to better separate results. There's a lot of space between the results, but that's not useful when you try to find the best answer for your query.


Huffington Post notices that "the new design looks less cluttered. Rows of text are spaced farther apart and text colors are more muted than previous versions." TechCrunch calls the new interface "ugly" and less useful because "it actually gives you much less information on the screen. This will require users to do more scrolling and paging through results to find what they're looking for."

Links are no longer underlined and one of the experiments uses dotted lines to separate results.


Fortunately. the new interface is still an experiment.

{ Thanks, John, Silviu, James, Ken, Steve and Josh. }

Thursday, May 5, 2011

Commerce Tracking with Google Analytics for Android

[This post is by Jim Cotugno and Nick Mihailovski, engineers who work on Google Analytics — Tim Bray]

Today we released a new version of the Google Analytics Android SDK which includes support for tracking e-commerce transactions. This post walks you through setting it up in your mobile application.

Why It’s Important

If you allow users to purchase goods in your application, you’ll want to understand how much revenue your application generates as well as which products are most popular.

With the new e-commerce tracking functionality in the Google Analytics Android SDK, this is easy.

Before You Begin

In this post, we assume you’ve already configured the Google Analytics Android SDK to work in your application. Check out our SDK docs if you haven’t already.

We also assume you have a Google Analytics tracking object instance declared in your code:

GoogleAnalyticsTracker tracker;

Then in the activity’s onCreate method, you have initialized the tracker member variable and called start:

tracker = GoogleAnalyticsTracker.getInstance();
tracker.start("UA-YOUR-ACCOUNT-HERE", 30, this);

Setting Up The Code

The best way to track a transaction is when you’ve received confirmation for a purchase. For example, if you have a callback method that is called when a purchase is confirmed, you would call the tracking code there.

public void onPurchaseConfirmed(List purchases) {
// Use Google Analytics to record the purchase information here...
}

Tracking The Transaction

The Google Analytics Android SDK provides its own Transaction object to store values Google Analytics collects. The next step is to copy the values from the list of PurchaseObjects into a Transaction object.

The SDK’s Transaction object uses the builder pattern, where the constructor takes the required arguments and the optional arguments are set using setters:

Transaction.Builder builder = new Transaction.Builder(
purchase.getOrderId(),
purchase.getTotal())
.setTotalTax(purchase.getTotalTax())
.setShippingCost(purchase.getShippingCost()
.setStoreName(purchase.getStoreName());

You then add the transaction by building it and passing it to a Google Analytics tracking Object:

tracker.addTransaction(builder.build());

Tracking Each Item

The next step is to track each item within the transaction. This is similar to tracking transactions, using the Item class provided by the Google Analytics SDK for Android. Google Analytics uses the OrderID as a common ID to associate a set of items to it’s parent transaction.

Let’s say the PurchaseObject above has a list of one or more LineItem objects. You can then iterate through each LineItem and create and add the item to the tracker.

for (ListItem listItem : purchase.getListItems()) {
Item.Builder itemBuilder = new Item.Builder(
purchase.getOrderId(),
listItem.getItemSKU(),
listItem.getPrice(),
listItem.getCount())
.setItemCategory(listItem.getItemCategory())
.setItemName(listItem.getItemName());

// Now add the item to the tracker. The order ID is the key
// Google Analytics uses to associate this item to the transaction.
tracker.addItem(itemBuilder.build());
}

Sending the Data to Google Analytics

Finally once all the transactions and items have been added to the tracker, you call:

tracker.trackTransactions();

This sends the transactions to the dispatcher, which will transmit the data to Google Analytics.

Viewing The Reports

Once data has been collected, you can then log into the Google Analytics Web Interface and go to the Conversions > Ecommerce > Product Performance report to see how much revenue each product generated.

Here we see that many people bought potions, which generated the most revenue for our application. Also, more people bought the blue sword than the red sword, which could mean we need to stock more blue items in our application. Awesome!

Learning More

You can learn more about the new e-commerce tracking feature in the Google Analytics SDK for Android developer documentation.

What’s even better is that we’ll be demoing all this new functionality this year at Google IO, in the Optimizing Android Apps With Google Analytics session.

Wednesday, May 4, 2011

Google's New Snippets for News Sites

After changing the snippets for Twitter accounts, Google now displays the latest headlines in the snippets for news sites. Search for [washington post], [nytimes], [le monde], [gazzetta dello sport] and you'll find the latest news from the snippets.


Probably the best way to try the new feature is to search for [news] and check the new snippets.


It's likely that the headlines are obtained from Google News, but not all the sites included in Google News have the new snippets.

Google Chrome's Emotional Ad

Google Chrome's ads have always been great, but this one is probably the only Google ad that could make you cry. It's a story about a father that emails his daughter photos and videos with her happy moments as she grows up. He uses Google services like Gmail, Picasa Web and YouTube, but the ad is not only about Chrome or Google: "the web is what you make of it".


Following the footsteps of Apple's FaceTime ads and Google's Search Stories, "Dear Sophie" could strike a chord with Google users and show how profound is Google's impact on your life.

A More Obvious Sign Out Link

When Google launched the new compact menus in the navigation bar, many users wondered why it's so difficult to sign out. The "sign out" link was buried in one of the menus and it wasn't obvious how to find it. Now the link is also displayed next to the Account menu, where users expected to see it.


Even if it's not used that frequently, the familiar "sign out" link is displayed by most web applications and hiding it or burying it in a menu could frustrate users. Facebook is one of the services that places the "logout" link in a menu, so it's not impossible to convince users to accept this change.

Monday, May 2, 2011

Google Chrome Tests Multiple Profiles

As previously promised, Google started to test multiple profiles for Google Chrome. It's a Chrome OS feature that's now available in Chrome's Canary builds and Chromium. Just enter about:flags in the address bar, enable "Multiple profiles" and click "Relaunch browser" at the bottom of the page.


The new feature associates each window with a profile and lets you sync some of the settings with a Google account. Until now, you could create new profiles manually, but you had to use special shortcuts for each profile (Chrome has briefly added support for multiple profiles in the interface back in 2009, but it was quickly dropped). This feature is now available in the interface, even though it's more limited and you can only identify profiles using Google accounts.

"The multiple profiles feature will allow the user to associate a profile with a specific set of browser windows, rather than with an entire running instance of Chrome. Allowing different windows to run as different Chrome identities means that a user can have different open windows associated with different Google accounts, and correspondingly different sets of preferences, apps, bookmarks, and so on -- all those elements which are bound to a specific user's identity. Having multiple profiles in the Chrome browser also makes it easy to browse with separate identities without having to log in as separate users at the operating system level," explains a Google Chrome design document.