Your Personalization data is stored and processed in a specific region: either in Europe (Germany), or in the United States.
When initializing the Personalization client, you need to select your analytics region:
<?phprequire_once__DIR__."/vendor/autoload.php";useAlgolia\AlgoliaSearch\PersonalizationClient;// You need an API key with `editSettings` permission$personalization=PersonalizationClient::create('YourApplicationID','YourWriteAPIKey','eu'// Default: 'us');
1
2
3
4
5
6
7
8
require'algolia'# You need an API key with `editSettings` permissionpersonalization=Algolia::Personalization::Client.create('YourApplicationID','YourAPIKey','eu',# Default: 'us')
1
2
3
4
5
6
7
8
constalgoliasearch=require('algoliasearch');// You need an API key with `editSettings` permissionconstclient=algoliasearch('YourApplicationID','YourAPIKey');constpersonalization=client.initPersonalization{region:'eu'// Default: 'us'});
importAlgoliaSearchClient// You need an API key with `editSettings` permissionsletclient=PersonalizationClient(appID:"YourApplicationID",apiKey:"YourWriteAPIKey",region:.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.ClientPersonalizationimportcom.algolia.search.configuration.Region.Personalization.EU// import com.algolia.search.configuration.Region.Personalization.USsuspendfunmain(){// You need an API key with `editSettings` permissionvalclient=ClientPersonalization(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;// You need an API key with `editSettings` permissionclassProgram{publicstaticvoidMain(string[]args){varclient=newPersonalizationClient("YourApplicationID","YourAPIKey","eu"// Default: US);}}
1
2
3
4
5
6
7
8
importcom.algolia.search.DefaultPersonalizationClient;importcom.algolia.search.PersonalizationClient;publicclassProgram{publicstaticvoidmain(String[]args){// You need an API key with `editSettings` permissionsPersonalizationClientclient=DefaultPersonalizationClient.create("YourApplicationID","YourAPIKey","eu");}
packageorg.exampleimportalgolia.AlgoliaClientobjectProgramextendsApp{// You need an API key with `editSettings` permissionvalclient=newAlgoliaClient("YourApplicationID","YourAPIKey")client.personalizationHost="https://personalization.eu.algolia.com"}