Your Analytics data is stored and processed in a specific region: either in Europe (Germany), or in the United States.
When initializing the Analytics client, you need to select your analytics region:
useAlgolia\AlgoliaSearch\AnalyticsClient;// You need an API key with `setSettings` permissions$analytics=AnalyticsClient::create('YourApplicationID','YourAPIKey','de'// Default: "us");
1
2
3
4
5
6
7
8
require'algolia'# You need an API key with `setSettings` permissionsanalytics=Algolia::Analytics::Client.create('YourApplicationID','YourAPIKey','de'# Default: 'us')
1
2
3
4
5
6
7
8
9
constalgoliasearch=require('algoliasearch');// You need an API key with `setSettings` permissionsconstclient=algoliasearch('YourApplicationID','YourAPIKey');constanalytics=client.initAnalytics({appId:'YourApplicationID',apiKey:'YourAPIKey',region:'de'// Default: 'us'});
1
2
3
4
5
6
7
8
fromalgoliasearch.analytics_clientimportAnalyticsClient# You need an API key with `setSettings` permissions
analytics=AnalyticsClient.create("YourApplicationID","YourAPIKey","de"# Default: "us"
)
1
2
3
4
5
6
7
8
importAlgoliaSearchClient// You need an API key with `setSettings` permissionsletclient=AnalyticsClient(appID:"YourApplicationID",apiKey:"YourAPIKey",region:.de// Default: .us)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
importcom.algolia.search.model.APIKeyimportcom.algolia.search.model.ApplicationIDimportcom.algolia.search.client.ClientAnalyticsimportcom.algolia.search.configuration.Region.Analytics.EU// import.com.algolia.search.configuration.Region.Analytics.USsuspendfunmain(){// You need an API key with `setSettings` permissionvalclient=ClientAnalytics(applicationID=ApplicationID("YourApplicationID"),apiKey=APIKey("YourAPIKey"),region=EU// default: US)}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
usingAlgolia.Search.Clients;classProgram{publicstaticvoidMain(string[]args){// You need an API key with `setSettings` permissionsvarclient=newAnalyticsClient("YourApplicationID","YourAPIKey","de",// Default: "us")}}
1
2
3
4
5
6
7
8
9
10
11
12
13
importcom.algolia.search.DefaultAnalyticsClient;importcom.algolia.search.AnalyticsClient;publicclassProgram{publicstaticvoidmain(String[]args){// You need an API key with `setSettings` permissionsAnalyticsClientclient=DefaultAnalyticsClient.create("YourApplicationID","YourAPIKey","de"// Default: "us");}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
packagemainimport("github.com/algolia/algoliasearch-client-go/v3/algolia/analytics""github.com/algolia/algoliasearch-client-go/v3/algolia/region")funcmain(){// You need an API key with `setSettings` permissionsclient:=analytics.NewClientWithConfig(analytics.Configuration{AppID:"YourApplicationID",APIKey:"YourAPIKey",Region:region.DE,// Default: `region.US`},)}
1
You can't select your Analytics region with the Scala API client.