Google analytics reporting using apiDocument Transcript
Creating Google Analytics Dashboard using Google Apps Magic ScriptToday I am going to show you, how to create Google Analytics reports usingGoogle Apps Magic script:Advantages: • Manipulate Google Analytics Data daily, or may be hourly basis • Create new visualizations • Create customized dashboards • Share with People, without providing access to Goggle AnalyticsRequirements: • GA (Free version) • Spreedsheet (Free) • App Script & API Key (free) • Google Site (Free)Example:Dashboard showing visitsProcedure:Step 1: Go to Google Drive and create a New SpreadsheetStep 2: Inside the spreadsheet go to tool --> scrip gallery --> and search for“google analytics report magic script”Step 3: Authorize the Script and install it
Step 4: After installing the Script go tools script editor Resources use Google API (allow script to use google analytics)
Step 5: Under General Api’s section: Allow Google Analytics APIStep 6: Now we need a Google Analytics API Key. Click the Google API’sConsole link.Step 7: Create new project
Step 8: Under services enable analytics APIStep 10: Finally your API key will be found under API access tab.
Step 11: Go back to tools script editor Resource use Google API’s andpaste the API key Step 12: Allow the script to run and in 2 mins you will see Google Analytics Tab in Google Spreadsheet.
Step 13: Go to Google analytics tab Find Profile ids and click your Google Account, that you wish to track. Step: 14Metrics and Dimensions complete list can be found here:https://developers.google.com/analytics/devguides/reporting/core/dimsmetsStep 15: Sheet-name, metrics, dimensions are required fields. Also select the date rangeaccordingly.
Step 16: Now go to Google Analytics Get dataStep 17: Dates will be populated in new tab within the spreadsheet as shown below.