Replace ALGOLIA_APPLICATION_ID_REGION with your Algolia application’s analytics region: us for the United States or de for Europe.
You can check your analytics region in the Infrastructure > Analytics section of the Algolia dashboard.
The algoliasearch package includes API clients for the Search, Recommend, Analytics, A/B testing, and Personalization API.
If you just want to use the Analytics API client, you can install its package on its own: