The analytics3
command-line interface (CLI) allows to use most features of the Google analytics service from the comfort of your terminal.
By default all output is printed to standard out, but flags can be set to direct it into a file independent of your shell's
capabilities. Errors will be printed to standard error, and cause the program's exit code to be non-zero.
If data-structures are requested, these will be returned as pretty-printed JSON, to be useful as input to other tools.
Everything else about the analytics API can be found at the
official documentation site.
Downloads
You can download the pre-compiled 64bit binaries for the following platforms:
Find the source code on github.
Usage
This documentation was generated from the analytics API at revision 20161004. The CLI is at version 1.0.0.
```bash
analytics3 [options]
data
ga-get [-p ]... [-o ]
mcf-get [-p ]... [-o ]
realtime-get [-p ]... [-o ]
management
account-summaries-list [-p ]... [-o ]
account-user-links-delete [-p ]...
account-user-links-insert (-r )... [-p ]... [-o ]
account-user-links-list [-p ]... [-o ]
account-user-links-update (-r )... [-p ]... [-o ]
accounts-list [-p ]... [-o ]
custom-data-sources-list [-p ]... [-o ]
custom-dimensions-get [-p ]... [-o ]
custom-dimensions-insert (-r )... [-p ]... [-o ]
custom-dimensions-list [-p ]... [-o ]
custom-dimensions-patch (-r )... [-p ]... [-o ]
custom-dimensions-update (-r )... [-p ]... [-o ]
custom-metrics-get [-p ]... [-o ]
custom-metrics-insert (-r )... [-p ]... [-o ]
custom-metrics-list [-p ]... [-o ]
custom-metrics-patch (-r )... [-p ]... [-o ]
custom-metrics-update (-r )... [-p ]... [-o ]
experiments-delete [-p ]...
experiments-get [-p ]... [-o ]
experiments-insert (-r )... [-p ]... [-o ]
experiments-list [-p ]... [-o ]
experiments-patch (-r )... [-p ]... [-o ]
experiments-update (-r )... [-p ]... [-o ]
filters-delete [-p ]... [-o ]
filters-get [-p ]... [-o ]
filters-insert (-r )... [-p ]... [-o ]
filters-list [-p ]... [-o ]
filters-patch (-r )... [-p ]... [-o ]
filters-update (-r )... [-p ]... [-o ]
goals-get [-p ]... [-o ]
goals-insert (-r )... [-p ]... [-o ]
goals-list [-p ]... [-o ]
goals-patch (-r )... [-p ]... [-o ]
goals-update (-r )... [-p ]... [-o ]
profile-filter-links-delete [-p ]...
profile-filter-links-get [-p ]... [-o ]
profile-filter-links-insert (-r )... [-p ]... [-o ]
profile-filter-links-list [-p ]... [-o ]
profile-filter-links-patch (-r )... [-p ]... [-o ]
profile-filter-links-update (-r )... [-p ]... [-o ]
profile-user-links-delete [-p ]...
profile-user-links-insert (-r )... [-p ]... [-o ]
profile-user-links-list [-p ]... [-o ]
profile-user-links-update (-r )... [-p ]... [-o ]
profiles-delete [-p ]...
profiles-get [-p ]... [-o ]
profiles-insert (-r