The Google Analytics 4 API is a little different than the Google Analytics 3 (Universal Analytics) API. I’ve walked us through how to pull a basic report from the Universal Analytics API previously and, although the steps are similar, there are slightly different request bodies, a different way to make the request, and a different […]
Connecting to Google Analytics 4 (GA4) API with Python
As long as you have created your Google API Credentials with the Google Analytics Data API (service name: analyticsdata.googleapis.com) enabled, you are ready to begin programmatically pulling data from your GA4 properties in Google Analytics. In this article, we’re going to walk through authorizing your script to prepare for pulling reports. Requirements Before We Start […]
Using Python to Pull Google Analytics (UA) API Reports
In a previous article, we walked through authenticating the Google Analytics (Universal Analytics) API using Python. We will pick up where left off and set up our code to run our first report from Google Analytics! Requirements A Google Analytics API Connection. I’ll be calling the function we wrote to build the service and run […]
Connecting to Google Analytics (UA) API with Python
As long as you have created your Google API Credentials, you are ready to begin programmatically pulling data from your views in Google Analytics. In this article, we’re going to walk through authorizing your script to prepare for pulling reports. Requirements Before We Start Coding Before we get into the script, let’s do a little […]