Start with access logs
CloudFront records page requests. Use those logs for analytics, then add the optional browser module to measure actions within a page.

Start with access logs
CloudFront records page requests. Use those logs for analytics, then add the optional browser module to measure actions within a page.
Data stays in your AWS account
Raw logs and reports stay in your S3 buckets. You control access with your existing AWS permissions.
AWS charges by use
Storage and queries are charged by usage. Scheduled Athena queries have a minimum scan charge, even when the site has no traffic.
Read stored results
Scheduled queries write JSON summaries to S3. The CLI reads those files with an S3 GET request for each summary window.