customized application logging and the google visualization api

64
Custom Application Logging and the Google Visualization API Tito Sierra NCSU Libraries DLI Tech Update April 27, 2010

Upload: tito-sierra

Post on 06-May-2015

3.823 views

Category:

Technology


4 download

DESCRIPTION

This presentation is on two topics: 1. The concept of server-side custom logging to track fine-grained user behavior with a web application, and 2. A gentle introduction to the Google Visualization API, which is a useful tool for visualizing tracked via custom application logs. Includes screenshots of logs and charts for three university library web applications. Delivered to staff at the NCSU Libraries.

TRANSCRIPT

Page 1: Customized Application Logging and the Google Visualization API

Custom Application Logging and the Google Visualization API

Tito SierraNCSU Libraries

DLI Tech UpdateApril 27, 2010

Page 2: Customized Application Logging and the Google Visualization API

1. Custom Application Logging

Page 3: Customized Application Logging and the Google Visualization API

2. Google Visualization API

Page 4: Customized Application Logging and the Google Visualization API

Custom Application Logging

Page 5: Customized Application Logging and the Google Visualization API

Background

Many general purpose web analytics tools exist to analyze website traffic.

Page 6: Customized Application Logging and the Google Visualization API

Background

Many general purpose web analytics tools exist to analyze website traffic.

Examples include Urchin, Google Analytics, AWStats, Mint.

Page 7: Customized Application Logging and the Google Visualization API

Background

Many general purpose web analytics tools exist to analyze website traffic.

Examples include Urchin, Google Analytics, AWStats, Mint.

I’m not talking about these today.

Page 8: Customized Application Logging and the Google Visualization API

Custom Logs Concept

Capture fine-grained usage metrics to reveal deeper or more specialized

insight into user behavior

Page 9: Customized Application Logging and the Google Visualization API

Presentation Scope

Custom application logs can also be used for tracking system related information such as exceptions and errors, but I’m

not going to talk about that today

Page 10: Customized Application Logging and the Google Visualization API

Motivation

Custom logs can be used to focus data analysis on the few specific metrics

that matter most for a given application

Page 11: Customized Application Logging and the Google Visualization API

Motivation

Enhanced knowledge of how people are using your web application can

improve product development planning and decisions

Page 12: Customized Application Logging and the Google Visualization API

Web App Usage Metrics

Page 13: Customized Application Logging and the Google Visualization API

Web App Usage Metrics

Server Logs• Pageviews• Visits• Referrer• IP Address• User agent• Platform• Browser

Page 14: Customized Application Logging and the Google Visualization API

Web App Usage Metrics

Server Logs• Pageviews• Visits• Referrer• IP Address• User agent• Platform• Browser

Custom Logs• App verbs• View• Search• Create• Click

• App views• Referrer categories• Source categories

Page 15: Customized Application Logging and the Google Visualization API

Local Examples

• QuickSearch• GroupFinder• Library Tools

Page 16: Customized Application Logging and the Google Visualization API

QuickSearch Example

Page 17: Customized Application Logging and the Google Visualization API

QuickSearch Example

Page 18: Customized Application Logging and the Google Visualization API

QuickSearch Example

Page 19: Customized Application Logging and the Google Visualization API

QuickSearch Example

Page 20: Customized Application Logging and the Google Visualization API

QuickSearch Example

Page 21: Customized Application Logging and the Google Visualization API

QuickSearch Example

Page 22: Customized Application Logging and the Google Visualization API

QuickSearch Example

Page 23: Customized Application Logging and the Google Visualization API

QuickSearch Example

CAT“catalog”

Page 24: Customized Application Logging and the Google Visualization API

QuickSearch Example

FA“find articles”

Page 25: Customized Application Logging and the Google Visualization API

QuickSearch Example

BB“best bets”

Page 26: Customized Application Logging and the Google Visualization API

GroupFinder Example

Page 27: Customized Application Logging and the Google Visualization API

GroupFinder Example

Page 28: Customized Application Logging and the Google Visualization API

GroupFinder Example

Page 29: Customized Application Logging and the Google Visualization API

GroupFinder Example

USER ID

Page 30: Customized Application Logging and the Google Visualization API

GroupFinder Example

VERB

Page 31: Customized Application Logging and the Google Visualization API

GroupFinder Example

ACTIVITY ID

Page 32: Customized Application Logging and the Google Visualization API

GroupFinder Example

SOURCE

Page 33: Customized Application Logging and the Google Visualization API

GroupFinder Example

Page 34: Customized Application Logging and the Google Visualization API

GroupFinder Example

Page 35: Customized Application Logging and the Google Visualization API

Library Tools Example

Page 36: Customized Application Logging and the Google Visualization API

Library Tools Example

History

Page 37: Customized Application Logging and the Google Visualization API

Library Tools Example

Reserves

Page 38: Customized Application Logging and the Google Visualization API

Which Metrics to Track?

One size does not fit all.

Page 39: Customized Application Logging and the Google Visualization API

Which Metrics to Track?

One size does not fit all.

Track metrics that support the analytic needs of your application and build the

log around these.

Page 40: Customized Application Logging and the Google Visualization API

Pros and Cons of Custom Logs

Pros:• Capture new data• More control of data• Cleaner data• Easier to work with

for developers or spreadsheet experts

Page 41: Customized Application Logging and the Google Visualization API

Pros and Cons of Custom Logs

Pros:• Capture new data• More control of data• Cleaner data• Easier to work with

for developers or spreadsheet experts

Cons:• Not an out of the

box solution• Development costs

to set up logging• Still need to process

data in the logs to yield value

Page 42: Customized Application Logging and the Google Visualization API

Caveat

If you don’t have anyone on your team that cares about usage data analysis, is willing to spend time on it, and has an open mind about it, than don’t bother

Page 43: Customized Application Logging and the Google Visualization API

Google Visualization API

Page 44: Customized Application Logging and the Google Visualization API

Overview

Google Visualization API is a Google hosted javascript-based API for

rendering data visualizations on a webpage

Page 45: Customized Application Logging and the Google Visualization API

Examples

Page 46: Customized Application Logging and the Google Visualization API

Simple Example

Page 47: Customized Application Logging and the Google Visualization API
Page 48: Customized Application Logging and the Google Visualization API
Page 49: Customized Application Logging and the Google Visualization API

src="http://www.google.com/jsapi"

Page 50: Customized Application Logging and the Google Visualization API
Page 51: Customized Application Logging and the Google Visualization API
Page 52: Customized Application Logging and the Google Visualization API

document.getElementById('chart_div')

Page 53: Customized Application Logging and the Google Visualization API
Page 54: Customized Application Logging and the Google Visualization API

<div id="chart_div"></div>

Page 55: Customized Application Logging and the Google Visualization API

data.addColumn('number', 'Age');data.addColumn('number', 'Weight');

Page 56: Customized Application Logging and the Google Visualization API

data.setValue(0, 0, 8);data.setValue(0, 1, 12);

Page 57: Customized Application Logging and the Google Visualization API

More Examples

Page 58: Customized Application Logging and the Google Visualization API

More Examples

Page 59: Customized Application Logging and the Google Visualization API

More Examples

Page 60: Customized Application Logging and the Google Visualization API

Pros and Cons of Google Viz API

Pros:• Web friendly• Cross browser• No server software

install required• Simple API• Lots of “out of the

box” templates

Page 61: Customized Application Logging and the Google Visualization API

Pros and Cons of Google Viz API

Pros:• Web friendly• Cross browser• No server software

install required• Simple API• Lots of “out of the

box” templates

Cons:• Requires

programming*• Requires data to be

serialized in javascript format

• Not suitable for advanced visualizations

Page 62: Customized Application Logging and the Google Visualization API

Caveat

If you want to do data visualization, but don’t have a need to publish charts on a

webpage, you are probably better off just using Microsoft Excel to do your

charts

Page 63: Customized Application Logging and the Google Visualization API

Caveat

Page 64: Customized Application Logging and the Google Visualization API

Thank you!