Affise <-> Google Tag Manager
Natalya Yefimenko avatar
Written by Natalya Yefimenko
Updated over a week ago

Before you begin

The integration with Google Tag Manager (GTM) allows you to track conversions by adding a pixel code to a container tag. There's no need to implement the code directly to the advertiser's landing page and modify the source code. Instead, you can manage it in a GTM container and place only a container code to the website.

GTM containers

A GTM container is a space that you create to hold your tags, triggers, and variables.

  • Tags: contain your pixels from the tracking platform and allow monitoring traffic.

  • Triggers: rules that make a code in a tag fire when a user does some action on the website, for example, clicks the button or views a page. So, a trigger is associated with a particular event.

  • Variables: data that you collect and pass via the tags. This is where the data changes happen. Variables apply to both tags and triggers:

    • Variables in tags: used to capture dynamic values. This is where you can add macros to collect the needed data, for example, click ID, transaction ID, etc.

    • Variables in triggers: used to define filters that specify when a particular tag should fire. For example, a trigger should be fired when the url variable contains ''affise.com/index.html''.

Set up a GTM tag as a postback

  1. On Affise, set up a new offer, and use an advertiser's website as the tracking URL.

  2. Take a pixel (iFrame, JavaScript, or Image pixel) from the offer on the Postbacks tab.

    Screen Recording 2023-03-21 at 04.56.36.06 PM


  3. In your GTM account, set up a new container or edit an existing one, and add a new tag.


    Screen Recording 2023-03-21 at 05.44.31.44 PM


  4. Name your tag.


    Google Tag Manager - Google Chrome 2023-03-21 at 5.56.29 PM

  5. Edit tag configuration and select Custom to add an Affise pixel:

    • Custom HTML is for JavaScript and iFrame pixels.

    • Custom Image is for Image pixels.


    Screen Recording 2023-03-21 at 06.02.29.55 PM

  6. Set up triggers or rules to fire a tag.


    Google Tag Manager - Google Chrome 2023-03-22 at 11.14.05 AM

  7. Set up variables to pass custom values from your advertiser to Affise.

    Google Tag Manager - Google Chrome 2023-03-22 at 11.14.42 AM


  8. Once your container is ready, submit the changes and publish it.

🔎 Read more about Google Tag Manager here.

Pass conversions to an affiliate

Once the integration with your advertiser is ready, you can pass conversion info to an affiliate either via a pixel or postback.

  • Follow the guide to set up pixel integration with your affiliate.

  • Follow the guide to set up postback integration with your affiliate.


Please contact the Affise Customer Support team regarding all raised questions via the e-mail: [email protected], or address the GTM community.

Did this answer your question?