Hi, Can I add google analytics on my developer portal? (Azure API Management) Thanks on advance.
Hi, Can I add google analytics on my developer portal? (Azure API Management) Thanks on advance.
@MaraLuzMicozzi-8743 The APIM Developer Portal has built-in support for Google Tag Manager for both managed and self-hosted portals. The official doc for the same covers step required for setting things up for both.
For more customized integration, you would have to self-host with your own implementation as required.
@MaraLuzMicozzi-8743 Apologies for not getting back sooner. The configuration for the Developer Portal is hosted on the APIM Management REST API. The request required here is as follows
GET https://<apim-resource-name>.management.azure-api.net/subscriptions/000/resourceGroups/000/providers/Microsoft.ApiManagement/service/integration-common/contentTypes/document/contentItems/configuration?api-version=2019-12-01
Authorization: <shared-access-signature>
The shared access signature can be generated as shown in the docs.
There are detailed instructions available in the Microsoft docs:
https://docs.microsoft.com/en-us/azure/api-management/developer-portal-integrate-google-tag-manager
There is also a node/cli script you can use if you don't want to mess with the management API:
https://github.com/Azure/api-management-developer-portal/blob/master/scripts.v3/gtm.js
7 people are following this question.