Google Analyst
Google Analyst

v1.0.2

Thea

Step-by-step guide to connect your Google Analytics 4 (GA4) property to the Google Analyst agent. Covers creating a Google Cloud service account, enabling the Analytics Data API, granting GA4 Viewer access, and configuring the agent with supported metrics like sessions, users, bounce rate, conversions, and more. Perfect for quickly setting up GA4 data reporting in Bika.ai.

📣 Marketing

🧠 AI

Included Resources

Google Analyst

Provides clear daily traffic summaries and trend insights using your Google Analytics data.

Workflow Graph

Workflow Graph

Workflow of Google Analyst

Release notes

Release notes

Release notes of Google Analyst

💡 Why Use Google Analyst

Google Analyst gives you quick, clear summaries of your website performance based on Google Analytics 4 (GA4).

It focuses on the most important metrics — like sessions, new users, bounce rate — so you can see at a glance how your site is performing without digging through GA’s dashboard.

👉 How the Template Works

Google Analyst is an agent that connects to your Google Analytics property with your own service-account credentials. It understands natural-language requests such as “last week’s traffic”, converts relative dates into exact ranges, calls the official Analytics Data API, and returns a neatly formatted report that includes:

  • Overview

  • Key metrics (sessions, users, bounce rate, engagement time, and more)

  • Trends and insights

  • Optional recommendations

All you have to do is chat with the agent; no SQL, dashboards, or spreadsheets required.

🎯 Steps to Use

1. Confirm you have a Google Analytics 4 property

  • Sign in at https://analytics.google.com.

  • Make sure a Google Analytics property is listed for your website and note its numeric Property ID (e.g. 1234567890).

2. Create a service account on Google Cloud

  1. Go to https://console.cloud.google.com and select (or create) a project.

  2. Open IAM & Admin ▸ Service Accounts.

Navigating to the Service Accounts section in the Google Cloud Console's IAM & Admin menu.

  1. Click Create service account → name it ga-bika-service → assign role Viewer → Done.

Creating a new service account in Google Cloud with the name 'ga-bika-service' and assigning the 'Viewer' role.

  1. In that account, open Keys ▸ Add key ▸ JSON → download service-account.json.

Viewing the details of the newly created service account and selecting the 'Keys' tab.

Clicking the 'Add key' dropdown and selecting the 'Create new key' option for the service account.

Creating a new private key for the service account, selecting the 'JSON' key type.

  1. Next, Enable the Analytics Data API
  • Google Cloud Console ▸ APIs & Services ▸ Library.

Navigating to the API Library within the APIs & Services section of the Google Cloud Console.

  • Search Analytics Data API ➜

    • If the button says Enable, click it.

    • If the button says Manage, the API is already enabled.

The Google Analytics Data API page in the API Library, showing the button to enable or manage the API.

3.  Grant the service account Viewer access inside Google Analytics

1.  Back in https://analytics.google.com click the gear Admin.

2.  Under the centre Property column choose Property Access Management.

The Admin section of Google Analytics, with 'Property Access Management' highlighted.

3.  Click + Add users → paste the client_email from step 2-3 → Viewer → Add.

Adding a new user in Google Analytics by pasting the service account's email and assigning the 'Viewer' role.

  1. If you haven't saved the numeric Property ID yet, make a note of it, as you will need it later when connecting the agent (e.g., 1234567890).

The Google Analytics settings page, with the Property ID highlighted for later use.

4. Connect the agent in Bika.ai

  1. In Bika.ai, search for Google Analytics and open its settings.

Searching for 'Google Analytics' in the Bika.ai interface and opening its settings.

  1. Open the JSON file you downloaded, copy the entire content, and paste it into Google Credentials.

Pasting the entire content of the downloaded JSON file into the 'Google Credentials' field in Bika.ai.

  1. Enable Get Report and Get Active User Data if you need both.

Enabling the 'Get Report' and 'Get Active User Data' toggles in the Bika.ai settings.

  1. Click Connect.

5. Start chatting

Ask the agent questions such as:

“How was the new users in July 2025?”
“What was the engagement rate and pageviews last week?”
“Show me yesterday’s sessions and bounce rate.”

💡 Note: On the first conversation, you may see the message:“Permission denied for this Google Analytics property.”

An error message in the agent chat stating 'Permission denied for this Google Analytics property.'

Simply send the Property ID you recorded earlier (e.g., 1234567890) in the chat.

Sending the Property ID in the chat to the agent to resolve the permission error.

The agent will then continue running automatically and generate a markdown-formatted report.

The final result after providing the Property ID, where the agent successfully runs and generates a markdown report.

👉 Supported Metrics

  • Sessions
  • New Users
  • Active Users
  • Bounce Rate
  • Avg Session Duration
  • Engagement Rate
  • Pageviews
  • Views per Session
  • Conversions
  • Event Count

👉 Suitable Users

• Website owners who want quick traffic snapshots every day. • Marketing or product teams that need plain-English GA4 insights. • Anyone comfortable creating a Google Cloud project but not keen on coding dashboards.