late-ambulance-66508
03/24/2026, 9:54 AM"variations": [0, 1, 2],
"weights": [0.8, 0.1, 0.1],
"key": "map_timeline_bubble",
"meta": [
{
"key": "0",
"name": "Control"
},
{
"key": "1",
"name": "v1"
},
{
"key": "2",
"name": "v2"
}
],
Example 2 with changed variation IDs:
"variations": [0, 1, 2],
"weights": [0.8, 0.1, 0.1],
"key": "ios-map-timeline-mini-bubble-copy",
"meta": [
{
"key": "3",
"name": "Control"
},
{
"key": "4",
"name": "v1"
},
{
"key": "5",
"name": "v2"
}
],
In the callback, in both cases I see only 0,1,2 variations.late-ambulance-66508
03/24/2026, 9:55 AMpowerful-spoon-16837
03/24/2026, 11:36 AMvariationID - The array index of the assigned variation. So it will always return 0, 1, 2, regardless of custom IDs.
The custom ID from meta is available via the key field - The unique key for the assigned variation.
Confirmed locally: with custom IDs set to 3, 4, 5, the result returned: variationId: 2 and key: 5.
So in your trackingCallback, use: result.key instead of result.variationId to get custom variation ID
Docs reference: https://docs.growthbook.io/lib/build-your-own#experimentresultlate-ambulance-66508
03/24/2026, 11:42 AMlate-ambulance-66508
03/24/2026, 12:19 PM