Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or use MindsDB Cloud.
- To connect Google Analytics to MindsDB, install the required dependencies following this instruction.
- Install or ensure access to Google Analytics.
Connection
The required arguments to establish a connection are as follows:credentials_fileoptional, is a path to the JSON file that stores credentials to the Google account.credentials_json: optional, is the content of the JSON file that stores credentials to the Google account.property_idrequired, is the property id of your Google Analytics website. Here is some information on how to get the property id.
⚠️ One of credentials_file or credentials_json has to be chosen.To make use of this handler and connect the Google Analytics app to MindsDB, the following syntax can be used:
Usage
This creates a database that comes with theconversion_events table.
Now you can use your Google Analytics data like this:
-
searching for conversion events:
-
creating conversion event:
-
updating one conversion event:
-
deleting one conversion event:
For more information about available actions and development plans, visit this page.