Skip to content

A simple and quick to deploy static web click tracker.

License

Notifications You must be signed in to change notification settings

Hotshot824/page-hit-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Page-Hit-Tracker

A simple static web page hit tracker using Golang and SQLite, Can tracking different subpages of a static web page.

Features

  • Build a simple backend server yourself for tracking page hits
  • Use a lightweight database like SQLite
  • Fast and easy to use
  • Track static web subpages

Requirements

  • dokcer with docker-compose

How to use

  1. Install docker and docker-compose
  2. Clone this repository
  3. Setting you publishing url in config.json
    • "trackerURL": "PUBLISHING_URL"
  4. Run bash RUN.sh to start the server
    • The server will run on port 8080

Use the following code to track page hits, and replace the PUBLISHING_URL with your publishing url.

<script async src="${ PUBLISHING_URL }/tracker.js"></script>
<span id="page-hit-tracker"></span>

About

A simple and quick to deploy static web click tracker.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published