Baccega Andrea Blog


The future is web3.0

Archive for agosto, 2009

Google Analytics Bridge for Android developers

author Posted by: veke87 on date ago 23rd, 2009 | filed Filed under: Programmazione

Google Analytics Bridge is a java library for android ( Soon to be Open Source licensed ) that will help developers understand what the user interaction with their own application.

Google Analytics Bridge is really easy to setup and it runs on a separate thread. This is do to the problem with the internet request sometime freezing the UI and setting off the hated message:

"The Application xyz is not responing"

With the two choises :

  1. Force Close
  2. Wait

Since The Google Analytics Bridge runs on a different thread to avoid this error.

First Setup

Download and import the jar file to the application you want use the Google Analytics Bridge on. The setup is a fast one-line command but you need the following information:

  • Google Analytics Tracking Code ( EX: "UA-123123123-1" )
  • The Domain Name

Set up a brand new Google Analytics Profile

you will need to set up a new Google Analytics Profile or use an existing one. You will need to open a new website profile on google analytics.

The procedure is fast and simple but it does require The domain name.

In that field you can specify whatever you want, but i suggest something like:

track.your-application-name.com

After creating the new profile, copy the UA-XXXXXX-Y code for a further usage.

The Constructor

Once you've done all of step one it's time to create our constructor.

In the onCreate routine place the following code:

JAVA:
  1. new AnalyticsBridge(this.getApplicationContext(),"UA-XXXXXX-Y","track.your-application-name.com");

You don't need to create an AnalyticsBridge object , after this line you will call the methods in a static way.

NOTE: You should call the constructor once per application lifetime.

Public Methods

_trackPageview(String pageTitle)

If you've some experience integrating google analytics on your own website you'll also remember what this method will do.

_trackPageview method on the web it's used for logging a new page View by the user. Similarly calling this static method on android will generate a google analytics request that will log a new Activity View.

Lets say you've a lot of activity, and some of theese will show the same content but in a different way, then i would put the following code on each onCreate Subroutine:

JAVA:
  1. /** Called when the activity is first created. */
  2. @Override
  3. public void onCreate(Bundle savedInstanceState) {
  4. super.onCreate(savedInstanceState);
  5. setContentView(R.layout.main);
  6.  
  7. AnalyticsBridge._trackPageview(this.getClass().getName());
  8.  
  9. }

This code will log each opened activity to google analytics.. Isn't it easy? :)

_trackEvent(String category, String action)

_trackEvent method is the same used on the web google analytics apis. I made this bridge because you should want to track some event made by the user.

Let suppouse you want to track a button click event on your user interface - this could help you understand how the user interact with your user interface - then you simply write the following statement on your View.OnClickListener implementation:

JAVA:
  1. Button loginbutton=new Button();
  2. loginbutton.setOnClickListener(new View.OnClickListener() {
  3.  
  4. @Override
  5. public void onClick(View v) {
  6. AnalyticsBridge._trackEvent("Click", "Login Button");
  7.  
  8. }
  9. });

That code will track the event of category "Click" and action "login Button".

Download:

Right now the library is quite stable . You can download it here

Thanks

Thanks to barakinflorida who corrected my bad english :)

Dove concentrarsi per il Seo Turistico

author Posted by: veke87 on date ago 16th, 2009 | filed Filed under: Seo

image_hotel_exterior_entrance_1-704242Lavorando in stretto contatto con questo target di siti web ho imparato alcune cose nel tempo e sono arrivato a delle conclusioni anche condivise da altri siti del settore che voglio scrivere e condividere quì con chi mi leggerà :) .

viz

hotel,obama,berlusconi

Come sapete, una delle maggiori fonti di guadagno nel web, come dimostrato dall'immagine a destra, è il campo turistico perciò imparare e capire dove concentrare i propri sforzi per quanto riguarda l'ottimizzazione di siti di hotels

In particolare io lavoro con siti di hotels e quindi ho avuto modo e analizzando il traffico proveniente da google sono stato in grado di differenziare tre tipologie di ricercatori nel web:

1° Tipologia "Starter Searcher":

Gli starter Searchers solitamente sono le persone che sono agli inizi della loro progettazione della vacanza. Inoltre solitamente sono persone che stanno cercando un hotel o quant'altro in una località mai visitata o poco conosciuta.

La stringa di ricerca utilizzata da questi visitatori è prevalentemente formata dalla composizione di :

Location + Hotel

Con questa stringa di ricerca gli starter searchers stanno praticamente effettuando il cosiddetto exploratory search , ovvero non hanno esattamente un idea precisa di quello che vogliono e quindi sono in cerca di qualcosa di generico.

2° Tipologia "Discerning Searcher":

In questa tipologia sono comprese le persone che invece hanno già un idea chiara su ciò che vogliono. Ad esempio un discerning searcher potrebbe essere colui che per necessità ha bisogno di un hotel in un particolare punto della città, oppure il business man che ha bisogno della sala meeting e ancora la famiglia che preferirebbe un hotel con la piscina.

Di questa tipologia di utenti c'è solamente da aspettarsi che non si accontenteranno di visionare il primo risultato di ricerca per decidere dove prenotare. Al contrario essendo questi utenti delle persone con le idee ben chiare è logico pensare che siano meticolosi nella scelta e nel confronto di varie strutture ricettive perciò non si fermeranno al primo risultato utile ma si concentreranno nel confrontare le varie proposte dei vari risultati.

3° Tipologia "Buying Searcher":

Dal nome sono quelli che ovviamente tutti vorrebbero concentrarsi ma per essere classificati buying searchers ovviamente hanno delle caratteristiche molto differenti dalle prime due tipologie.

I visitatori che si possono classificare in questa tipologia sono quelli che conoscono il vostro brand-name.  La maggior parte di questi utenti utilizzano la keyword:

Brand Name + Location

Ovviamente per utilizzare la precedente stringa di ricerca i visitatori devono avere già in mente il vostro brand name e quindi possono essere in una di queste tre tipologie di utenti

  • Sono ex clienti che hanno già visitato la struttura  (Ed è piaciuta)
  • Hanno visitato un sito di reviews che parlava bene di voi e gli è rimasto in testa.
  • Hanno sentito parlare di voi da amici o familiari.

In questa precedente suddivisione non abbiamo preso in considerazione gli utenti provenienti dalla tipologia 2 che potrebbero essersi segnati il vostro brand name insieme a quello di altri hotels concorrente per confrontare la vostra struttura con la nostra.

In quest'ottica, questa tipologia di visitatori, è chiaramente quella che genererà maggiori conversioni poichè un utente ricercherà il vostro brandName solamente se ha avuto un feedback (sia diretto che indiretto) positivo.

wp