Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 29 lines (20 sloc) 3.309 kb
# This example shows how to load the Google Analytics data to the GoodData project
# see full command documentation at http://developer.gooddata.com/gooddata-cl/cli-commands.html
CreateProject(name="Google Analytics",templateUri="/projectTemplates/GoogleAnalytics");
RememberProject(fileName="examples/ga/pid");
# Please uncomment the following block (3 lines) if you want to load multiple GA profiles to a single GoodData project
#UseCsv(csvDataFile="examples/ga/profile.csv",header="true",configFile="examples/ga/ga.profile.xml");
#ExecuteMaql(maqlFile="examples/ga/profile.maql");
#TransferData(incremental="true");
UseGoogleAnalytics(username="your-ga-username@gmail.com",password="your-ga-password",profileId="ga:7468896",configFile="examples/ga/ga.browser.xml",dimensions="ga:date|ga:browser|ga:browserVersion|ga:isMobile|ga:flashVersion|ga:javaEnabled",metrics="ga:bounces|ga:newVisits|ga:pageViews|ga:visits|ga:timeOnSite|ga:uniquePageviews|ga:timeOnPage|ga:exits|ga:entrances",startDate="2010-10-01",endDate="2010-10-09");
TransferData(incremental="true");
UseGoogleAnalytics(username="your-ga-username@gmail.com",password="your-ga-password",profileId="ga:7468896",configFile="examples/ga/ga.os.xml",dimensions="ga:date|ga:screenColors|ga:screenResolution|ga:operatingSystem|ga:operatingSystemVersion",metrics="ga:bounces|ga:newVisits|ga:pageViews|ga:visits|ga:timeOnSite|ga:uniquePageviews|ga:timeOnPage|ga:exits|ga:entrances",startDate="2010-10-01",endDate="2010-10-09");
TransferData(incremental="true");
UseGoogleAnalytics(username="your-ga-username@gmail.com",password="your-ga-password",profileId="ga:7468896",configFile="examples/ga/ga.visitor.xml",dimensions="ga:date|ga:visitorType|ga:connectionSpeed|ga:hostname|ga:networkDomain|ga:networkLocation",metrics="ga:bounces|ga:newVisits|ga:pageViews|ga:visits|ga:timeOnSite|ga:uniquePageviews|ga:timeOnPage|ga:exits|ga:entrances",startDate="2010-10-01",endDate="2010-10-09");
TransferData(incremental="true");
UseGoogleAnalytics(username="your-ga-username@gmail.com",password="your-ga-password",profileId="ga:7468896",configFile="examples/ga/ga.geography.xml",dimensions="ga:date|ga:continent|ga:subContinent|ga:country|ga:region|ga:city",metrics="ga:bounces|ga:newVisits|ga:pageViews|ga:visits|ga:timeOnSite|ga:uniquePageviews|ga:timeOnPage|ga:exits|ga:entrances",startDate="2010-10-01",endDate="2010-10-09");
TransferData(incremental="true");
UseGoogleAnalytics(username="your-ga-username@gmail.com",password="your-ga-password",profileId="ga:7468896",configFile="examples/ga/ga.content.xml",dimensions="ga:date|ga:exitPagePath|ga:landingPagePath|ga:pagePath|ga:pageTitle|ga:previousPagePath|ga:nextPagePath",metrics="ga:bounces|ga:newVisits|ga:pageViews|ga:uniquePageviews|ga:timeOnPage|ga:exits|ga:entrances",startDate="2010-10-01",endDate="2010-10-09");
TransferData(incremental="true");
UseGoogleAnalytics(username="your-ga-username@gmail.com",password="your-ga-password",profileId="ga:7468896",configFile="examples/ga/ga.campaign.xml",dimensions="ga:date|ga:adSlot|ga:campaign|ga:keyword|ga:medium|ga:referralPath|ga:source",metrics="ga:bounces|ga:newVisits|ga:pageViews|ga:visits|ga:timeOnSite|ga:uniquePageviews|ga:timeOnPage|ga:exits|ga:entrances",startDate="2010-10-01",endDate="2010-10-09");
TransferData(incremental="true");
Jump to Line
Something went wrong with that request. Please try again.