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 #ContentsLocationTrigger
Tag 1Affirm JS embed codeAll pagesPage load (auto)
Tag 2Affirm promo htmlOnly pages where promotional messaging should displayFires after 'Tag 1'

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

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.

Checkout

Tag #ContentsLocationTrigger
Tag 1Affirm JS embed codeAll pagesPage load (auto)
Tag 2Affirm promo htmlOnly pages where promotional messaging should displayFires after 'Tag 1'