Help us shape the future of Go! Take the 2026 Go Developer Survey

pixelog

command module
v0.0.0-...-ee55171 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2013 License: MIT Imports: 6 Imported by: 0

README

pixelog is a simple way to track visits to a web page,
which doesn't require javascript.

RATIONALE

  When you need something simple to track static HTML
  page visits and don't want to pollute your site with
  javascript.

USAGE

  On the page we want to track, we include an <img> tag
  pointing to the tracking pixel on the pixelog server:

    <img src="http://pixelog.local/t.gif">

  If we want to include additional information, we simply
  add it to the url query string:

    <img src="http://pixelog.local/t.gif?page=home">

  We then start the pixelog server on pixelog.local:

    $ pixelog -l :80 -file "t.gif"

  When our page is loaded, pixelog outputs a log entry:

    2013/09/01 15:38:40 184.96.4.32 /t.gif?page=home "Mozilla/5.0" http://ref.co

  The fields in order of appearance: date, time, remote ip, request url, user-agent,
  referer.

COPYRIGHT

  (C) 2013 Alexis Sellier <alexis@cloudhead.io>

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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