Archive for Setembre de 2012

Easy to Read – Research and Development Working Group Wiki

30/09/2012

Measuring Readability

Some methods for measuring readability include:

  • Flesch Reading Ease
  • Flesch-Kincaid Grade Level
  • Gunning Fog Index
  • Wiener Sachtextformel
  • Simple Measure Of Gobbledygook (SMOG)
  • Gunning fog index (FOG)

See also Jaan Mikk: Textbook: Research and Writing. Lang, Frankfurt u. a. 2000.

via w3.org

5 seconds Bounce Rate in Google Analytics

28/09/2012

Bounce rate is a beautiful way to measure the quality of traffic coming to your website. It is almost instantly accessible in any web analytics tool. It is easy to understand, hard to mis-understand and can be applied to any of your efforts.

So what is this mysterious metric? In a nutshell bounce rate measures the percentage of people who come to your website and leave “instantly”.

 

It is usually measured in two ways:

  • The percentage of website visitors who see just one page on your site.
  • The percentage of website visitors who stay on the site for a small amount of time (usually five seconds or less).

 

It is important to note that the first definition is the standard definition in tools like Google Analytics, WebTrends, Yahoo! Web Analytics, CoreMetrics etc etc etc. Having only a single hit (usually page view) in a visitor’s session will mark it as a bounce.

Set 5 seconds Bounce Rate in Google Analytics

Just add the following line under the pageTracker._trackPageview(); line:

setTimeout(‘pageTracker._trackEvent(‘NoBounce’, ‘NoBounce’, ‘Over 5 seconds’)’,5000);

In case you have decided to already update to the new Google Analytics Asynchronous Tracking code here is how the hack would be applied (place it as the last _gaq.push declaration)

setTimeout(‘_gaq.push([‘_trackEvent’, ‘NoBounce’, ‘Over 5 seconds’])’,5000);

5000 refers to the number of milliseconds after which you want to fire up the above code.

 

 

 

5 seconds Bounce Rate in Google Analytics

28/09/2012

Bounce rate is a beautiful way to measure the quality of traffic coming to your website. It is almost instantly accessible in any web analytics tool. It is easy to understand, hard to mis-understand and can be applied to any of your efforts.

So what is this mysterious metric? In a nutshell bounce rate measures the percentage of people who come to your website and leave “instantly”.

 

It is usually measured in two ways:

  • The percentage of website visitors who see just one page on your site.
  • The percentage of website visitors who stay on the site for a small amount of time (usually five seconds or less).

 

It is important to note that the first definition is the standard definition in tools like Google Analytics, WebTrends, Yahoo! Web Analytics, CoreMetrics etc etc etc. Having only a single hit (usually page view) in a visitor’s session will mark it as a bounce.

Set 5 seconds Bounce Rate in Google Analytics

Just add the following line under the pageTracker._trackPageview(); line:

setTimeout(‘pageTracker._trackEvent(‘NoBounce’, ‘NoBounce’, ‘Over 5 seconds’)’,5000);

In case you have decided to already update to the new Google Analytics Asynchronous Tracking code here is how the hack would be applied (place it as the last _gaq.push declaration)

setTimeout(‘_gaq.push([‘_trackEvent’, ‘NoBounce’, ‘Over 5 seconds’])’,5000);

5000 refers to the number of milliseconds after which you want to fire up the above code.

 

 

 

How to change home loop to load a category in wordpress

27/09/2012

Aquest codi el pots carregar al fitxer functions.php de la teva theme de wordpress. Es tracta de modificar la consulta que es fa al carregar si es la home i afegiri el criteri de la categoria com a filtre.

function custom_wpquery( $query ){        global $wp_the_query;        if (is_home()) {              if ( $wp_the_query === $query) {            // reset and override the active query            $query->init();            $query->query( 'cat=3' );        }        }        return $query;}add_filter( 'pre_get_posts', 'custom_wpquery' );