Google Search Console Integration

Google Search Console is a free tool from Google that helps you check how your website appears in Google search results. It’s a must-have tool for any website owner since it gives you cues on how to modify your content and site structure. 

When integrated with Piwik PRO, data from Google Search Console become a part of your analytic reports and can be combined with other metrics. This way, you can have information about Google search queries and clicked search results in Piwik PRO and understand better how visitors who came through the Google search channel behave on your site.

In this article, we’ll show you how to set up the integration and how the report for Google Search Console looks like. The process is a bit complex, but follow our guidelines and you’ll be all set with the integration.

Before you start

Here are some things to know before you begin setting up the integration:

  • To do the integration you need to have an owner account or a user account with the manage permission in Piwik PRO.
  • For integration, you will need to access the Google Search Console and Google API Console. If you don’t use these tools, you might need help from your webmaster.

Add a website property to Google Search Console

To start off, you need to add a website property to your Google Search Console. If you don’t have a Google Search Console account yet, you’ll need to create it first and then add a property.

To add a new website property to Google Search Console, follow these steps:

  1. Log in to Google Search Console.
  2. Click the drop-down property picker and click + Add property.
  3. Choose the type of website property to add: domain or URL prefix. To learn more about website property types, read the Google’s article “Add a website property.”
  4. Verify your website property. For more instruction on this subject, read the Google’s article “Verify your site ownership.”
  5. Google starts collecting data as soon as you add the property, even before verification. But the data will appear in Google Search Console in a few days.

Enable an API for Google Search Console

Once you have your website property in Google Search Console ready, you can move to the next step — enabling an API. Piwik PRO needs to access an API to connect with Google Search Console and pull out the data.

To enable an API for Google Search Console, follow these steps:

  1. Log in to Google API Console.
  2. From the projects list, select a project or create a new one.
  3. On the left, click Library.
  4. Use the search field to find the API for Google Search Console and click the API. 
  5. Click Enable.

Set up the oAuth 2.0 client in Google API Console

Okay, we’ll halfway there. Now as you have your API ready, you need to set up the oAuth 2.0 client. The oAuth 2.0 is a protocol that will grant Piwik PRO access to the information from Google Search Console.

To set up the oAuth 2.0 client for Google Search Console API, follow these steps:

  1. Log in to Google API Console.
  2. From the projects list, select a project.
  3. On the left, click Credentials.
  4. Click a drop-down Create credentials, then pick oAuth client ID.
  5. If this is your first time creating a client ID, Google will ask you to add a product name, support email address, and authorized domain in the OAuth consent screen page. For example, add:
    •     Product name: Piwik PRO
    •     Email address: an email address of your support
    •     Authorized domain: piwik.pro
  6. In Application type, select Web application.
  7. Name the oAuth client ID. You can leave the name that Google suggested.
  8. In Restrictions, you will need to type in Authorized JavaScript origins and Authorized redirect URIs. You will find this information in Piwik PRO.
  9. Log in to Piwik PRO.
  10. Go to Menu > Analytics (new).
  11. Navigate to Settings > Integrations.
  12. In Google Search Console, click Connect.
  13. On the setup screen, you’ll see information about Authorized JavaScript and Authorized redirect URIs. Copy them and paste to corresponding fields in Google API Console, where we left off in step 8.
  14. Click Create.
  15. Once the oAuth client ID is ready, click the download icon to get the JSON file which we’ll need in the next step.

Connect your website in Piwik PRO with a website property in Google Search Console

Now, as you have the oAuth 2.0 client for Google Search Console API ready, you can continue setting up the integration in Piwik PRO. With just a few more clicks you will be all set with the task.

To make the final stride to connect your website in Piwik PRO with a website property in Google Search Console, follow these steps:

  1. Go back to Piwik PRO and navigate back to the setup screen for integration with Google Search Console (Menu > Analytics (new) > Settings > Integrations > Google Search Console).
  2. Click Next.
  3. Click Add file, upload the JSON file that you downloaded in the step 15, with the oAuth 2.0 client ID, and click Next.
  4. Follow confirmation screens from Google and click Allow.
  5. If you have more than one website property in Google Search Console, choose the property that you want to connect with the website in Piwik PRO. Be mindful to choose the right property, otherwise, your data will be inaccurate.
  6. Click Finish.

Now, you’re done. The integration is all set and Piwik PRO will download the data from Google Search Console from up to the last 16 months. After that, Piwik PRO will update data once a day. Only keep in mind that Google Search Console provides data with a 3-day delay so the data you see in reports are slightly late.

Google Search Console report

With the integration ready, you can start viewing data about Google search queries and clicked search results in the Google Search Console report in Piwik PRO.

To see data for Google Search Console report, follow these steps:

  1. Log in to Piwik PRO.
  2. Go to Menu > Analytics (new).
  3. Navigate to Reports.
  4. On the left, click Google Search Console.

The Google Search Console report will show you landing pages for your website, keywords that people typed in the Google search and, as a result, reached your website, devices they used to search in Google and countries they came from. In the report, you will see this information combined with the number of sessions, bounce rate, average time on page, and goal conversion rate. Having the data all piled up this way, you can analyze how users of the Google search behave on your site and draw conclusions on how to optimize your site for them. For more information about this report, read our article “Google Search Console report.”   

Was this article helpful?

of people found this helpful

Technical Support

If you have any questions, drop us a line at support_SPC@piwik_SPC.pro.

We’re happy to help!