# In an asynchronous context, you can use AnalyticsClient instead, which exposes the exact same methods.
client=AnalyticsClientSync("ALGOLIA_APPLICATION_ID","ALGOLIA_API_KEY","ALGOLIA_APPLICATION_REGION")
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.
Async code
To use the Analytics client in async environments,
add these imports instead: