Help around implementation of A/B test via target using JSON content.
I want to use mbox as an active location to serve our A/B test.
For exp A the location is the mbox "discount-box" and JSON content is {"name":"exp-A"} and for exp B the location is the mbox "discount-box" with JSON content is {"name":"exp-B"}. The targeting is done on a 50-50 percent basis.
We intend on extracting offers for this mbox and inject them into the web page's window object which can be further used to conditionally render frontend components.
My questions are:
1) Can my content ({"name":"exp-A"}/{"name":"exp-B"}) be retrieved using getOffers(). If yes, will this abide by the 50-50 targeting rule.
2) Since we are capturing JSON content to render frontend how can we track analytics like viewing the component or clicking on it. Is there a better approach.
NOTE: We use Node Js environment along with React as frontend.