Working With Account APIs for Google Tag Manager and Google Analytics

Agenda

The agenda of this post is to give a brief of the working process for the GA and GTM management accounts API. The motive of this documentation is to give a very brief preview of how one can easily utilize the Google Analytics and Google Tag Manager account API to get the list of active Accounts with the corresponding Account Id.

Note: I have not utilized Google’s client library to handle the authentication and the API calls. Instead, I have written a custom script which will do the job for us. The script will drive the process of getting access tokens from the authorization server and, based on the access token, will hit the requested API to get the corresponding data which will be filtered to get the respective data out. https://goo.gl/U7h6hb #DataIntegration #ML