Affirm-developers

Tag management

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 onto your page.

Google Tag Manager

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

Promos

Here's an example of how that would be setup:

Tag #ContentsLocationTrigger
Tag 1Affirm JS embed codeAll pagespage load (auto)
Tag 2Affirm promo htmlOnly pages where promo should be displayedFires after 'Tag 1'

And here is a screenshot of how these settings look in GTM:


Checkout

Tag #ContentsLocationTrigger
Tag 1Affirm JS embed codeAll pagespage load (auto)
Tag 2Affirm promo htmlOnly pages where promo should be displayedFires after 'Tag 1'

Updated 2 days ago


Tag management


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

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.