Skip to content
Accelerate Google Analytics
Branch: master
Clone or download
Latest commit 83e5a99 Feb 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ga fix: data to tData Feb 11, 2019
packages/ga fix(package.json): main file path typo Feb 14, 2019
server fix: uid assign in block Feb 11, 2019
.dockerignore fix(docker): build error Feb 9, 2019
.gitignore refactor package Feb 10, 2019
.travis.yml fix ci Feb 10, 2019
Dockerfile fix: skip logger for ping Feb 9, 2019
LICENSE Initial commit Jul 17, 2017
Makefile refactor package Feb 10, 2019
README.md update readme Feb 14, 2019
docker-compose.yml update readme Feb 14, 2019
go.mod refactor code Feb 9, 2019
go.sum
main.go

README.md

ga-proxy

Travis Status Docker Build Status GitHub release Size

Accelerate Google Analytics.

Get Start

Run via Docker

docker pull giuem/ga-proxy
docker run -d -p <port>:80 --name <container_name> giuem/ga-proxy

Run as you like

1. Install

Download binary from release or build yourself.

2. Run

GIN_MODE=release ./ga-proxy [arguments]

options:

--ip IP, -i IP        IP to listen (default: "127.0.0.1") [$IP]
--port port, -p port  port to listen (default: "9080") [$PORT]

e.g.

./ga_proxy -i 0.0.0.0 -p 80

3. Insert script to your website

<script>
// replace following variables to your own
window.ga_tid = "UA-XXXXX-Y";
window.ga_url = "https://ga.giuem.com";
</script>
<script src="https://unpkg.com/@giuem/ga-proxy/dist/ga.min.js" async></script>

Note: ga.giuem.com is my own service, it do not promise any SLA and may shutdown at some day. You'd better deploy your own server.

You can’t perform that action at this time.