Jump to content

Alfredlytics - Google Analytics Workflow

Recommended Posts

Alfredlytics - Google Analytics Workflow

This workflow shows Google Analytics metrics and dimensions directly in Alfred 2:

  • Visitors / Pageviews of the last 7 days
  • Top Pages of the last 30 days
  • Top Referrers of the last 30 days
  • Top Searches of the last 30 days



Download and import into Alfred 2.



Before you can use the workflow you have to configure your Google Analytics account. This will use Google OAuth2, so you will not have to save your Google credentials with the workflow.


1. Authorize the workflow to access your Google Analytics data:

.gaauth [Google Auth Code]

First call the keyword without an argument. This will redirect you to Google's authorization website.


Copy the auth code and call the keyword a second time with the auth code as argument.


2. Choose your default profile:


After you have authorized the workflow you have to choose your default profile.



Show Google Analytics data


Currently you can view these metrics/dimensions:

  • Visitors / Pageviews of the last 7 days
  • Top Pages of the last 30 days
  • Top Referrers of the last 30 days
  • Top Searches of the last 30 days


Thanks to Jeffrey B. Murphy and Mario Alemi for their excellent articles on Google OAuth2 authentication on the shell.
Some of the icons are part of the "Web Design" icon pack created by Liam McKay.

Share this post

Link to post

Firstly wow!! This is a great workflow


I am getting a weird font thingy on the results...


That's the intended behaviour. The black squares are your visitors and the white ones are your additional pageviews. I tried to create a graphical representation of the data be make it easier to see the current trend.

Share this post

Link to post


thanks for the great workflow, but i can setup the workflow with authentification and profile and everything seems alright.


But if i start the workflow i get the first mask, but if i want to show for example Visitiors, nothing happens?


Maybe a little incompatible problem with Alfred3 ?


Can anyone help?




Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...