Enriching data with Google Analytics Data

Hi! In reference to this doc https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/enrich-your-records-with-google-analytics-data/, is it considered best practice for this logic to be done on the back end? Would it be considered not secure to implement in the front end using the Google Analytics REST API?

Hi @adam.tsai, yes it would be best to implement in the backend as you will be using private keys.