---
updatedAt: 2025-11-13T14:10:21.000Z
agentTools:
  siteIndex: https://docs.affirm.com/llms.txt
  projectIndex: https://docs.affirm.com/platforms/llms.txt
---

# Stencil promotional messaging integration

Add promotional messaging to your BigCommerce Stencil theming engine.

## Overview

Use the following steps to configure promotional messaging on Stencil. If you are unsure of what theme you are currently using, you can check [here](https://support.bigcommerce.com/s/article/Which-Theme-Platform-do-I-have).

> 📘 Using Blueprint?
>
> Check out our [integrating Affirm with BigCommerce Blueprint](https://docs.affirm.com/platforms/docs/bigcommerce-blueprint-integration) documentation.

***

## Step 1: Install the Affirm Marketing app

Once logged in to your BigCommerce dashboard, visit the [Affirm Marketing app listing](https://www.bigcommerce.com/apps/affirm/). Click "**Get App**" and follow the app installation steps.

## Step 2: Add Affirm scripts

1. Go to **Apps > Affirm Marketing > Installation**.
2. Enable **Script Manager Injected File: JQuery** by clicking on **Click to Install** .
3. Enable  **Script Manager Injected File: Affirm Marketing** by clicking on **Click to Install**.

<Image align="center" src="https://files.readme.io/60d2720-Stencil_Script.png" />

## Step 3: Configure the Affirm app settings

1. Go to **Apps > My Apps > Affirm Marketing > Settings**.
2. Enter the **Live Public API Key** from your Affirm dashboard (available [here](https://affirm.com/dashboard/signin/#/apikeys)). For testing and development only, enter the public key from your Affirm Sandbox dashboard (available [here](https://sandbox.affirm.com/dashboard/signin/#/apikeysSandbox)).
3. For testing and development only, leave **Sandbox Mode** enabled for testing and development (*optional*).
4. Click **Save**.

![](https://files.readme.io/f6c3872-bigcommerce_settings1.png "bigcommerce_settings1.png")

## Step 4: Enable Affirm's enhanced analytics (optional)

Affirm's Enhanced Analytics can help you gain new insights into your customers' shopping journeys and preferences. Enhanced Analytics also allows you to easily A/B test new promotional messaging and financing programs to ensure that their sites are fully optimized for both cost and conversion rates.

To enable enhanced analytics:

1\.  Go to **Apps > My Apps > Affirm Marketing > Settings**.\
2\.  Enable **Enhanced Analytics** in the settings.\
3\.  Click **Save**.

## Step 5: Configure Promotional Messaging

*Note: For Multi-Storefront, complete the below steps for all channels, toggling the channel using the[top-right dropdown](https://files.readme.io/75e6ef3-channel_dropdown.png)*

1\.  Go to **Apps > My Apps > Affirm Marketing > Promotional Messaging**.\
2\.  Toggle **Promotional Messaging on Products** to enable Affirm messaging on the product pages.\
3\.  Toggle **Promotional Messaging on Cart Page** to enable Affirm messaging on the product page.\
4\. Toggle **Promotional Messaging on Quick Cart Page** to enable Affirm messaging on the quick cart page.\
5\. Toggle **Promotional Messaging on Category Page** to enable Affirm messaging on the category page.\
6\.  Complete the [applicable fields](#promotional-messaging-fields) for both the different page settings.\
6\.  Click **Save**.

![](https://files.readme.io/e401087-Screen_Shot_2020-05-20_at_3.09.38_PM.png "Screen Shot 2020-05-20 at 3.09.38 PM.png")

### Promotional messaging fields

| Field                                                              | Description                                                                                                                                                                |
| :----------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Selector ID**                                                    | [See details below](https://docs.affirm.com/platforms/docs/bigcommerce-blueprint-integration#section-locating-your-selector-id)                                                                               |
| **Site Theme**                                                     | Select the **Custom** option.                                                                                                                                              |
| **Height**                                                         | The height of the promotional messaging.                                                                                                                                   |
| **Width**                                                          | The width of the promotional messaging.                                                                                                                                    |
| **Minimum Product Price**                                          | The minimum price to display Affirm promotional messaging on product page.                                                                                                 |
| **Product Page Price** (Product Page settings only)                | Only enter a value in this field if instructed by Affirm. Use if there are issues where Affirm promotional messaging price is not changing when the product price changes. |
| **Product Page Options** (Product Page settings only)              | Only enter a value in this field if instructed by Affirm. Use if there are issues where Affirm promotional messaging price is not changing when the product price changes. |
| **Logo Type**                                                      | Select the Affirm to show as plain text, a logo, or a symbol.                                                                                                              |
| **Logo Color**                                                     | select the Affirm logo/symbol to show as blue, black, or white.                                                                                                            |
| **Inline Pricing** (Product Page and Category Pages settings only) | Only toggle on if instructed by Affirm. Use if the product price is dictated by options, rather than a set base price.                                                     |
| **Minimum Cart Total** (Cart and Quick Cart settings only)         | The minimum cart total to display Affirm promotional messaging.                                                                                                            |
| **Product Container Selector** (Category settings only)            | Only enter a value in this field if instructed by Affirm.                                                                                                                  |

# Other helpful resources

Congrats! You've successfully set up your promotional messaging. Ready to get up and running? Head over to our Go-live checklist.

* [Go-live checklist](https://docs.affirm.com/affirm-platforms/docs/bigcommerce-go-live)