## Overview

You can use a tag manager to dynamically inject Affirm-related scripts on the promotions.

## Google Tag Manager

[GTM](🔗) includes a feature to sequence tag execution, so that you can make sure Affirm JS is always loaded first.

## Promos

Here is an example of how that would be setup:

Tag #ContentsLocationTrigger
Tag 1[Affirm JS embed code](🔗)All pagespage load (auto)
Tag 2Affirm [promo html](🔗)Only pages where promo should be displayedFires after 'Tag 1'

Below is a screenshot of how these settings look in GTM:






## Checkout

Tag #ContentsLocationTrigger
Tag 1[Affirm JS embed code](🔗)All pagespage load (auto)
Tag 2Affirm [promo html](🔗)Only pages where promo should be displayedFires after 'Tag 1'