Google Tag Manager integration

You can integrate the Adjust Smart Banner SDK into Google Tag Manager to distribute smart banners via GTM containers. Follow the steps in this guide to set this up.

Integrate the SDK in Google Tag Manager

  1. Navigate to Google Tag Manager.
  2. Select Tags → New.
  3. Select Tag Configuration, then select Custom HTML.
  4. Add the SDK loading snippet in the HTML field and ensure the Firing Triggers field is set to Initialization - All Pages.
  1. Add another Custom HTML tag and enter your SDK initialization call between the <script></script> tags. This call must include an appToken. Check out the SDK initialization options to configure the SDK using the init method.

    window.AdjustSmartBanner.init({ appToken: "TOKEN" });
  1. Create a new trigger by selecting the plus icon (+) in the top right corner of the screen.
  2. Navigate to Trigger Configuration and select Page View to load the script on each page view. You can configure whether to trigger the initialization on every page or enter a specific hostname.
  1. Save the trigger configuration and navigate back to Tag Configuration.
  2. Verify that everything is configured correctly, then publish your GTM container.