Google App Engine provides a Cron service for logging daily Google Search Console(GSC): Search Analytics data to BigQuery for use in Google Data Studio or for separate analysis beyond 3 months.
This script runs daily and pulls data as specified in config.py file to BigQuery. There is little to configure without some programming experience.
Generally, this script is designed to be a set-it-and-forget-it in that once deployed to app engine, you should be able to add your service account
email as a full user to any GSC project and the Search Analytics data will be logged daily to BigQuery. By default the data is set to pull from GSC 7 days earler every day
to ensure the data is available.
More installation details located here. Developed by Technical SEO Agency, Adapt Partners
The overview for configuring and running this sample is as follows:
If you don’t already have one, create a Google Account.
Create a Developers Console project.
gitpip
To clone the GitHub repository to your computer, run the following command:
$ git clone https://github.com/jroakes/gsc-logger.git
Change directories to the gsc-logger directory. The exact path
depends on where you placed the directory when you cloned the sample files from
GitHub.
$ cd gsc-logger
credentials directory.gcloud command-line tool to use the project your Firebase project.$ gcloud config set project <your-project-id>
appengine/
$ cd appengine/
$ pip install -t lib -r requirements.txt
$ gcloud app create
$ gcloud app deploy app.yaml cron.yaml index.yaml
Go to the Task Queue tab in AppEngine and click on Cron Jobs to verify that the daily cron is set up correctly. The job should have a Run Now button next to it.
Once deployed, you should be able to load your GAE deployment url in a browser and see a screen that lists your service account email and also attached GSC sites. This screen will also list the last cron save date for each site that you have access to.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.