What is the Variant Content block?
The Variant Content block is a Shopify Theme App Extension block that you place in your Theme Editor. It acts as a placeholder container that Arktic injects HTML into on page load. This block is required for Section content and Page content experiment types. It is not needed for Theme, URL Redirect, Price, or Template experiments.How it works
When a visitor loads a page:- The page renders with the Variant Content block as a hidden
div - The Arktic script reads the visitor’s variant assignment for the configured experiment ID
- For control visitors — the block stays hidden (the section’s default content shows)
- For variant visitors — the script injects the configured HTML into the block container and makes it visible
- This happens before the page is revealed to the visitor — no flash of wrong content
Adding the block to your theme
Step 1: Find your experiment ID
Go to your experiment in Arktic and open the Overview tab. Copy the Experiment ID — it is a long alphanumeric string starting withcl.
Step 2: Open the Theme Editor
In Shopify Admin, go to Online Store → Themes → Customize on your live theme.Step 3: Navigate to the right location
Go to the page or section where you want the test content to appear. For example:- If you are testing a homepage hero headline, navigate to the homepage
- If you are testing a product page banner, navigate to a product page
Step 4: Add the block
Click Add block or Add section (depending on where you are placing it):- If you are adding it within an existing section (e.g. below the hero heading), use Add block inside that section
- If you are adding it as a standalone section, use Add section at the page level
Step 5: Configure the block
With the block selected, the right panel shows its settings. Paste your Experiment ID into the Experiment ID field.Step 6: Position the block
Drag the block to the exact position where the variant content should appear. The block is invisible in both the editor and on the live site — its position determines where the injected HTML will appear on the page.Step 7: Save
Click Save in the Theme Editor.Configuring variant HTML
After placing the block, go back to Arktic and open your experiment’s Variants tab. Click Configure on Variant B. Paste the HTML you want to show variant visitors. This can be:- Plain HTML: headings, paragraphs, images, buttons
- Inline styles:
<div style="...">...</div> - Script tags:
<script>...</script>(runs after injection) - Shopify CDN URLs for images (recommended — they are fast and reliable)
Control variant behaviour
The Control variant has no HTML configured. For control visitors, the Variant Content block remains hidden — they see whatever the Theme Editor section renders by default. This means the control experience depends on your theme’s section content. If the section above or below the block has content, control visitors see that. If the block is positioned where there is nothing else in the section, control visitors see an empty space. To avoid an empty gap in the control experience, make sure the block is positioned inside a section that already has content the control visitors should see.Multiple blocks on the same page
You can place multiple Variant Content blocks on the same page, each linked to a different experiment. For example:- Block 1 (Experiment A): tests the hero headline
- Block 2 (Experiment B): tests the CTA button below the fold
Where to place the block
Inside an existing section
If you want to replace the content of a specific part of a section (e.g. the heading inside a hero section), add the block inside that section. The injected HTML will appear in the position of the block within the section’s layout.As a standalone section
If you want the test content to appear between two existing sections (e.g. a banner between the hero and the product grid), add the block as its own section and drag it to the right position between sections.Troubleshooting
Content is not showing for variant visitors- Check that the Experiment ID in the block settings matches the experiment’s ID exactly (copy-paste, do not type manually)
- Check that the experiment status is Running
- Verify the visitor is in the variant: open the browser console and run
window.__SPT_ASGN__ - Check that the Variant Content block is saved and the app embed is enabled
visibility: hidden) during script execution and revealed after injection. If you see a flash:
- The script may be loading after the page is visible — check that the app embed is correctly enabled
- A theme update may have changed the script loading order