Skip to content
Advertisement

Tag: google-analytics-api

Best practice to send multiple POST API request in foreach

I need to create multiple Google Analytics properties programmatically using the GA Admin API – https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1beta/properties/create. It is about 300+ properties so also 300+ post requests with different request bodies. For that, I have an array with those 300+ objects. What would be the best practice in JS to perform all these requests? Can I just loop the array with

Advertisement