I'm trying to collect developer and product information to use in analytics through the flow variables naturally set by VerifyAPIKey, but whenever I dump the data into BigQuery, I see that all the corresponding fields are (not set) or null. This is the StatisticsCollector policy that runs right after VerifyAPIKey:
<StatisticsCollector name="collect-stats"> <Statistics> <Statistic name="dev_app" ref="verifyapikey.verify-api-key.developer.app.name" type="string">N/A</Statistic> <Statistic name="api_prod" ref="verifyapikey.verify-api-key.apiproduct.name" type="string">N/A</Statistic> <Statistic name="KEY_client_id" ref="verifyapikey.verify-api-key.client_id" type="string">N/A</Statistic> </Statistics> </StatisticsCollector>
Any ideas how to fix this issue?
Solved! Go to Solution.
@Daniel Silva The following variables are automatically populated in Analytics when a Verify API Key policy is enforced for a valid API key. These variables are only populated by the Verify API Key policy and the OAuth policies. (common dimensions)
The variables and values can be used as dimensions to build Analytics reports to gain visibility into consumption patterns by developers and apps.