Contentful : Use AB Tasty to Serve the Right Variation
Use AB Tasty to Serve the Right Variation
{
"sys": {
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "test"
}
},
"id": "FAKE_ID",
"type": "Entry",
"createdAt": "2025-08-28T13:49:03.977Z",
"updatedAt": "2025-08-28T13:49:03.977Z",
"environment": {
"sys": {
"id": "master",
"type": "Link",
"linkType": "Environment"
}
},
"publishedVersion": 3,
"revision": 1,
"contentType": {
"sys": {
"type": "Link",
"linkType": "ContentType",
"id": "abTastyContainer"
}
},
"locale": "en-US"
},
"fields": {
"environmentId": "ci84rm4uf6t1jrrefeig",
"environment": "prod",
"experimentID": "d1ilgv373e5iv8esho80",
"experimentName": "TEST ContentFull",
"variations": [
{
"sys": {
"type": "Link",
"linkType": "Entry",
"id": "5pDbSiwvTqtBthib8G1opA"
}
},
{
"sys": {
"type": "Link",
"linkType": "Entry",
"id": "5zKtmbcqb9ndM2wgU1KEmk"
}
},
{
"sys": {
"type": "Link",
"linkType": "Entry",
"id": "6QJmXjfiu91B7UpbjlKl1Z"
}
}
],
"meta": {
"d1ilgv373e5iv8esho90": "5pDbSiwvTqtBthib8G1opA",
"d1ili4eg4ajm59kcr1kg": "5zKtmbcqb9ndM2wgU1KEmk",
"d1j7hjfdv6k265cudqg0": "6QJmXjfiu91B7UpbjlKl1Z"
},
"projectId": "ci84rmkuf6t1jrrefejg"
}
}Decide on a Variation with Feature Experimentation
1. Initialize the SDK
2. Create a Visitor
3. Retrieve the Variation ID
Retrieve the Variation Entry from Contentful
Result
Last updated
Was this helpful?

