Tuesday, January 23, 2007

Tracking Google Checkout Sales, Part 2

Last post, we told you about a way to use Google Analytics to see your Google Checkout transaction data. Today, we'll show you the alternate method of posting Checkout API requests,

Method 2 for posting Checkout API requests into Google Analytics
In this method, the form that displays the Google Checkout button submits to another URL on the merchant’s website. That URL hosts an application that creates a Checkout API request, executes a server-to-server POST request, and lastly captures Google’s response to that request. The response contains the Google Checkout URL to which the customer should be redirected. To track shoppers while using this method, merchants will need to make the following changes:

1. Add the JavaScript call below to each page that displays a Google Checkout button; HOWEVER, before making this call your page should display all of the forms that display Google Checkout buttons. Your page should also include the standard Google Analytics tracking code before you make this call.
 <script src="http:/checkout.google.com/files/digital/urchin_post.js"
type="text/javascript"></script>

2. Add the following hidden input field to each form on your site that displays a Google Checkout button:
 <input type="hidden" name="analyticsdata" value=""> 

3. For each form that displays a Google Checkout button, add an onsubmit attribute to the <form> element. The onsubmit element should call the setUrchinInputCode JavaScript function as shown in the following example:
 <form action="..." method="POST" onsubmit="setUrchinInputCode();" > 

4. Modify the form handler on your site that executes when a user clicks a Google Checkout button. The form handler needs to extract the value of the analyticsdata field so that the value can be included in the Checkout API request.

5. Add the <analytics-data> element to your Checkout API requests. The element’s value should be the analyticsdata field captured by the previous step. The <analytics-data> element is a subtag of the <merchant-checkout-flow-support> element.ut transactions.

The implementation details above will allow your Google Analytics account to track your Google Checkout transactions. If you would like an even more detailed explanation, along with screen shots and specific examples for each situation, we recommend checking out
this excellent resource that the Google Checkout API team has put together for you.

Thursday, January 18, 2007

Tracking Google Checkout sales, part 1

We occasionally get questions from our new users of Google Checkout. They've read all about how to track e-commerce transactions with Google Analytics; now they would like more specific details for implementing tracking.

Merchants can use Google Analytics to track buyers who leave their sites to complete the checkout process with Google Checkout. With the help of Google Analytics, Google Checkout merchants will be able to separately track activity on:

1) the Login page, or the first page to appear after a buyer click the Google Checkout button,

2) the Place Order page, which appears after the buyer logs in to Google Checkout, and

3) the Order Confirmed page, which appears after the buyer places the order.

Additionally, Google Analytics will provide a wide range of information on every order placed. Like current Google Analytics e-commerce tracking implementations, this will include the order-ID, total price, tax, shipping charge, city, state/region, and country. It'll also include the item-specific information such as product name, price, and quantity.

There are two methods that Google Checkout merchants use to post their Checkout API requests so that Google Analytics can include Checkout data. Each method requires a slightly different Google Analytics implementation. Today we'll give you a technical overview of the first method, and then will include the second method in our next post.

Method 1 for posting Checkout API requests into Google Analytics
In a standard Checkout API request, a form on the merchant's web page displays a Google Checkout button while containing an encoded version of the customer's shopping cart. When the user clicks the Google Checkout button, the form posts the encoded shopping cart data directly to Google Checkout. To track shoppers while using this method, merchants will need to make the following changes:

1. Once you have Google Analytics set up and tracking your website, add the JavaScript call below to each page that displays a Google Checkout button. HOWEVER, before making this call, your page should display all of the forms that display Google Checkout buttons. Your page should also include the standard Google Analytics tracking code before making this call.
 <script src="http://checkout.google.com/files/digital/urchin_post.js" type="text/javascript"> </script> 

2. Add the following hidden input field to each form on your site that displays a Google Checkout button:
 <input type="hidden" name="analyticsdata" value=""> 

3. For each form that displays a Google Checkout button, add an onsubmit attribute to the <form> element. The onsubmit element should call the setUrchinInputCode JavaScript function as shown in the following example:
 <form action="..." method="POST" onsubmit="setUrchinInputCode();" > 

For more information, take a look at help document, Using Google Analytics to Track Google Checkout Orders, and stay tuned for Part 2.

Advertising to US Hispanics with Creative from Latin America

I come from a behavioral perspective when it comes to advertising. For me if an ad does not sell, it is not a good ad, regardless of how many awards it gets.

It is interesting that by claiming that there is not enough talent in the United States, Hispanic Advertising agencies are starting companies or subcontracting creative work in Latin America.

That is interesting because the principle of understanding the audience of the message gets distorted with this logic. How can a creative in Buenos Aires know how Hispanic teens in Los Angeles live and feel about themselves? How can a creative in Caracas know how Puerto Ricans in New York enjoy products and services?

Not that these creatives are not good at what they do, but how can they communicate effectively without knowing their audience. Just because they speak Spanish they are not necessarily adept at understanding the specific psycho-socio-cultural characteristics of Hispanics in the US.

I am not trying to say that Latin American creatives cannot get to do good advertising for US Hispanics, but the probability of that being so is not very high. They may get awards and distinctions with their creativity but will they help sell products to an audience they do not know well?

That is why having more Hispanics/Latinos in the US educated in Marketing and Advertising is of great importance. These individuals are more likely to have an intuition for the markets they will serve. Still, the general rule is that being Hispanic/Latino or Latin American does not make someone an expert on US Hispanic consumers. It is the study of the culture and lifestyles of US Hispanic consumers that can contribute to good advertising. Good US Hispanic account planning and creative work requires prior knowledge of the culture and also requires research and understanding of the intersection of the product/brand with the culture.

The moral of the story: Going far away for your messages can get you far away from your consumers

Monday, January 1, 2007

"Absolute Unique Visitors" versus "New and Returning"

Happy new year! For our first post of 2007, we'd like to add clarity to the difference between two reports that you are probably already using.

Among the vast array of reports that Google Analytics provides, “Absolute Unique Visitors” and “New vs. Returning” are two that give information on what percentage of visitors your website retains. If you're trying to explain the difference between these reports to your colleagues, read on.

Absolute Unique Visitors


This report counts each visitor only once and then classifies the visitor as “First Time” or “Prior Visitor.” The question asked is, “has this visitor visited the website prior to the active (selected) date range?” and the answer is a simple yes or no. If the answer is “yes” the visitor is categorized under “Prior Visitors"; if it is no, the visitor is categorized under “First Time Visitors." Visitors who have returned are still only counted once.

New vs. Returning


This report classifies visits (sessions) by the visitor type (new or returning). So when somebody visits your site for the first time, the visit is categorized as “Visit from a new visitor.” If this user has browsed your website before, the visit is categorized as “Visit from a returning visitor.”

In other words, Absolute Unique Visitors counts visitors, whereas New vs. Returning counts visits. Still wondering? Here’s an example:

Assume the date range is May 1-31.
User A visits www.domain.com for the 1st time on May 5th and then returns to the website on 12th and 17th of May.
User B visits www.domain.com on April 8th and then again on May 5th and 12th.

Results:
In Absolute Unique Visitors: User A will be counted as a First Time (New) Unique Visitor on May 5th, and User B will be counted as Prior (Returning) Unique Visitor. User A and User B will not be counted as a Unique Visitor (either first time or prior) for any subsequent visits (May 12 and 17th).

In New vs. Returning: The visit on May 5th from User A gets counted as a visit from a "New" visitor. Subsequent visits from User A (May 12 and 17th) get counted as visits from a "returning" visitor. All of User B's visits are counted as visits from a returning visitor.

To sum it up, Absolute Unique Visitor report counts visitors to your website (counting each visitor only once in the selected date range) whereas New vs. Returning classifies all visits (sessions) in the date range by the visitor type. The new visitor number may seem especially large if you are looking at a large date range, or if you have just recently installed Analytics on your site.

For more information about terminology in Google Analytics, take a look at this help article:
What's the difference between clicks, visits, unique visits, and unique visitors?

and don't forget to browse our glossary of terms.