API Reference / API Methods / A/B Test
List of methods

It’s recommended to use the Kotlin API client, which is better suited for Android development.

We released a new version of the JavaScript API client in public beta. Read the beta documentation for more information.

We released a new version of the PHP API client in public beta. Read the beta documentation for more information.

We released a new version of the Java API client in public beta. Read the beta documentation for more information.

A/B testing region

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:

1
2
3
4
5
6
7
8
9
10
// Installation instructions:
// https://www.algolia.com/doc/api-client/getting-started/install/
use Algolia\AlgoliaSearch\AnalyticsClient;

// You need an API key with `setSettings` permissions
$analytics = AnalyticsClient::create(
    'YourApplicationID',
    'YourAPIKey',
    'de' // Default: "us"
);

You can check the region for your account in the Algolia dashboard.

Did you find this page helpful?