a real-time web analytics tracker and dashboard
inspired by projects like Udara's Stats and Martin's GoatCounter
fork this val
initialize the database tables
initAnalytics() function from the webAnalyticsModconfigure mySitesConfig
mySitesConfig objectallowedOrigins fieldadd the tracking script to your sites
</body> tag of each site you want to track<script> (function() { var script = document.createElement('script'); script.async = true; script.src = 'https://<your-username>-mysitesserver.web.val.run/trackingScript'; var firstScript = document.getElementsByTagName('script')[0]; firstScript.parentNode.insertBefore(script, firstScript); })(); </script>
<your-username> with your Val Town usernameMigrated from folder: counter_town/counterTown