The Blog

Google Analytics Bridge for Android developers

23 Ago 09

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]new AnalyticsBridge(this.getApplicationContext(),”UA-XXXXXX-Y”,”track.your-application-name.com”);[/JAVA]

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] /** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

AnalyticsBridge._trackPageview(this.getClass().getName());

}[/JAVA]

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] Button loginbutton=new Button();
loginbutton.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
AnalyticsBridge._trackEvent(“Click”, “Login Button”);

}
});[/JAVA]

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 ๐Ÿ™‚

6 Seo Tips che tutti dimenticano

22 Gen 09

Eccoci qua dopo un lunghissimo periodo di inattivitร  dovuto ad altri progetti e impegni piรน rilevanti.

Per lavoro mi sono ritrovato a scrivere i seguenti seo tips di “seconda” mano.. Diciamo quei seo tips a cui nessuno da veramente importanza ma a che mio modo di vedere possono anche ribaltare la situazione.

  1. Fatti aiutare da Google Analytics

    Google Analytics รจ un tool free in continuo aggiornamento, grazie al suo utilizzo potrete accedere ad una quantitร  innumerevole di informazioniย  grazie ai quali potrete capire quali sono le keywords piรน performanti e quelle dove riporre piรน sforzi.

  2. Il web รจ in continua crescita e cosรฌ anche il tuo sito dovrebbe essere dinamico

    Internet รจ in continua evoluzione, lasciare il tuo sito abbandonato a se stesso per troppo tempo potrebbe essere rischioso. Inserire anche poco contenuto costantemente puรฒ aiutare il vostro sito web a scalare i motori di ricerca dimostrando loro che il sito non รจ morto.

  3. Se puoi fai uso dei feed rss

    I feed Rss sono ben visti , sia dai motori di ricerca, che dagli utenti del tuo sito che potranno cosรฌ mantenersi aggiornati sugli eventi e sulle offerte pubblicate nel tuo sito. Inoltre i feed Rss sono una seconda sitemap che i motori di ricerca possono utilizzare per tenersi aggiornati sulle novitร  del tuo sito.

  4. Scrivi contenuto per gli utenti e non per i motori di ricerca

    Scrivere il contenuto dei propri siti web avendo in mente i motori di ricerca puรฒ avere i suoi vantaggi, ma devi pensare che anche se riuscirai ad essere primo nei motori di ricerca, se lโ€™utente entrerร  e non troverร  il tuo sito facilmente accessibile uscirร  immediatamente portando cosรฌ il Bounce-Rateย  a sfiorare il 100%. Il Bounce-Rate รจ un valore che google ed altri motori di ricerca utilizzano per valutare la qualitร  di un sito in relazione della keyword.

  5. Prendi in considerazione la possibilitร  di inserire il tuo sito in varie directory

    Le directory sono cataloghi di siti web divisi per tipologia. Alcune directory mondiali hanno un alta rilevanza per i motori di ricerca che appoggiano una parte dei loro database a queste directory. Ad esempio Lโ€™Open Directory Project ( http://www.dmoz.org ) รจ la directory piรน vasta al mondo e google ne fa riferimento per dare maggiore importanza ai siti web presenti in quel sito. Fai particolare attenzione alla โ€œqualitร โ€ della directory che stai prendendo un esame.

  6. Rendi il tuo sito piรน snello e veloce da visualizzare

    La velocitร  con la quale si apre il tuo sito puรฒ giocare un ruolo fondamentale per lโ€™ottimizzazione del tuo sito web. Infatti google prende in considerazione anche la velocitร  e la stabilitร  del tuo sito web per valutare lโ€™affidabilitร  dei tuoi contenuti. Inoltre รจ dimostrato che gli utenti di fronte ad un sito lento nel caricamento tendono ad uscire (vedi bounce rate sopra). Quindi un sistema di caching lato server puรฒ essere di vitale importanza.

Yahoo Web Analytics vs Google Analytics

10 Ott 08

Pochi giorni fร  Dennis Mortesen ha annunciato lโ€™avvio del nuovo web analytics di Yahoo (YWA)destinato a fare concorrenza a GA ( anche se Eric peterson crede che i due non siano in diretta concorrenza ).

Purtroppo per ora l’accesso รจ riservato per poche persone d’elite :(( . Quindi, non potendolo provare, riporto di seguito il lavoro effettuato da tambu di Google Analytics in 30 secondi dove nel suo articolo effettua un’ ottima comparazione usando le features rilasciata.

Yahoo Web Analytics Google Analytics
Executive dashboards
Customize your dashboard with the metrics, benchmarks and gauges that meet your specific needs and preferences. presente
Quickly set goals, track progress and identify danger points. non ha i danger points, che presumo essere degli alert se il tasso di conversione scende sotto a un tot prefissato
Each person and role within your company can have their own dashboard. presente
Custom Reports
Add categories to pre-defined reporting items, so your reports match the way your business is organized. tutti vedono tutti i report, non ci sono viste predefinite
Use custom fields. For example, if you have a travel website, you could track according to travel destination, length of stay, price ranges, or ticket type. assente
Advanced Campaign Management
Measure cost-per-click (CPC), cost-per-impression (CPM), cost-per-acquisition (CPA) and return-on-investment (ROI)-and adjust your budget if necessary. solo CPC e ROI
Organize your reports by hierarchical categories you determine. assente
Analyze your campaign results according to the categories you define. assente
Real-Time Segmentation
See how visitors react to different campaign landing pages, page layouts, calls to action, and more – then optimize your pages and offers. difficile dirlo senza vederlo. Direi che รจ presente, eventualmente in collaborazione con Google Website Optimizer
Identify your best visitors and use that information to find more of those visitors. assente
Live Cost Analysis
Take advantage of Advanced Live Cost Analysis that collects data from Yahoo!, Google and MSN, and integrates it with the revenue earned on your website. assente (killer application)
Measure the ROI of your paid search campaigns, keyword by keyword. presente, nativamente solo per AdWords
Resolve inconsistencies between Yahoo! Web Analytics data and your Paid Search reports. probabilmente si realizza legando lโ€™account YWA a quello della piattaforma Panama, come GA con AdWords
Merchandise Reporting
Track the products – and product combinations – your customers purchase, add to their carts, and preview. presente, con modifiche allo script e abilitazione dei report e-commerce
Create reports that reflect cancelled orders or changes to order amounts by sending API requests to the system. assente (รจ presente solo la possibilitร  di inserire transazioni negative)
Upload product costs to calculate overall campaign profitability. assente
Scenario Analysis
Track visitor behavior through multi-step processes, like purchases or form submissions, and troubleshoot popular paths to improve task completions. presente (dagli screenshot parrebbe che YWA mostri i funnel anche su comparazioni temporali, cosa che GA non fa)
Redefine a process and the changes apply to historical data too. assente (killer application)
Comparative Reporting
Learn how your website performance develops from month to month. presente
Bookmark reports and use past results as a benchmark for improvement. assente
Advanced Path Analysis
Identify popular paths through your site – viewing user paths as branched, hierarchical maps. presente
Drill down on branches to follow visitor movements down to a single visit. assente
Marketing Workflow Management
Monitor events that affect your website, such as site changes, holidays or system outages. assente
Create custom email alerts to notify you of changes to website performance. assente
Improve communication with colleagues by sharing notes on reports and dashboards, and color coding report results to easily identify irregularities. assente (killer application)

Tambu, ottimo utilizzatore di google analytiics, ha marcato in grassetto le features che, secondo il suo parere, google dovrร  implementare velocemente.

Per maggiori informazioni vi raccomando di leggere l’articolo di tambu qui.

Saluti.