# Compare survey answers by Intelligems test group

See whether shoppers who saw different versions of your store gave different answers. For example, compare people who saw a product photograph on a plain background with people who saw the product in use.

## Enable test groups in Shopify

1. Open the theme editor and select **App embeds → Shopoll feedback**.
2. Enable **Record Intelligems test groups** and save your theme.
3. Visit a page covered by an experiment. An Intelligems preview link can select a group for testing. Allow analytics through the store’s consent controls.
4. Complete a survey. Open it in **Surveys** and choose **Reports → Report filters**. Select the experiment under **Metadata field** and the group under **Metadata value**. A response CSV export also includes these fields.

If the experiment is called *Product cover*, its metadata field is `intelligems_product_cover`. A group called *Control* appears as the value. Each assignment expires 30 days after the visitor last saw the experiment. Renaming a test creates a new field for future responses.

## Where assignments appear

| Survey placement | How the group reaches the response |
| --- | --- |
| Storefront | The optional script adds the group to Shopoll’s storefront metadata. |
| Checkout steps | The checkout survey reads Shopoll experiment attributes from the cart. |
| Thank you and Order status | Shopoll reads the experiment attributes from the verified Shopify order. |

A direct checkout without a prior assignment has no group to report. Anonymous surveys omit experiment fields. A standalone link or an email or SMS invitation carries no automatic assignment.

## Check a missing group

On a test product page, check `window.igData?.user?.getExperiments()` in the browser console. After consent, look for the matching key in `window.Shopoll?.metadata`. For a checkout test, add the test product to your cart and wait for the cart to update before checking out. Open the survey response in Shopoll and check that it shows the expected experiment group.
