| Subcribe via RSS

Google Analytics Hacks-II (Adding Regional Search Engines)

September 2nd, 2008 | 6 Comments | Posted in WebAnalytics

Apart from adding additional search engines to the existing list provided by Google Analytics, you could also use this method to create more regional lists of the main players. For example, if you are based in the India., being able to differentiate google.co.in from google.com may be of importance. You might think adding the following to the GATC of your pages would provide this:

 

pageTracker._addOrganic(“google.co.in”,”q”);

 

However, this won’t work, because when adding regional variations to the search engine list, the order becomes important. Defining the custom addOrganic variable in your GATC appends google.co.in (or any other variation) to the end of the default search engine array list, but the default list is already assigning any google.*domain as “google”; therefore, appending is too late to change this. The answer is to first clear the default search engine list from the GATC and then redefine all search engines using your custom list, as shown in this example:

 

 

pageTracker._clearOrganic() // clears the default list of search engines

// Define new search domains

pageTracker._addOrganic(“google.com”,”q”);

pageTracker._addOrganic(“google.co.uk”,”q”);

pageTracker._addOrganic(“google.es”,”q”);

pageTracker._addOrganic(“google.pt”,”q”);

pageTracker._addOrganic(“google.it”,”q”);etc.

Rather than define a long list of search engines in your GATC, it is better to place these in a separate JavaScript file—named, for example, custom_se.js. Place this file in the root of your web hosting account. Then call the file in all your web pages by adding the following line to your GATC:

 

<script type=”text/javascript”>

var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.”

: “http://www.”);

document.write(unescape(“%3Cscript src=’” + gaJsHost + “googleanalytics.

com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));

</script>

<script src=”custom_se.js” type=”text/javascript”></script>

<script type=”text/javascript”>

var pageTracker = _gat._getTracker(“UA-12345-1”);

pageTracker._initData();

pageTracker._trackPageview();

</script>

 

 

Google Analytics Hacks-I (Adding More Search Engines)

September 2nd, 2008 | 1 Comment | Posted in WebAnalytics

Out of the box, Google Analytics is a powerful tool to add to your armory of search marketing, customer relationship, and other business management tools. With only a single page tag required to collect data, it is straightforward to set up; and with the addition of some filters, you can really gain an insight into your website performance.

You may get all the answers on the Website traffic patterns but your mind may develop a new set of questions which are unanswered by Google Analytics-Yes, You can do it with little lateral thinking and google analytics is very flexibe in its approach before you go ahead i must tell you that you must be familiar with JavaScript-

Customizing the List of Recognized Search Engines

Google Analytics currently identifies organic referrals from the following search
engines in your reports:

• AOL
• About
• Alice
• Alltheweb
• AltaVista
• Ask
• Baidu
• CNN
• Clubinternet
• Gigablast
• Google
• Google.interia
• Live
• LookSmart
• Lycos
• MSN
• Mama
• Mamma
• Najdi
• Netscape
• Netsprint
• Onet
• Pchome
• Search
• Seznam
• Szukacz
• Virgilio
• Voila
• Wp
• Yahoo!
• Yam
• Yandex
 

Although Google Analytics adds new recognized search engines to this list regularly, there are of course a great many more search engines in the world—language and region-specific as well as niche search engines such as price comparison and vertical portals. It is therefore possible to modify and append to the list of recognized search engines.

For example, suppose you wanted the BBC search engine to be listed as such in your reports, along with the search terms used by those visitors. First, conduct a search on the BBC website and view the resultant URL. For example, searching for motorcycle produces the following search result URL: http://search.bbc.co.uk/cgi- in/search/results.pl?q=motorcycle

 

To capture this URL and recognize it as a search engine, add the following code to your page GATC:

 

<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”>

var pageTracker = _gat._getTracker(“UA-12345-1”);

pageTracker._addOrganic(“bbc.co.uk”, “q”);

pageTracker._initData();

pageTracker._trackPageview();

</script>

The line pageTracker._addOrganic(“bbc.co.uk”, “q”) simply appends this search engine to the default list of search engines contained in the GATC. As you can see, the format is:

 

pageTracker._addOrganic(“search_engine_domain”, “query_parameter_name”);

 

You can continue to add other search engines as needed by creating additional addOrganic lines. For example, to add the price comparison engine IndiaTimes as a regular search engine, add the following:

<script type=”text/javascript”>

var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.”

: “http://www.”);

document.write(unescape(“%3Cscript src=’” + gaJsHost + “googleanalytics.

com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));

</script>

<script type=”text/javascript”>

var pageTracker = _gat._getTracker(“UA-12345-1”);

pageTracker._addOrganic(“bbc.co.uk”, “q”);

pageTracker._addOrganic(“Indiatimes”, “siteSearchQuery”);

pageTracker._initData();

pageTracker._trackPageview();

</script>

Using this method, IndiaTimes would be listed in the Search Engine report along with other search engines. That is useful in itself, but what provides more insight is that the  corresponding IndiaTimes search terms used by visitors would be listed in the Keywords report. Without this little hack, IndiaTimes would simply be listed as a standard referrer with no search terms logged.