This document describes how to install the Airbridge Web SDK using Google Tag Manager.
For instructions on installing the Web SDK and sending events, refer to Install the Web SDK, Send Web Events.
In the container, click Workspace → Overview → Add a new tag, or Workspace → Tags → New.
Click Tag Configuration → Choose tag type → Custom HTML.
Write the Web SDK installation script in the HTML editor.
The Web SDK init function must run before any other functions. In Advanced Settings, enter a Tag firing priority greater than 0 (e.g., 9999).
The Web SDK init function must run only once. In Advanced Settings, set Tag firing options to Once per page.
Click Triggering and select a trigger whose Trigger Type is DOM Ready.
If no trigger has been created yet, click the + button and select Page View → DOM Ready to create a trigger.
Click Save to create the tag.
Click Submit to apply the changes.
Check if events appear in Web Real-time Log in the Airbridge dashboard.
In the container, click Workspace → Overview → Add a new tag, or Workspace → Tags → New.
Click Tag Configuration → Choose tag type → Custom → Custom HTML.
Write the Web SDK event tracking script in the HTML editor.
Depending on when the event occurs, in Advanced Settings, set Tag firing options to Unlimited, Once per event, or Once per page.
Click Triggering and select a trigger that matches the situation in which the event occurs.
Click Save to create the tag.
Click Submit to apply the changes.
Check if events appear in Web Real-time Log in the Airbridge dashboard.
Was this helpful?