ga-proxy

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2019 License: MIT Imports: 5 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL