Skip to content

Preparing to Use Search Analytics: BigQuery Connection Steps

From the left menu, click “Search Analytics BigQuery” under Search Analytics. The dataset management screen opens. Click “Add dataset” in the upper-right corner.

Search Analytics BigQuery item in the Amethyst sidebar

Search Analytics BigQuery dataset list

There are three ways to connect BigQuery. Choose one of the following methods.

✅ If you are not familiar with BigQuery, “Store data in Amethyst without preparing BigQuery” is the easiest option.


Store Data in Amethyst Without Preparing BigQuery

Section titled “Store Data in Amethyst Without Preparing BigQuery”

📝 You do not need to configure or pay for your own Google Cloud project.

  • You cannot use the Search Console export data directly outside Amethyst.

Select the management type “Managed by Amethyst” and add the dataset.

Add BigQuery dataset dialog in Amethyst

Search Analytics BigQuery service account field

Confirm that a dataset with the management type “Managed by Amethyst” has been added, then copy the dataset name.

Next, configure bulk data export in Google Search Console.

Go to Google Search Console, select “Settings” from the left menu of the Search Console property you want to analyze, then select “Bulk data export.”

Google Search Console settings with bulk data export highlighted

Enter the following information in the “Set export destination” section, then click “Continue.”

Cloud project ID: amethyst-data Dataset name: The string shown on the Amethyst screen that starts with searchconsole_

Search Analytics BigQuery dataset row with dataset ID

Dataset location: United States (US)

When you click the create button, the data will be reflected within 48 hours (in practice, usually in about one hour), and Search Analytics will become available.

📝 This option has many steps and is complex.

  • You retain access to your own Search Console export data.
  • You need to configure a Google Cloud project and BigQuery. Google may charge you depending on data size and other factors.

First, configure export to BigQuery. Follow the steps below to enable the BigQuery API, register the service account, configure data export, and grant permissions to Amethyst.

  1. Open the Google Cloud Console.

  2. From the menu, select “APIs & Services” > “Enabled APIs & services.”

📌 If you do not have a project, you cannot select this. Create a project first.

Google Cloud navigation menu with APIs and Services selected

  1. Select “Enable APIs and services.” BigQuery console page with the add data button

  2. Enter “bigquery” in the search box, then select “bigquery api” from the options. Google Cloud API search results for BigQuery

  3. If it is disabled, select “Enable.” BigQuery API page with the enable button

  4. When “API is enabled” appears, BigQuery API enablement is complete. BigQuery API page with enabled status

Registering the Google Service Account in Google Cloud

Section titled “Registering the Google Service Account in Google Cloud”
  1. From the Google Cloud menu, select “IAM & Admin.” Google Cloud navigation menu with IAM and Admin selected

  2. Select “Grant access.” Google Cloud IAM permissions page with Grant access button

  3. Paste the following service account name into New principals.

search-console-data-export@system.gserviceaccount.com

BigQuery access panel with principal email field

  1. Grant the two roles [BigQuery Job User] and [BigQuery Data Editor]. BigQuery access panel with principal and role fields

  2. Click the “Save” button to complete adding the service account.

If policy update fails because of constraints/iam.allowedPolicyMemberDomains

Your organization is configured so that permissions can only be granted to Google accounts from allowed domains, such as your company domain.

Change the Google Cloud “Organization policies” setting with the steps below.

  1. Log in to the Google Cloud console. https://console.cloud.google.com/

  2. Select the organization. Click the project selector at the top of the screen, then select the target organization from the pull-down list. The organization item shows the domain name.

    Organization selector

  3. Open the Organization policies page. From the navigation menu (☰) in the upper-left corner, select “IAM & Admin” > “Organization policies.”

  4. Search for the “Domain restricted sharing” policy. In the policy list, enter “iam.allowedPolicyMemberDomains” in the filter field.

    Search for the domain restricted sharing policy

  5. Edit the policy. Click the policy that appears in the search results. When the detail screen opens, click “Edit policy.”

  6. Add the allowed domain. Add the new domain with the steps below.

    • Select “Customize.”
    • Select “Merge” instead of “Replace” to merge the new policy with the existing policy. Be careful: choosing “Replace” removes the existing domains.
    • Click “Add rule.”
    • For “Policy value,” select “Allow.”
    • For “Policy type,” select “Custom.”
    • In the “Custom value” field, enter the domain to allow (system.gserviceaccount.com), then click “Done.”
    • Finally, click “Save” at the bottom of the screen to apply the policy.

Configuring Search Console Bulk Data Export

Section titled “Configuring Search Console Bulk Data Export”
  1. To check the Cloud project ID, select “Cloud overview” > “Dashboard” from the Google Cloud menu. Google Cloud navigation search for BigQuery

  2. Check “Project info” > “Project ID.” Google Cloud APIs and Services card in the console

  3. In Google Search Console, select “Settings” from the left menu of the project you want to analyze, then select “Bulk data export.” Google Search Console settings with bulk data export selected

  4. On the “Bulk data export” page, enter the Cloud project ID you checked in steps 1 and 2. You do not need to change “Dataset name” or “Dataset location.” Click Continue to complete bulk data export setup. Search Console bulk data export settings form

Granting Permissions to the Amethyst Service Account

Section titled “Granting Permissions to the Amethyst Service Account”
  1. Click “Workspace settings” in the lower-left corner of the Amethyst screen. Workspace settings item highlighted in Amethyst

  2. Copy the service account email address. BigQuery project permissions page

  3. Go to BigQuery and click the “searchconsole” dataset in the “Explorer” panel. BigQuery dataset details page

  4. Click “Sharing” > “Permissions.” Search Console dataset action menu in BigQuery

  5. Click “Add principal.” BigQuery dataset sharing panel with the Add principal button

  6. Enter the copied service account email address in “New principals,” set the role to “BigQuery Data Viewer,” and click “Save” to finish. BigQuery access panel with principal and role fields

Search Analytics BigQuery service account email field

Registering the Project ID and Dataset Name

Section titled “Registering the Project ID and Dataset Name”
  1. Go to BigQuery and check the Google Cloud project ID and dataset name from “Explorer.”

  2. From here, work in Amethyst. Click “Search Analytics BigQuery” and add a dataset.

  3. Register the Google Cloud project ID and dataset name you checked.

  4. When you click the Add dataset button, the data will be reflected within 48 hours (in practice, usually in about one hour), and Search Analytics will become available.

If You Already Have Your Own BigQuery and Want to Grant Amethyst View Access

Section titled “If You Already Have Your Own BigQuery and Want to Grant Amethyst View Access”

📝 You retain access to your own Search Console export data.

  • You need to configure a Google Cloud project and BigQuery. Google may charge you depending on data size and other factors.
  1. Click “Workspace settings” in the lower-left corner of the Amethyst screen.

  2. Copy the service account email address.

  3. From here, work in BigQuery. Grant permissions to the Amethyst service account. Go to BigQuery and click the “searchconsole” dataset in the “Explorer” panel.

  4. Click “Sharing” > “Permissions.”

  5. Click “Add principal.”

  6. Enter the copied “service account email address” in “New principals,” set the role to “BigQuery Data Viewer,” and click “Save” to finish.

  7. Go to BigQuery and copy the Google Cloud project ID and dataset name from “Explorer.”

  8. From here, work in Amethyst. Click “Search Analytics BigQuery” and add a dataset.

  9. Register the copied Google Cloud project ID and dataset name.

  10. When you click the Add dataset button, the data will be reflected within 48 hours (in practice, usually in about one hour), and Search Analytics will become available.