A simple web analytics service that lets you track views for your website, per URI.
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>
Use the Dockerfile!
You'll need to provide PORT
, DATABASE_URL
and DOMAIN_URL
.
Docker secrets via Swarm is not supported. Yet.
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!
- View page hits for the last 7 days on whatever domain or page you have that uses the JS script
- Simple to use
- 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
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.