Troubleshooting

Here is a summary of common integration issues and their solutions.

circle-check

1. A User Identifier error occurs when calling variation

Cause

The JavaScript SDK accepts user information as an object. Passing only a string may cause an error.

Solution

Pass user information as an object as shown below.

hackleClient.variation(6, "user_id") // incorrect
hackleClient.variation(6, { id: "user_id" }) // correct

2. I am using a custom identifier but the metrics look incorrect

Things to check

Both variation and track must pass the same identifier. If only one side passes the identifier, they may be counted as different users.

Incorrect example

Correct example

circle-exclamation

3. The Real-time Exposure Status keeps increasing for the same user

This is normal behavior.

  • Real-time Exposure Status aggregates the raw call count of variation.

  • This is the total exposure count without deduplication.

  • Goal metrics are calculated based on unique visitors (UV) with deduplication.

In other words, the numbers in Real-time Exposure Status and goal metrics can differ.

4. After the test ends, all traffic goes to the Winner group

This is normal behavior. Once a Winner is selected, subsequent traffic is directed to that group.

  1. End the A/B test in the Dashboard.

  2. Select the Winner group.

  3. Remove the test-related code from the Production environment.

  4. Archive the test in the Dashboard.

5. Overrides in the JavaScript SDK are not reflected immediately

The JavaScript SDK caches configuration values for performance. As a result, Override results may not appear immediately.

Solution

  1. Perform a hard refresh in Chrome.

  2. If that does not work, open Developer Tools.

  3. Right-click the refresh button.

  4. Select Empty Cache and Hard Reload.

Clear cache and hard reload in Chrome browser

6. It seems like users are all being assigned to variation A

Variation A is the default group. Users may be placed in group A in the following cases:

  • When the user is not allocated to the test

  • When the user is an Override target

  • When an error occurs

Related behavior can be found in detail in the documents below.

How to identify the cause

Some SDKs support the variationDetail method.

This method also returns the reason why a user was assigned to a specific group. If you need to analyze the cause, check this method first.

Last updated