HTML Reference: Promotional Messaging
Adding promotional messaging to your website? Use this HTML reference to learn more about the available promotional messaging HTML attributes.
Type | Data type | Description |
|---|---|---|
Class required | string | These classes determine the Affirm promotional messaging component to display. |
| Displays monthly payment messaging with educational product modal. | |
| Displays educational product modal. | |
data-amount\ required | integer | The loan amount passed to display price specific messaging. Value in USD cents (e.g., $100 = 10000). |
data-page-type\ required | string | Identifies your promotional messaging so Affirm can apply the necessary customizations based on which page they are displayed. |
| Your site's homepage. | |
| A landing page that describes Affirm. | |
| Your site's search results page. | |
| A category listing page. | |
| A product description page. | |
| Your site's cart page. | |
| The payment selection page. | |
| A banner image (use for any promotional messaging triggered by your banner or image regardless of page location). | |
data-affirm-type | string | Sets the Affirm logo type. Default displays Affirm logo image. |
| Displays Affirm logo in plain text. | |
| Displays Affirm logo as a symbol. | |
data-affirm-color | string | Sets the Affirm logo color. Default displays the primary (indigo) Affirm logo. |
| Displays black color Affirm logo. | |
| Displays white color Affirm logo. | |
data-category | string | Identifies the product category associated with the messaging for analytics tracking (e.g., electronics, furniture). |
data-brand | string | Identifies the brand category associated with the messaging for analytics tracking (e.g., Samsung, Goodyear). |
data-sku | string | Identifies the SKU associated with the messaging for analytics tracking (e.g., ABC123, SMSNG-50-TV). |
data-learnmore-show | string | Shows or suppresses the link to the modal. |
| Suppresses the link and hyperlinks the entire promo. | |
| Shows the link. |
Updated 23 days ago