> ## Documentation Index
> Fetch the complete documentation index at: https://docs.withflex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Shopify Marketing App

> Promote HSA/FSA eligibility on your Shopify store with badges, a dedicated landing page, and product eligibility synced directly from Flex.

The [Flex Marketing App](https://apps.shopify.com/flex-marketing) helps you surface HSA/FSA across your store. Add a dynamic eligibility badge to product pages, build a complete HSA/FSA landing page in minutes with pre-built blocks, and sync product eligibility directly into your Shopify admin. Together, these increase trust, improve conversion, and help your store rank for HSA/FSA searches.

**Why it matters**

* **Increase awareness:** Visible, trustworthy badges catch attention earlier in the journey.
* **Educate customers:** Built-in pop-ups walk shoppers through paying with HSA/FSA.
* **Boost conversion:** Customers are more likely to buy when they can use pre-tax dollars.
* **Increase AOV:** Customers spend more when they can use pre-tax dollars.
* **Improve SEO:** Pre-written HSA/FSA content helps you rank for HSA/FSA terms.
* **Save time:** Everything installs through the Shopify theme editor, no custom code.

## Getting Started

<Note>
  Installed before **07/07/26**? Reinstall the Flex Marketing App to take advantage of the latest updates.
</Note>

Take a tour of the Flex Shopify Marketing App and learn how to optimize your storefront. From setting up product eligibility and creating collections, to adding a dynamic eligibility badge and launching an HSA/FSA landing page, this video walks through everything you need to implement HSA/FSA marketing best practices.

<div className="mx-auto w-full rounded-xl overflow-hidden relative mt-6 mb-6" style={{ paddingTop: '56.25%' }}>
  <iframe className="absolute top-0 left-0 w-full h-full" src="https://www.youtube.com/embed/MKLTWzIokHI" title="Flex Marketing App walkthrough" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />
</div>

### Jump to a Section

<CardGroup cols={3}>
  <Card title="Eligibility & Collections" icon="badge-check" href="#eligibility--collections">
    Sync product eligibility to your Shopify admin and build smart collections.
  </Card>

  <Card title="Product Badge" icon="tag" href="#product-badge">
    Add the dynamic HSA/FSA eligibility badge to your product pages.
  </Card>

  <Card title="Landing Page Builder" icon="layout-template" href="#landing-page-builder">
    Build a full HSA/FSA landing page in minutes with drop-in blocks.
  </Card>
</CardGroup>

## Eligibility & Collections

<Note>
  Eligibility sync timing depends on your catalog size and other factors. It can be near-instant for small catalogs, but may take longer for larger catalogs with hundreds or thousands of products. Please continue checking your metafields.
</Note>

<Icon icon="circle-play" /> [Watch this chapter (1:39)](https://www.youtube.com/watch?v=MKLTWzIokHI\&t=99s)

When you reinstall the app, Flex begins syncing each product's HSA/FSA eligibility directly into your Shopify admin as a read-only product metafield. You can use that data to filter products, build collections, and see eligibility at a glance, with no manual tagging required.

### View a product's eligibility

<Steps titleSize="h3">
  <Step title="Open a product">
    In your Shopify admin, go to **Products** and open any product.
  </Step>

  <Step title="Open its metafields">
    Scroll to the **Metafields** section, click **View all**, then **More actions → Show read-only metafields**.
  </Step>

  <Step title="Find the Flex eligibility field">
    Look for the **Flex HSA/FSA eligibility** metafield. It's populated with one of three values:

    * **LMN:** Eligible with a Letter of Medical Necessity (dual-purpose)
    * **IIAS:** Always eligible
    * **Ineligible:** Not HSA/FSA eligible

    This field is read-only. The classification comes directly from Flex and can't be edited in Shopify.

    <Frame>
      <img src="https://mintcdn.com/flex-87/rGaL7q6jfVg986Qc/images/shopify/marketing/find-metafields.png?fit=max&auto=format&n=rGaL7q6jfVg986Qc&q=85&s=5d8cb0b2b75608ca050b44f530e28bf2" alt="The Flex HSA/FSA eligibility metafield on a Shopify product" width="2072" height="518" data-path="images/shopify/marketing/find-metafields.png" />
    </Frame>
  </Step>
</Steps>

### Create an HSA/FSA smart collection

Because eligibility lives on each product, you can build a **smart collection** that automatically includes every eligible product, perfect for featuring on an HSA/FSA landing page.

<Steps titleSize="h3">
  <Step title="Create a collection">
    Go to **Products → Collections → Create collection**, and name it (e.g. *HSA/FSA*).
  </Step>

  <Step title="Choose Smart collection">
    Select **Smart collection** and set the conditions to match **any** condition.
  </Step>

  <Step title="Add the eligibility conditions">
    Search for the **Flex HSA/FSA eligibility** field and add two conditions:

    * `Flex HSA/FSA eligibility` **is equal to** `LMN`
    * `Flex HSA/FSA eligibility` **is equal to** `IIAS`

    This covers every eligible product and automatically excludes ineligible ones.
  </Step>

  <Step title="Save">
    Click **Save**. Your collection now stays up to date automatically as Flex syncs eligibility.
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/flex-87/rGaL7q6jfVg986Qc/images/shopify/marketing/smart-collection.png?fit=max&auto=format&n=rGaL7q6jfVg986Qc&q=85&s=6b72ef1704d744f473434a0fac7814bb" alt="A Shopify smart collection using the Flex HSA/FSA eligibility conditions" width="1676" height="1022" data-path="images/shopify/marketing/smart-collection.png" />
</Frame>

***

## Product Badge

<Icon icon="circle-play" /> [Watch this chapter (4:40)](https://www.youtube.com/watch?v=MKLTWzIokHI\&t=280s)

The Flex badge shows shoppers that a product is HSA/FSA eligible and educates them on how to pay, right on the product page.

<Steps titleSize="h3">
  <Step title="Open your theme editor">
    In your Shopify admin, go to **Online Store → Themes** and click **Customize** on your live theme.
  </Step>

  <Step title="Choose a product template">
    Use the top dropdown to select **Products**, then choose the template to edit (e.g. *Default product*). Because the badge shows correctly per product, you can use a single shared template across all products.
  </Step>

  <Step title="Add the Flex badge block">
    In the **Product information** section, click **Add block**, open the **Apps** section, and add the **Flex badge**.
  </Step>

  <Step title="Configure the badge">
    <Note>
      **Default eligibility is no longer used.** This setting only applies to legacy Marketing App users. If you installed or reinstalled the Flex Marketing App after 07/07/26, you can ignore this field or set it to ineligible as a fallback.
    </Note>

    In the right-hand settings, adjust:

    * **Default Eligibility:** Legacy setting; you can ignore this or set to ineligible as a fallback
    * **Show subscriptions tab:** Adds a Subscription tab to the pop-up
    * **Style:** Light or Dark
    * **Badge Alignment:** Left, center, or right
    * **Badge Width:** 250–350px (the badge text scales with the width)
    * **Custom font size:** Override the auto-scaled text (10–32px)
    * **Custom letter spacing:** Fine-tune spacing (0–5px)
  </Step>

  <Step title="Preview and Save">
    Preview the product page, then click **Save**.

    <Frame>
      <img src="https://mintcdn.com/flex-87/rGaL7q6jfVg986Qc/images/shopify/marketing/product-badge.png?fit=max&auto=format&n=rGaL7q6jfVg986Qc&q=85&s=18dcba8bcc9610931577c645aa561351" alt="The Flex badge on a Shopify product page" width="1108" height="226" data-path="images/shopify/marketing/product-badge.png" />
    </Frame>
  </Step>
</Steps>

<Warning>
  If you don't sync product eligibility to Shopify, you'll need to create separate product templates for each eligibility type. We don't recommend this, as it's more manual to manage.
</Warning>

### Educational Pop-up

When a shopper clicks the badge, a pop-up explains how to pay with HSA/FSA. The correct experience is shown based on each product's eligibility.

**Subscription tab**

If you use [Flex's Shopify Subscription Reimbursement Solution](https://docs.withflex.com/developer-guides/integration/shopify/shopify-subscriptions), enable the **Show subscriptions** tab. This adds a second tab to the pop-up with steps for subscription customers to get reimbursed. We recommend all subscription merchants turn this on.

<Frame>
  <img src="https://mintcdn.com/flex-87/rGaL7q6jfVg986Qc/images/shopify/marketing/popups.png?fit=max&auto=format&n=rGaL7q6jfVg986Qc&q=85&s=912f4ef4448f91f35209e858f75c70c7" alt="The Flex badge educational pop-up and subscription tab shown to shoppers" width="3000" height="1886" data-path="images/shopify/marketing/popups.png" />
</Frame>

***

## Landing Page Builder

<Icon icon="circle-play" /> [Watch this chapter (8:35)](https://www.youtube.com/watch?v=MKLTWzIokHI\&t=515s)

The Flex Marketing App includes pre-built blocks so you can quickly create a complete HSA/FSA landing page. Customize styles to match your theme and publish in minutes.

<Steps titleSize="h3">
  <Step title="Create the page">
    In your admin, go to **Online Store → Pages → Add page**. Give it a title (e.g. *HSA/FSA*) and set the URL handle (e.g. `hsa-fsa`). Keep it **hidden** for now. You'll make it visible once the template is ready.
  </Step>

  <Step title="Create a page template">
    Go to **Online Store → Themes → Customize**. From the top dropdown, select **Pages → Create template**, name it (e.g. *HSA-FSA*), and base it on your **Default page**.
  </Step>

  <Step title="Add Flex blocks">
    With the page hidden, click **Add section**, open the **Apps** section, and add the Flex blocks below. Most blocks include an **extra padding** toggle you can turn off to make sections full-width.

    * Flex Hero
    * Flex Checkout Walkthrough
    * Featured collection (standard Shopify block)
    * Flex HSA/FSA FAQ
    * Flex Subscriptions
    * Flex Banner
  </Step>

  <Step title="Publish the page">
    Save your changes and exit the editor. Go to **Online Store → Pages**, open your HSA/FSA page, set the **template** you created, set it to **Visible**, and click **Save**.
  </Step>

  <Step title="Review your live store">
    Visit your store to confirm everything is displaying correctly.
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/flex-87/rGaL7q6jfVg986Qc/images/shopify/marketing/landing-page.png?fit=max&auto=format&n=rGaL7q6jfVg986Qc&q=85&s=0a31d2c222894065cf0daab1de2f666a" alt="A finished HSA/FSA landing page built with Flex blocks" width="3240" height="3600" data-path="images/shopify/marketing/landing-page.png" />
</Frame>

***

## Block Library

Details for each block you can add from the **Apps** section of the theme editor. Every block is fully styleable: colors, fonts, sizes, and padding.

<CardGroup cols={1}>
  <Card title="Flex Banner" img="https://mintcdn.com/flex-87/rGaL7q6jfVg986Qc/images/shopify/marketing/banner.png?fit=max&auto=format&n=rGaL7q6jfVg986Qc&q=85&s=7a5b2b9a07d381f9ce69e85a760bead6" width="5262" height="1032" data-path="images/shopify/marketing/banner.png">
    An announcement banner to highlight HSA/FSA on your store. Choose from preset messages or add your own, and customize colors, links, and display settings.
  </Card>

  <Card title="Flex Hero" img="https://mintcdn.com/flex-87/rGaL7q6jfVg986Qc/images/shopify/marketing/hero-section.png?fit=max&auto=format&n=rGaL7q6jfVg986Qc&q=85&s=91b3bf1cccaacf9fdff79895d54bde49" width="5262" height="2253" data-path="images/shopify/marketing/hero-section.png">
    A full-width hero section with a "Powered by Flex" badge. Customize the image, colors, text sizes, and layout to match your brand.
  </Card>

  <Card title="Flex Checkout Walkthrough" img="https://mintcdn.com/flex-87/rGaL7q6jfVg986Qc/images/shopify/marketing/checkout-walkthrough.png?fit=max&auto=format&n=rGaL7q6jfVg986Qc&q=85&s=b75a7d12772b7b1fdbf06e4022a2d069" width="5262" height="2253" data-path="images/shopify/marketing/checkout-walkthrough.png">
    A step-by-step guide showing customers how to check out with Flex. Adjusts based on product eligibility, with options to customize text, alignment, colors, and spacing.
  </Card>

  <Card title="Flex HSA/FSA FAQ" img="https://mintcdn.com/flex-87/rGaL7q6jfVg986Qc/images/shopify/marketing/faq.png?fit=max&auto=format&n=rGaL7q6jfVg986Qc&q=85&s=a8752bdb454579d6dc457b96ff3d0bb5" width="5262" height="2253" data-path="images/shopify/marketing/faq.png">
    Pre-written FAQs to help customers understand HSA/FSA and build trust. Includes built-in content to improve SEO, with options to customize styling and add more sections as needed.
  </Card>

  <Card title="Flex Subscriptions" img="https://mintcdn.com/flex-87/rGaL7q6jfVg986Qc/images/shopify/marketing/subscription.png?fit=max&auto=format&n=rGaL7q6jfVg986Qc&q=85&s=a80cf921a15674a3e671bc18ed700a7b" width="5262" height="2730" data-path="images/shopify/marketing/subscription.png">
    Explains how subscription reimbursement works for customers. Customize colors, text, and layout to match your store.
  </Card>
</CardGroup>

***

## Not on Shopify?

For non-Shopify merchants, explore the rest of the Flex Merchant Success resources to implement HSA/FSA marketing solutions on your site.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.