In this guide, we'll import data from Google Analytics into Airtable. We'll use the Data Fetcher Airtable app to automatically pull in Google Analytics metrics such as users, sessions & new users.
Install Data Fetcher from the Airtable app marketplace. After the app launches, sign up for a free Data Fetcher account by entering a password and clicking 'Sign up for free'.
On the home screen of the Data Fetcher app, click 'Create your first request'. Requests in Data Fetcher are how you import data to or send data from your Airtable base.
On the create request screen in Data Fetcher, for Application, select 'Google Analytics'.
Click 'New Google Analytics Connection'. You will be taken to a new tab/window where you need to authorize Data Fetcher to access your Google Analytics account. Select the Google account you want to import Google Analytics data from. On the next screen make sure you check the View and manage your Google Analytics data checkbox before clicking 'Continue'.
You should be back in the Data Fetcher with the Google Analytics connection set up. Enter a Name for your request, e.g. 'Import GA Metrics'. Then click 'Save & Continue'.
Select the Google Analytics Account, Property and View you want to import data for.
Select the Date range you want to import data for, e.g. 'Last week'. Select the Fields you want to import from Google analytics, e.g. 'Users', 'New users' & 'Sessions'.
Select a value for Split by to split the data into different records. e.g. select "Date" to get a different record for each date.
Select the Output Table & View you want to import Google Analytics data into.
Click 'Save & Run'.
The request will run and the Response field mapping modal will open. This is where you set how the fields from Google Analytics should map to fields in the output table. For each Google Analytics field, you can either import or filter it. For an imported field, you can set whether to map them to an existing field or create a new field. Once you are happy, click 'Save & Run'.
Data Fetcher will create any fields that need to be created in the output table, then run the request and import the data from Google Analytics to Airtable. If you want to run the request again, simply click 'Run'. If nothing has changed, you will not need to set up the response field mapping again.
At the moment, we have to manually run the request to import the metrics from Google Analytics. We can use Data Fetcher's scheduled requests feature to automatically import them every 15 minutes/ hour/ day etc.
In Data Fetcher, scroll to Schedule and click 'Upgrade'.
A new tab will open where you can select a plan and enter your payment details to upgrade.
Return to the Data Fetcher app and click "I've done this".
Click 'Add API key' in order to add your Airtable API key. You can find your Airtable API key here.
Enter your Airtable API key and click 'Save'.
Enable Schedule this request.
Select how often you want the request to run, e.g. 'Every Day' and select 'Mo'. Click 'Save' The request will now run every Monday and automatically pull in Google Analytics data for the previous week.
You can use filters to only import data from Google Analytics that meets certain conditions. Under Filters, click 'Add Filter'. Then select the conditions you want to filter by, e.g. to only import only data for pages that contain '/blog/':