Skip to content

MarkEdmondson1234/gago

Repository files navigation

gago

Google Analytics for Go

Build Status codecov Go Report Card

gago documentation on godoc.com

Mission

Create a CLI that will download GA multi-threaded, using anti-sampling, auto-paging etc. as developed with googleAnalyticsR::google_analytics()

Intended use case is for creating executables that can run on any machine without installing another program first, such as R or Python. This should give more options for running scheduled scripts etc.

Install

There is a Go library for use in your own Go projects, or a command line interface (CLI) for end users.

CLI

Find the latest binary for your system (Windows/MacOS/linux) in the release page

Download the binary of the appropriate type for your system and put it in your bin folder such as /usr/local/bin - rename it to gagocli and chmod to 755

e.g. on MacOS

curl -o gagocli https://github.com/MarkEdmondson1234/gago/releases/download/v0.1.0/gagocli-vlatest-darwin-amd64
# from folder where download is
mv gagocli /usr/local/bin/gagocli
sudo chmod 755 /usr/local/bin/gagocli

# should now be able to use via
gagocli

Read the CLI Readme for usage.

Go

Add the gago library to your Go project via go get github.com/MarkEdmondson1234/gago/gago

Read the gago library Readme for usage.