David Poindexter's profile image, displayed in a round border
I'm David, a software engineer and cloud architect.
I specialize in serverless development, cloud architecture and implementation, and write about my experiences along the way.

So I wanted to see how my outreach was going. I wanted to not reach for the boring solutions that exist like everywhere, and keep everything AWS/Amplify. Would it work? Yes, yes it did work.

Here are the criteria:

Note: If you don’t care how I did it, you can explore the actual docs here AWS Amplify Analytics Docs

Here’s how I did it…

Presuming you already have an amplify frontend with Gatsby, you need a backend. So, init the amplify backend.

amplify add analytics

You’ll get some config options. If you get concerned(as I did), it does use Cognito behind the scenes, but the permissions are unauthenticated access, by default.

Also, Pinpoint (the service behind these analytics) may not be available in the region your site is in. No worries, cross-region works just fine. I host this site in us-east-2 (Ohio), but my analytics are in us-east-1 (N. Virginia). You won’t notice any issues.

After you go through the prompts to configure all of it, run a push to get it out in the cloud working for you with:

amplify push

TO BE CONTINUED (with the gatsby code)…