Getting Started
Connecting to Google Analytics
For information on the available WHL and TAR.GZ files for supported environments, and how to install the appropriate file for your Python distribution, see Package Installation.For information on the module to import, and how to configure the necessary connection properties in a connection string, see Establishing a Connection.
Other available connection properties can be used to configure other aspects of the connector capabilities.
Python Version Support
The CData Python Connector for Google Analytics can be installed and used in various Python 3.8, 3.9, 3.10, and 3.11 distributions.
Google Analytics Version Support
The connector supports Google Analytics 4 APIs. The connector provides a relational view of the Google Analytics profiles in your Google account or across your Google Apps domain. The connector includes tables that contain often-used dimensions and metrics as columns; additionally, you can customize the table schemas or write your own to combine any valid set of dimensions and metrics. The connector exposes the columns available through the Data API (Google Analytics 4) and the Admin API (Google Analytics 4). You must enable these APIs by creating a project in the Google Developers Console. See "Connecting to Google Analytics" for a guide to creating a project and authenticating to the APIs.
See Also
- Using the Connector: Establish connections and query Google Analytics through Python code.
- From SQLAlchemy: Use SQLAlchemy to establish a connection with dialect URL, and interact with Google Analytics data using mapped classes and Sessions.