diff --git a/components/n-ui/tracking/ft/index.js b/components/n-ui/tracking/ft/index.js index e9eb498db..db6849f3c 100644 --- a/components/n-ui/tracking/ft/index.js +++ b/components/n-ui/tracking/ft/index.js @@ -98,6 +98,16 @@ const oTrackingWrapper = { } } + const abState = getRootData('ab-state'); + if (abState && abState !== '-') { + const ammitAllocations = {}; + abState.split(',').map(flag => { + const [name, value] = flag.split(':'); + ammitAllocations[name] = value; + }); + context['active_ammit_flags'] = ammitAllocations; + } + oTracking.init({ server: 'https://spoor-api.ft.com/ingest', context: context,