This is a step-by-step tutorial on how to connect your Google Analytics (GA) pageview data with your Algolia Index data. This blog post assumes that:

If you are new to Algolia, πŸ‘‰ check out my blog post on how to implement Algolia on a Gatsby Site πŸ“š

I am going to show you how you can optimize search results being returned from Algolia by adding GA pageview data to your Algolia Index.

We have implemented Algolia on our Gatsby app and we are deploying the app via Github Actions to AWS, thereby using Github Secrets to set environment variables.

The auth of the Google Analytics API was not as straightforward as the docs say, since we have an open source repo and have to use GitHub Secrets to store our keys. I would like to share with you today, how we achieved this in GitHub Actions πŸš€

I will walk you through the Algolia Docs solution and show you the adjustment that I made to the code to fit our index and GitHub Actions use case. Without further ado, let’s get started 🌟

#gatsbyjs #algolia #nodejs #google-analytics #github-actions

Make Algolia Search Results More Relevant With Google Analytics API
3.15 GEEK