Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.

Netlify Analytics Storage

Netlify only stores 30 days worth of analytics, so want to see how many visitors you had over the last year? Too bad.

Unless!

You query the data yourself every 30 days and store it, then you could analyze as far back as your heart's content.

That's what this is doing: run every 30 days, get the data from Netlify, store it in SQL.