I have a lot of websites and want to get analytics from Google about all pages served by the cache.

Is it possible to add javascript or html to the bottom of each page served by the cache?

For example swap `</body>` with `<script>analytics code</script></body>`