Pentaho Google Analytics step allows to extract Google Analytics data.
Stepwise illustration given below.
Step 1
Enable Google Analytics and generate API key.
- Log into http://developers.google.com using gmail id.
- Click on API Console.
- Enable Analytics API.
- Copy API key from API access tab.
Step 2
Create a sample transformation.
Drag "Google Analytics" step into the transformation canvas.
Configure Google Analytics step.
Connection Settings
- Application Name : Leave as default value "type-exit.org kettle plugin"
- Email : Google account user id
- Password : Google account password
- API Key : API key from step 1.
Click on "Get Profiles" button to populate table id from profile.
Query Definition
- Start Date ( YYYY-MM-DD ) : Data extract start date.
- End Date ( YYYY-MM-DD ) : Data extract End date.
- Filters : Selection criteria filter for the data extract.
- Sort : Sort by field.
- Dimensions : Dimensions to query on.
- ga:continent
- ga:subContinent
- ga:country
- ga:region
- ga:metro
- ga:city
- ga:latitude
- ga:longitude
- ga:networkDomain
- ga:visitorType
- ga:visitCount
- ga:daysSinceLastVisit
- Metrics : Measures to retrieve.
- ga:visitors
- ga:newVisits
- ga:percentNewVisits
- ga:pageviews
- ga:pageviewsPerVisit
- ga:uniquePageviews
- ga:timeOnPage
- ga:avgTimeOnPage
- ga:exits
Step 4
Preview data.
Step 5
Specify output file or table.
Step 6
Execution results given below.
2014/03/12 12:58:05 - Spoon - Asking for repository
2014/03/12 12:58:05 - Version checker - OK
2014/03/12 14:14:41 - Spoon - Transformation opened.
2014/03/12 14:14:41 - Spoon - Launching transformation [tr_google_analytics_sample]...
2014/03/12 14:14:41 - Spoon - Started the transformation execution.
2014/03/12 14:14:41 - tr_google_analytics_sample - Dispatching started for transformation [tr_google_analytics_sample]
2014/03/12 14:14:43 - Google Analytics.0 - Finished processing (I=0, O=0, R=0, W=32, U=0, E=0)
2014/03/12 14:14:43 - write_analytics_out.0 - Finished processing (I=0, O=33, R=32, W=32, U=0, E=0)
2014/03/12 14:14:43 - Spoon - The transformation has finished!!
No comments:
Post a Comment