4 ms·
I started writing a backend in Go. So far it parses the request, turns it into a struct and saves it to mongodb. However 2 requests per page are recorded, no id
by dalu 6y ago
I started writing a backend in Go.
So far it parses the request, turns it into a struct and saves it to mongodb. However 2 requests per page are recorded, no idea why that happens. One has 24 or 25 fields filled, the next 15-19 fields.
Anyhow that's as far as I got.
The next and largest step would be analyzing those records aka creating all those beautiful graphs.
Also creating a management interface for sites and generation of tracking code.
While it's open source (search for gopiwik) it still uses the mgo.v2 driver and I just yesterday added go module support and did some minor changes.
I thought, why reinvent the wheel, let's just grab the piwik.js and build a receiver. Turns out it's a bit more complicated than that.