Skip to content

joshua-mo-143/anachan

Repository files navigation

AnaChan

A simple web analytics service that lets you track views for your website, per URI.

Quickstart

Shuttle Deployment

Use the following cargo shuttle command (make sure you're logged in and have cargo-shuttle installed):

cargo shuttle init --from joshua-mo-143/anachan

Follow the prompts, then cd to the folder. Next, deploy it :

cargo shuttle deploy

Once it's deployed, you're ready to use it!

Simply add the following to the HTML head of any web page you own to start using:

<script src="https://<your-project-name-here>.shuttleapp.rs/script.js"></script>

Non Shuttle Deployment

Use the Dockerfile!

You'll need to provide PORT, DATABASE_URL and DOMAIN_URL.

Docker secrets via Swarm is not supported. Yet.

Troubleshooting

Make sure your cargo-shuttle and other Shuttle-related dependencies on the project are up to date.

If there's any other issues, feel free to open an issue!

Features

  • View page hits for the last 7 days on whatever domain or page you have that uses the JS script
  • Simple to use

To do

  • Lock dashboard behind password
  • Add support for buttons/links (button clickthrough rate, clicking on links, etc)
  • Add more things that you can view (highest referrer link, etc)
  • expand metrics

Fun facts

AnaChan is supposed to be shorthand for "Analytics Channel", but AnaChan is just easier to say. This repo was also originally called "legendary-analytics-machine", but that name is far too long.