You can add Google Tag Manager to your Dev Portal to manage tracking and analytics tags across all Dev Portal pages without modifying Dev Portal code. After it’s configured, your Google Tag Manager container script will be injected into every page of your Dev Portal, allowing you to manage tags like Google Analytics and more from Google Tag Manager.
Add the Google Tag Manager script to Dev Portal
In the settings for your Dev Portal, click the Integrations tab, configure Google Tag Manager with your GTM container ID, and enable the integration.
Prerequisites
Dev Portal
For this tutorial, you’ll need a Dev Portal pre-configured. If you don’t have these settings already configured, follow these steps to pre-configure it:
- In the Konnect sidebar, click Dev Portal.
- Click New portal.
- Enter a name for your Dev Portal.
- Click Create and continue.
- Customize your Dev Portal’s appearance.
- Click Save.
Google Tag Manager
You need an active Google Tag Manager account with a container configured. Copy and save your container ID.
Configure the Google Tag Manager integration
Configure the Google Tag Manager integration in your Dev Portal settings.
- In the Konnect sidebar, click Dev Portal.
- Click your Dev Portal.
- In the Dev Portal sidebar, click Settings.
- Click the Integrations tab.
- Click Google Tag Manager.
- Click the Enabled toggle.
- In the Google Tag Manager ID field, enter your Google Tag Manager container ID.
- Optional: Click Advanced configuration to configure data layer and other settings.
- Click Save.
Validate
You can verify that the integration is working as expected by navigating to your Dev Portal URL and inspecting the Network information on the page. You should see your Google Tag Manager information there.