If your website is a single-page application (SPA), you must set up a second trigger in Google Tag Manager (GTM) to fire the Demandbase tag when there is a URL change. See Google’s article Components of Google Tag Manager.
Create a Tag
- In GTM, create a tag.
- For tag type, select Custom HTML.
-
Go to the HTML box and enter the following:
<script type="text/javascript"> //ensures Demandbase API is fired on each URL change Demandbase.IpApi.get() </script> - Go to Advanced Settings > Tag Firing Option and select Once per event.
- Click Save.