My question relates to https://math.stackexchange.com/questions/547217/determine-if-being-on-honor-roll-gives-an-advantage-in-being-assigned-to-the-mat/984178#984178 (I've seen similar questions involving hits on a webpage) which I believe should be solved using a chi-squared test. My question regards what happens if there is more than one class. To make things specific here is my problem.
Consumers are interested in purchasing item $i$ where $i=1,\ldots,n$. Consumers interested in item $i$ are randomly sent to a webpage with color $A$ or $B$. We observe the number of consumers that purchase and do not purchase the item under each condition.
Did the color affect purchase decisions? Was there a difference across items?
What about if consumers are interested in purchasing item $i$ where $i=1,\ldots,n$. Consumers interested in item $i$ are randomly sent to webpage of color $A$ or $B$ and randomly shown font of type $C$ or $D$. We observe only the number of consumers that purchase the item under each condition.
Did the color or font affect purchase decisions? Was there a difference across items?
How would you analyze these questions? Is there a standard technique to solving such problems? Can the questions be analyzed with a regression using dummy variables?