Apps Developer Blog

Information for Google Apps Developers

Analytics reporting with Google Apps Script at the UK Cabinet Office

December 3, 2012
Share on Google+ Share on Twitter Share on Facebook
Google
Labels: Apps Script , Guest Post

5 comments :

Igor Griffiths said...

Well Hello Ashraf

Thanks for sharing in detail how you accomplished this, the time taken to generate statistical reports is the one reason why I all too often skip this task, I am sure many others feel and do the same.

Will have to explore automating my statistic generation further, thanks

Igor Griffiths

December 5, 2012 at 2:56 AM
Neil Krishnan said...

Amazing stuff. I've gotten the data using GA magic script into docs - any more info on the next step of transferring to InDesign?

December 6, 2012 at 12:23 PM
Ashraf Chohan said...

Hi Neil

The data from Google Analytics was used in two ways: first, using InDesign's 'dataMerge' feature, and second, using manual graphic creation.

For any textual or numeric items, including data specific to each department, we used InDesign's 'dataMerge' feature to link to the CSV containing the relevant data to the InDesign file. Once linked, the columns in the source file were available as variables to be inserted into existing text fields in the design. As a final step, the data was 'merged' in, creating a new sheet for each row of data contained in the CSV. The variables applied to the text fields have standard formatting options, so can be styled in advance with paragraph styles or other design tweaks. This process worked well to create the several custom reports from one source file.

Two graphics could not be automated with 'dataMerge' - these were a stacked column graph of daily visits, and a graphic comparing desktop to mobile usage. The column graph was created and styled in Adobe Illustrator, using the 'Column Graph Tool', with the source data updated each day to create a new graphic. The desktop / mobile comparison was a simpler design, which only required resizing a rectangle object directly in InDesign to reflect the new split.

Hope that helps

December 7, 2012 at 4:16 AM
Chris Ryland said...

Ashraf--

Note that you could link the spreadsheet data directly into InDesign, and format it, with our DocsFlow product.

For full details, visit

http://emsoftware.com/products/docsflow/,

and we'd love to get your feedback on how it does or doesn't work for you.

Thanks.
--Chris Ryland, Em Software

December 12, 2012 at 2:32 PM
Isabel Olmos said...

Great article!
Thank you for sharing it! I have some question about the configuration of the Dashboard in Google Site:
- Is there any way to change the date of analysis in Google site instead of Drive? Or it's neccesary change the time period in Drive?
- On the other hand, there is some way to change the names that Google Analytics offers by the default? I mean, for example, if I want to show a graph of Traffic Sources by medium, that it indicates "Direct Traffic" instead of (none)...it's possible?
I do not know if I'm explaining well... Thank you very much!

December 17, 2012 at 9:37 AM

Post a Comment

  

Labels


  • .NET 3
  • #io15 1
  • Administrative APIs 26
  • Admin SDK 4
  • AdSense 1
  • analytics 4
  • Android 5
  • App Engine 5
  • Apps Script 98
  • Auth 1
  • billing 4
  • Charts 1
  • Chrome OS 1
  • classroom 1
  • Cloud Storage API 1
  • Community 1
  • Developers 5
  • Directory API 1
  • Drive 2
  • Drive SDK 38
  • execution API 1
  • Firebase 1
  • Freemium 1
  • Fusion Tables 2
  • Gadgets 5
  • Gmail APIs 16
  • Google+ 3
  • Google APIs 3
  • Google Apps 3
  • Google Apps Directory API 1
  • Google Apps Marketplace 3
  • Google Apps Script 1
  • Google Calendar API 20
  • Google Contacts API 3
  • Google Data Protocol 7
  • google docs 3
  • Google Docs API 20
  • Google Drive 2
  • Google Forms 4
  • Google I/O 3
  • googlenew 1
  • Google Prediction API 3
  • Google Profiles API 2
  • Google sheets 2
  • Google Sites API 4
  • Google Spreadsheets API 4
  • Google Talk 1
  • Google Tasks API 6
  • Groups 2
  • Guest Post 42
  • ISVs 2
  • java 1
  • JavaScript 3
  • marketing 3
  • Marketplace 47
  • Marketplace ISV Guest 21
  • Migration 1
  • Mobile 1
  • mpstaffpick 1
  • oauth 11
  • OpenID 7
  • PHP 1
  • python 4
  • realtime API 1
  • Resellers 2
  • Ruby 1
  • SaaS 1
  • security 1
  • Staff Picks 2
  • webinar 2


Archive


  •     2015
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
  •     2014
    • Dec
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Mar
    • Feb
    • Jan
  •     2013
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2012
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2011
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2010
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb

Feed

Company-wide

  • Official Google Blog
  • Public Policy Blog
  • Student Blog

Products

  • Android Blog
  • Chrome Blog
  • Lat Long Blog

Developers

  • Developers Blog
  • Ads Developer Blog
  • Android Developers Blog
  • Google
  • Privacy
  • Terms