Adding Google Analytics to a Static Website
Add Google Analytics tracking to an S3-hosted static website by injecting the GA4 measurement snippet into HTML and verifying real-time pageview events.
Posts tagged: Cloud-Front
Add Google Analytics tracking to an S3-hosted static website by injecting the GA4 measurement snippet into HTML and verifying real-time pageview events.
Build a Linktree-style links page from scratch with HTML/CSS on Amazon S3, CloudFront, and ACM SSL. Part 1 covers project plan and S3 bucket setup.
Part 2 of the S3 links site build: request a public SSL certificate from AWS Certificate Manager (ACM) and validate ownership for use with CloudFront.
Part 3 of the S3 links site build: create a CloudFront distribution as a CDN in front of the S3 bucket, attach the ACM certificate, and serve over HTTPS.
Part 4 locks down the S3 bucket so only the CloudFront distribution can read it, using Origin Access Identity to block direct public S3 access.