---
updatedAt: 2025-11-13T14:09:24.000Z
agentTools:
  siteIndex: https://docs.affirm.com/llms.txt
  projectIndex: https://docs.affirm.com/developers/llms.txt
---

# About Google Tag Manager

Learn about using a tag management solution to manage tracking, advertising, and other marketing functions on your site.

## Overview

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

Embed the Affirm payment method option onto your existing checkout page using Google Tag Manager exclusively.

## About Google Tag Manager

Google Tag Manager includes a feature to sequence tag execution so that you can make sure Affirm-JS is always loaded first.

With Google Tag Manager, you can set up and manage tags on your site without changing your site's code.

### Promos

Here is an example of how that would be setup:

| Tag # | Contents                                                                                          | Location                                              | Trigger             |
| :---- | :------------------------------------------------------------------------------------------------ | :---------------------------------------------------- | :------------------ |
| Tag 1 | [Affirm JS embed code](https://docs.affirm.com/developers/docs/set-up-promotional-messaging)      | All pages                                             | Page load (auto)    |
| Tag 2 | Affirm [promo html](https://docs.affirm.com/developers/docs/html-reference-promotional-messaging) | Only pages where promotional messaging should display | Fires after 'Tag 1' |

Below is a screenshot of how these settings look in Google Tag Manager:

<Image title="GTM_settings.png" alt="Tag firing options = once per event. Tag sequencing = check Fire a tag before Affirm Page 2 first. Setup Tag = Affirm. Checked is Don't fire Affirm Page 2 if affirm fails or is paused. " align="center" className="border" border={true} src="https://files.readme.io/d70d0fb-GTM_settings.png" />

### Checkout

| Tag # | Contents                                                                                          | Location                                              | Trigger             |
| :---- | :------------------------------------------------------------------------------------------------ | :---------------------------------------------------- | :------------------ |
| Tag 1 | [Affirm JS embed code](https://docs.affirm.com/developers/docs/set-up-promotional-messaging)      | All pages                                             | Page load (auto)    |
| Tag 2 | Affirm [promo html](https://docs.affirm.com/developers/docs/html-reference-promotional-messaging) | Only pages where promotional messaging should display | Fires after 'Tag 1' |

# Sibling pages

* [About Promotional Messaging and Prequalification](https://docs.affirm.com/developers/docs/about-promotional-messaging-and-prequalification.md)
* [Set Up Promotional Messaging](https://docs.affirm.com/developers/docs/set-up-promotional-messaging.md)
* [Manage Promotional Messaging Components](https://docs.affirm.com/developers/docs/manage-components.md)
* [HTML Reference: Promotional Messaging](https://docs.affirm.com/developers/docs/html-reference-promotional-messaging.md)
* [Set Up Google Tag Manager](https://docs.affirm.com/developers/docs/set-up-google-tag-manager.md)
* [Marketing and Compliance](https://docs.affirm.com/developers/docs/email-marketing.md)