This is an old revision of the document!
Last week, we created a daily stats page. If you're like us, then you compulsively click refresh on this page way too often! So lets AJAX-ify this page so that it updates automatically every time someone makes an order.
You can either download jQuery and host it on your own server, or use a CDN like Google or Microsoft. We use Google's CDN.
If you're hosting it on your own server, then add to the <head> section of daily stats
or if you're using a CDN (this one is Google) then use
you have to replace YOUR_API_KEY with the API key you've obtained from Google.