Articles in the Web Analytics Metrics Category

What is the “User Defined” report, and how do I use it?

June 26th, 2009 by Joe Teixeira

User-Defined ReportHave you ever been in the Visitors section of your favorite Google Analytics profile and wondered what the heck “User-Defined” was? Did you ever want to know how you could make use of it? Do you have any idea what I’m talking about today? If you answered “Yes” to any of the three questions I just asked, continue reading.

Along with powerful features like Advanced Segmentation and Custom Reporting, Google Analytics allows the option for website owners to add an additional label to visitors who reach a certain point or complete a certain action on a website, such as visiting a key website page or purchasing something from a merchant’s online store. These labels are usually known as Custom Segments (or Custom Segmentation), and it’s a very powerful tool in obtaining deeper insights into website visitors who perform specific tasks and accomplish specific actions.

Making use of the User-Defined report in Google Analytics  requires a bit of extra coding help from your IT department or webmaster, but it’s totally worth the short amount of time it takes to implement. For example, let’s say that I wanted to add a label of “customers” to any visitor who reaches my shopping cart’s “Thank You” confirmation / receipt page. What I would do is add an additional line of code to my Google Analytics Tracking Code (GATC), which would look exactly like this:

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-XXXXXXX-1");
pageTracker._trackPageview();
pageTracker._setVar(”customers”);
} catch(err) {}</script>

Notice the line in bold that includes _setVar -  when this is present on a page within the Google Analytics Tracking Code, an additional cookie - the __utmv cookie - gets set on a visitor’s computer, with its sole purpose being to identify the visitor by the label (or value) that you used in the code. If you notice up above, you will see “customers“, which was the label that I wanted to use.

Now, on their next visit to the site, they will be identified as a part of the “customers” segment in the User-Defined report, allowing you to perform analysis on all visitors who have purchased something from your online store. Neat, huh?

You can also use the pageTracker._setVar function when someone clicks on an important link on your site, or makes a key selection on an important form that you want visitors to fill out. For example, if you wanted to add a custom label to any visitor who clicks on your “Live Help” applet, you can ask your IT department or webmaster to add an “onClick” event, and give them the following line of code:

onClick="pageTracker._setVar('Needs Help');"

When all of your coding is complete, check the User-Defined report after about a day or so and you should see something like this:

Example of the User-Defined Report

Some things to note about Custom Segmentation / the User-Defined Report:

1. As we talked about, when a person visits a page calling the _setVar function, the __utmv cookie is set on their computer. This is a persistent, first-party cookie that has a lifetime of two years. This means that every time a user with a __utmv cookie returns to your site, the label assigned to the user will continue to identify them as such until they either delete the cookie or visit another page with another call to _setVar with a different label.

2. The purpose behind something like a User-Defined report - and Custom Segmentation in general - is that it is not designed to be updated very often. This label, for the most part, should be a permanent one for a visitor. You should only use _setVar on pages like a receipt page of a shopping cart, or an account registration “success” page for a visitor who becomes a member of your site. You shouldn’t use _setVar on your homepage, or use several different _setVar’s with different labels scattered across many pages of your website.

3. Google Analytics - at this time - only has the capacity to store one custom segment at any one time for one website. So if you are using multiple calls to _setVar on your site, Google Analytics can only store the latest value that a visitor runs into in the __utmv cookie.

4. However, Google Analytics uses what they call the “first association” of the session for visitor session calculations. So if you are using multiple calls to _setVar on your site, be aware that if a user runs into the first one, and then runs into the second one in the same visit, their Goal Conversion and Pages per Visit metrics would be attributed to the label of the first encounter with _setVar.

5. For page view calculations, Google Analytics uses the most recently defined value. So if a person runs into the second instance of _setVar on your site, all of their pageviews afterwards - including the current pageview - will be attributed to the second _setVar’s label, even though as we just learned in #4 above, visitor session information is attributed to the first encounter of _setVar.

A full, technical explanation of _setVar can be found here.

Posted in Web Analytics Metrics, Google Analytics, Web Analytics

Need to add a new organic source in GA? Here’s how:

June 2nd, 2009 by Joe Teixeira

Way back in August of last year, I blogged about the ga.js file and how it automatically recognized 38 different websites as organic search engines. Today, June 2, 2009, the ga.js file now automatically recognizes 40 websites, pending Microsoft’s new engine “Bing.com” being added very soon to be number 41.

The team at Google Analytics can’t possibly keep up with every single website that appears on the internet, and depending on your own needs, you may find it useful to count a new website as an organic source of traffic, instead of counting the incoming traffic as a referral.

Perhaps you’d like to count your favorite website as an organic search engine? Or maybe you’d like to add any brand new search engine that comes out, like WolframAlpha or Bing.com, and you’d like to immediately start counting the traffic you get from it in the same report as Google and Yahoo? By making a very minor addition to the Google Analytics Tracking Code on all of your website’s pages, you can add as many new organic sources of traffic as you wish.

Here’s what that tracking code would look like on your website:

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-XXXXXX-X");
pageTracker._addOrganic("bing.com", "q");
pageTracker._trackPageview();
} catch(err) {}</script>

The new line of code that you should see is the _addOrganic call:

pageTracker._addOrganic("bing.com", "q");

There are two parts to the _addOrganic call - the first part (where it says “bing.com”) is the search engine domain name. The second part (where it says “q”)  is the query parameter that displays the search term in the URL of your browser’s address bar.

The domain name is easy to get - simply grab your favorite site’s URL, remove the “www” prefix, and you have a domain name! The query parameter part may be tricky, depending on how your favorite website works. For example, on Bing.com, a search for “guitar hero accessories” returns this URL:

http://www.bing.com/search?q=guitar+hero+accessories&go=&form=QBLH

See the “q” right before my search term, behind the = symbol? Entering in “q” in the _addOrganic function will tell Google Analytics to look for “?q=” and a search term after the = symbol, so that you can get search term information from your new organic source as well as having it counted as an organic search engine!

Just keep in mind that not every website will have easy to find query parameters like the one from Bing.com does, and some websites will use something other than the letter “q”. For example, AOL.com uses “query”, and they use a different structure than Bing.com:

http://search.aol.com/aol/search?s_it=comsearch40&query=xbox+360&do=Search

When using _addOrganic, make sure to update the Google Analytics Tracking Code on EVERY PAGE of your website - if a person lands on a page that doesn’t contain the _addOrganic function, their traffic source will be counted as “referral”, not “organic”, so it’s vital to update this on all of your website’s pages, not just your homepage.

Hope you found this useful! Next time I will talk about how to modify your Google Analytics Tracking Code to treat certain keywords or referring websites as “direct” traffic. Stay Tuned!

Posted in Web Analytics Metrics, Google Analytics, Web Analytics

Down about your Bounce Rate? Do these five things to improve it today!

May 29th, 2009 by Joe Teixeira

Bounce Rate - Improve it Today!Bounce Rate - the most popular two words in Web Analytics today. It’s become a cliche, a catch-phrase if you will. Everyone is talking about Bounce Rate and how good, how bad, how low or how high it is, and quite a number of folks have started to use Bounce Rate as an evaluation metric for success. I can safely speak for everyone involved with Google Analytics when I extend a huge “Thank You!” to all of you who have embraced it!

Interestingly, Bounce Rate is one of the only metrics in Web Analytics that we want less of. We want lower bounce rates, not higher, and fewer bounces, not more. A question I get asked at least three times a week by clients and co-workers alike is “How do we lower our Bounce Rate?” There are a lot of things that you can do, but there are only so many options that have proven to be effective over time. Today, let me share with you five different things that you can do - today - to start decreasing your bounce rate,  by keeping your website’s visitors engaged with your website.

1. A “Higher” Call-To-Action
Have you ever heard the expression “Out of Sight, Out of Mind“? A persuasive and engaging call-to-action that is very low on a page, say, below the fold of a page, can cause visitors to lose focus and get distracted by your content / video / latest web 2.0 toy, which may cause the visitor to hit the back button or close their browser before visiting the next page on your site. No matter how nice of a call-to-action you have and no matter how attractive the offer or pitch may be, it needs to be highly visible to your website’s audience so that they can react (positively) to it and click on it, thereby lower the number of folks who bounce off of the page.

2. A Sync with your Ads and your Landing Pages
No, I’m not talking about N’Sync - I’m talking about a strong connection between the ads and the messaging you are using with the page that you are directing all of your future visitors to go to. One of the biggest factors that could be driving your Bounce Rates higher and higher is a mixed message that you are sending to your potential visitors. For example, if your ad copy says “15% Off!”, you need to make sure that “15% Off!” is the very first thing that a visitor sees when they hit your website. If you have “multiple sizes and colors available”, direct the visitor to a page where they can choose their favorite color and the right size. Using a promo code in your ad? Create a unique landing page and have the promo code appear right away on the page, so that visitors will feel the connection between your marketing message and what’s really happening on the website.

3. Improper Tagging on your Website Pages
A silent but very deadly killer, untagged pages of your website can only do your website harm. When some pages are missing the Google Analytics Tracking Code, visitors reaching those pages will have their referral cookie updated, thereby resetting information like “google / organic”, the campaign, and the keyword they used to reach you. At all times, when uploading a new page or section to your site, stop and make sure that the Google Analytics Tracking Code is present on your new page(s) first before uploading. This will save you a lot of head-scratching, unnecessary report ugliness, and will decrease your Bounce Rate, all at the same time!

4. Writing for your audience
Khrysti / SEO Team - I haven’t forgotten about you, because I am still writing “Content Is King!” That statement definitely translates to the Analytics side of things, and helps reduce your Bounce Rate. Use a combination of Google Insights for Search, Google Ad Planner and Google Trends for Websites to get an idea of the type of traffic that your website can receive, as well as valuable demographic information which could represent your future audience. Once you are comfortable with the type of audience and volume you expect to receive, write your website’s content appropriately and specifically targeted, so that visitors will feel a connection with what you’re saying. To use an exaggerated example, you wouldn’t want to talk about the fashion stylings of the cast of “The Hills” if your website sells motorcycle insurance (This, unfortunately, happens a lot on the web and it leads to a high number of bounces).

5. Testing, Testing, 1…2…3!
Finally, it’s essential that you incorporate some program of testing and experimentation on your website on a weekly or monthly basis. Each and every week (or few weeks), you should think about some element of your website or some element of an advertisement that you’ll want to experiment with, to see which version is the more profitable and successful one. Google Website Optimizer is a fantastic product where you can easily create as many experiments as you’d like, and see clear results in no time. You can also create a Website Optimizer experiment from start to finish in well under 10 minutes, which means you won’t have to be bogged down with hours of set-up and design time. Testing and experimentation with Google Website Optimizer is one of the best ways to decrease your Bounce Rate over the long-run, while sky-rocketing your conversion rates at the same time!

So there you have it - 5 great things that you can do today to start lowering your Bounce Rate, keeping your website’s visitors engaged, focused, and happy with you!

Posted in Tealeaf, Omniture SiteCatalyst, Key Performance Indicators, WebTrends, Coremetrics, Competitive Intelligence, Urchin Software from Google, Omniture Test & Target, Google AdWords, AW Stats, Web Analytics Metrics, Google Website Optimizer, Google Analytics, A/B Testing, Multivariate Testing, Yahoo! Analytics, Site Usability, Web Analytics

How to track a site using domain aliases in Google Analytics, and AdSense Integration

April 30th, 2009 by Joe Teixeira

Two things to talk about today - Domain Aliases and Google’s new announcement of officially releasing AdSense integration with your Google Analytics Account!

Part 1 of this post: Domain Aliases

“Domain Aliases” is consistently one of the top 10 searched terms on the Google Analytics Help Website. You can definitely track domain aliases properly so that Google Analytics reports cleanly, and cookie integrity holds up. The question then becomes “How do I do that?”

There are two possible ways to do this, but it depends on the type of web server - Apache or IIS - that you’re running. Following the steps outlined in this article will ensure that visitor tracking with Google Analytics is getting set under the primary domain and that all visitors are tracked consistently. Basically, you’ll want to redirect any domain aliases to the primary domain - this actually helps out with cookie integrity.

Redirecting Aliases in Apache:

Create two VirtualHost entries - the first for your primary domain (normal configuration), and the second for all aliases re-directing to the primary:

#—primary virtualhost

Servername www.mysite.com
Serveralias mysite.com

#—second virtualhost

Servername mysite.org
Serveralias www.mysite.org mysite.net www.mysite.net
RewriteEngine on
RewriteRule ^(.*) http://www.mysite.com$1 [R=301]

Redirecting Aliases in IIS:

With Microsoft IIS webservers, you can create two websites in the IIS configuration - the first being the primary domain and the second will be for all other aliases redirecting to the primary.

Follow these steps to create a 301 redirect:

  1. Log in as an Administrator and open the Internet Services Manager by going to Start >> Programs >> Administrative Tools >> Internet Services Manager.
  2. Choose the server which is hosting your primary domain.
  3. In the folder, click the primary domain with your right mouse button and select Properties.
  4. Click the ‘Home Directory’ tab.
  5. In the “Redirect to:” field, enter the domain you want to redirect to. For example, if you want to redirect to mysite.org, enter http://mysite.org in this field.
  6. Under the “The Client will be sent to” section, select “A permanent redirection for this resource.” This will create a 301 redirect from your primary domain to mysite.org.

Read the rest of this article to find out how to use a 302 redirect instead of using a 301 redirect.

Part 2: Google AdSense + Google Analytics Integration

It is now official - you can sync your Google AdSense Account with your Google Analytics Account! When you do this, a brand new “AdSense” report section appears within your Content section of reports. There, you will find four reports:

1. Overview - This gives you a top-level breakdown of how much money the pages on your website have made for you. You’ll see brand new and exciting metrics such as AdSense Revenue, Revenue per 1,000 Visits, AdSense Click-Through Rate, Unit Impressions, Page Impressions per Visit, and other awesome analytical statistics.
2. Top AdSense Content - This allows you to see specific details about each page of your website to analyze AdSense performance. See which pages lead to AdSense clicks, and which ones don’t.
3. Top AdSense Referrers - Which sources of traffic are contributing to your AdSense bottom line? This report should answer that question for you.
4. AdSense Trending - View this histogram to see which days and what times of day visitors are clicking on the AdSense Ads on the pages of your website.

Isn’t this very exciting? But wait, there’s something else - you will now notice a new “AdSense” tab in several reports throughout Google Analytics, which allows you to analyze AdSense performance in several different report sections.

Linking your AdSense Account with your Google Analytics account is not that difficult - so ask your Administrator to set this up for you, and enjoy the new report section!

…and enjoy your properly redirected domain aliases, too :).

Posted in Google AdSense, Web Analytics Metrics, Google Analytics, Web Analytics

VERY URGENT: INCREASE YOUR ECOMMERCE REVENUE BY 100,000%!!!

March 25th, 2009 by Joe Teixeira

Dear Sir / Madam,

You may be very surprised on receiving this letter from me, since we have never met before. My name is barrister Joe Teixeira, a Malaysian national and personal representative to my client, Google Analytics.

The reason that I write to you is of the utmost importance. I need your help in securing the funds that your website can bring to you, before the National Bank of Malaysia closes the account. The funds in my client’s account are estimated to be valued at ONE HUNDRED FORTY MILLION UNITED STATES DOLLARS, which have been deposited in your name as the next of kin, provided you agree to the terms outlined below.

The bank has issued me a third and final notice to contact the next of kin (you), or the Google Analytics account will be declared unserviceable and the funds will be dispersed to the treasury department. All efforts to get a hold of someone else have failed - you are the last person I could find to contact.

I am asking you for your due diligence, and advise you to perform the following actions on your website to increase your Ecommerce Revenue by ONE HUNDRED THOUSAND PERCENT:

1. Design a clear “Call-To-Action” on your website’s homepage, and pay-per-click landing pages,
2. Continually refine, test, and optimize your landing page, your CPC ads, your keywords, you keyword’s match types, and any other settings possible,
3. Use Google Website Optimizer to conduct A/B or Multivariate experiments to boost conversions and increase revenue,
4. Test out different selling propositions, conversion incentives, ad titles, and anything else outlined in this blog post,
5. Install Google Analytics Ecommerce Tracking Code, and perform Traffic Source, Campaign, and Keyword-level analysis, focusing on revenue, average order value, and conversion rate,
6. Offer a clean, easy-to-use and friendly Ecommerce Shopping Cart, with flexible payment options, clear pricing sub-totals and grand totals, and smooth page-to-page transitions,
7. Provide discount coupons and promotional codes for all return customers,
8. Work to provide fast, reliable, secure shipping and delivery confirmation of purchased products.

When these elements are achieved, and a culture of testing and optimization has been successfully instilled in your company, we will share the funds on a mutually agreed percentage, as my client outlined in his will.

All the legal documentations to back up your claims to your State Department will be provided to you by me. You may also view the Google Analytics Terms of Service for additional privacy policy information. I simply require your honest co-operation to enable us to achieve this transaction.

The intended transaction will be executed under a legitimate arrangement that will protect you from any infraction of laws. Please accept my sincere apology if this proposition offends your moral ethics. Please kindly get back to me if you wish to achieve this goal with me.

Kindest Regards,

Barrister Joe Teixeira, Esq.
Google Analytics Authorized Consultants
+01 561 620 9682

Posted in Multivariate Testing, Site Usability, A/B Testing, Web Analytics Metrics, Google Analytics, Google Website Optimizer, Web Analytics

« Previous Entries