All posts

How to connect Google Analytics 4 to Claude and ChatGPT using Datajar

Connect Google Analytics 4 to Datajar with a Google sign-in, tick the properties your AI may read, then add one URL to Claude or ChatGPT. Every click, with screenshots, plus the questions to ask first and what to do when something fails.

How to connect Google Analytics 4 to Claude and ChatGPT using Datajar

To connect Google Analytics 4 to Claude or ChatGPT, connect it in Datajar with a Google sign-in, tick the properties your AI may read, then add Datajar's URL, https://mcp.datajar.co/mcp, to your AI app. It takes about five minutes, needs no code, and Datajar only reads your Google Analytics data. It never changes it.

5-minute read. Every screenshot below is the real Datajar app with sample data.

Prefer a video? Watch Connect Google Analytics 4 to Datajar on YouTube.

What do you need before you start?

  • A Datajar account. Sign up at mcp.datajar.co. No card is needed to start.
  • A paid Datajar plan. Google Analytics 4 is on every paid plan, from Freelancer up, and not on Free. See the plans on mcp.datajar.co/pricing.
  • A Google account that can see your GA4 property. Any role that can view reports works, Viewer included.
  • An AI app. Claude on any plan, Free included, or ChatGPT on the web with a Business, Enterprise or Edu plan. ChatGPT Pro can add Datajar with read access only, which covers Google Analytics.

How do you connect Google Analytics 4 to Datajar?

Step 1. Sign in at mcp.datajar.co and click Connections in the left menu.

Step 2. Scroll to Analytics and click Connect on the Google Analytics 4 card.

The Datajar Connections page: Connections is selected in the left menu (1) and the Connect button on the Google Analytics 4 card under Analytics is marked (2).

Step 3. A panel opens on the right. If your account has Teams, Datajar asks Who can use this connection? Pick Team to share it with your team and their AI, or Only me to keep it to yourself. Without Teams you skip this step.

Step 4. Click Connect Google Analytics 4. Google opens in a new tab.

The Google Analytics 4 panel in Datajar on the Sign in step: the Team and Only me choice under "Who can use this connection?" (3) and the Connect Google Analytics 4 button (4).

Step 5. On Google's screen, choose the Google account that can see your GA4 property. Google asks you to allow access to see and download your Google Analytics data. Click Continue (or Allow). This is read-only access. Google then sends you back to Datajar.

Step 6. Back in Datajar, the panel moves to Choose accounts and lists every GA4 property your Google account can read (Datajar calls them accounts), each with its ID. Tick the properties your AI may use.

Step 7. Click Save selection.

The Choose accounts step: three sample GA4 properties of Northwind Goods, with UK site and Web store ticked (6) and the Save selection button (7). The footer reads 2 of 3 accounts selected.

The card now shows Connected. The Try asking box gives you a first question to copy into your AI. You can come back to this page at any time to tick more properties or untick one.

The Google Analytics 4 page in Datajar after connecting: a green Connected label next to the title, the property list with two properties ticked, and a Try asking box with the question "Which channels brought the most purchases last month, according to GA4?".

How do you add Datajar to Claude?

The fastest way: open Get started in Datajar and click Add to Claude. It opens claude.ai with Datajar's name and URL filled in. Confirm, then sign in to Datajar.

The Connect your AI step on Datajar's Get started page, with the Add to Claude button and the Your Datajar link box (https://mcp.datajar.co/mcp) marked.

To add it by hand in claude.ai or Claude Desktop, follow these steps. The menu names come from Claude's help page on custom connectors (read on 5 December 2026).

Six steps to add Datajar to Claude: 1 open Customize, then Connectors; 2 click Add, then Add custom connector; 3 paste https://mcp.datajar.co/mcp and click Continue; 4 check the name is Datajar, keep OAuth and click Add; 5 sign in to Datajar; 6 in a chat, open +, then Connectors, and turn Datajar on. On Team and Enterprise an Owner adds it once in Organization settings, Connectors, and members click Connect.
  1. Open Customize, then Connectors.
  2. Click Add, then Add custom connector.
  3. Paste https://mcp.datajar.co/mcp and click Continue.
  4. Check that the name is Datajar, keep OAuth as the sign-in method, and click Add.
  5. Sign in to Datajar with the same account that holds your Google Analytics connection.
  6. In a chat, open the + menu, choose Connectors and turn Datajar on.

On the Free plan Claude allows one custom connector. On Team and Enterprise plans, an Owner adds Datajar once in Organization settings, Connectors, and each member then clicks Connect.

How do you add Datajar to ChatGPT?

In Datajar's Get started page, click Connect to ChatGPT. It copies your Datajar link and opens ChatGPT's Plugins page.

The Connect your AI step on Datajar's Get started page, with the Connect to ChatGPT button and the Your Datajar link box marked. The card lists the next ChatGPT steps and says it works on ChatGPT on the web with a Business, Enterprise or Edu plan.

Then follow these steps from OpenAI's help page on MCP apps in ChatGPT (read on 5 December 2026):

Seven steps to add Datajar to ChatGPT on the web: 1 open Plugins; 2 click the plus button, then Add custom MCP server; 3 name it Datajar and paste https://mcp.datajar.co/mcp as the connection; 4 choose OAuth; 5 tick "I understand and want to continue", then Create as a plugin; 6 sign in to Datajar; 7 in a chat, type @ and pick Datajar.
  1. Open Plugins in ChatGPT on the web.
  2. Click the plus button, then Add custom MCP server.
  3. Name it Datajar and paste https://mcp.datajar.co/mcp as the connection.
  4. Choose OAuth as the sign-in method.
  5. Read the risk warning, tick I understand and want to continue, then click Create as a plugin.
  6. Sign in to Datajar.
  7. In a new chat, type @ and pick Datajar.

On ChatGPT Business, only an admin or owner can create the plugin for the company account. Custom MCP servers work on ChatGPT on the web, not in the mobile app.

What can you ask about your Google Analytics data?

Datajar runs a Google Analytics report for each question: up to 6 numbers (sessions, users, revenue, purchases, add-to-carts and more) split by up to 4 things (channel, landing page, device, country, campaign, product, date and more), over any range up to 366 days. Try these:

Which channels brought me the most purchases and revenue in the last 30 days, according to GA4?
Show my 10 top landing pages last month by sessions, with key events and engagement rate.
Compare mobile and desktop for the last 28 days: sessions, add-to-carts, checkouts and purchases.
Which countries sent the most new users in November, and how much revenue did each bring?
Which products earned the most item revenue in the last 30 days?
Plot daily sessions on the UK site property for the last 90 days.

Your AI turns the rows into a table, a chart or a short answer. When Google holds back rows for privacy (data thresholding) or samples a report, the answer says so.

Google Analytics also feeds other Datajar answers. With an ad account connected too, your AI can put each campaign's spend next to the revenue Google Analytics measured (ROAS per campaign, on the Commerce, Agency and Enterprise plans). Yesterday's visits also appear in Datajar's daily email.

What if something goes wrong?

  • "Google Analytics 4 is not on your Free plan." Google Analytics needs a paid Datajar plan. Pick one in Plans & billing, then connect again.
  • "Connection cancelled" or "Connection refused". The Google screen was closed or access was not granted. Click Connect again and allow access to your Google Analytics data. Nothing was saved, so you can retry at once.
  • No properties to tick. The Google account you signed in with cannot see any GA4 property. Ask a property administrator to add your Google account (in Google Analytics: Admin, then Property access management; the Viewer role is enough), then reconnect. Older Universal Analytics properties do not appear.
  • "Your Google Analytics 4 connection has no account selected yet." Open the Google Analytics 4 card in Connections, tick at least one property and click Save selection.
  • "You have several Google Analytics 4 accounts connected." Name the property in your question, for example "on the Web store property".
  • "Google Analytics 4 is limiting requests." Google caps how many reports each property can run per hour and per day. Wait the time the message gives, then ask again.

Connect Google Analytics 4 today

Your GA4 data is a sign-in away from your AI chat. Start free on Datajar, add a paid plan when you connect Google Analytics, and ask your first question in five minutes.

More guides:

More connection guides

Ads

Social and messaging

Stores and payments

Analytics, search and sheets

Business tools

Questions

Can Datajar change my Google Analytics settings or data?

No. Datajar asks Google for read-only access to Google Analytics and only runs reports. It cannot change properties, events, conversions or settings.

Which Google Analytics role do I need?

Any role that lets you see the property's reports, Viewer included. Datajar lists every GA4 property your Google account can read, and you tick the ones your AI may use.

Which Datajar plan includes Google Analytics 4?

Every paid Datajar plan, from Freelancer up. It is not on the Free plan. The plans are listed at mcp.datajar.co/pricing.

Does it work with ChatGPT Plus or the free ChatGPT plan?

OpenAI lets you add a custom MCP server on ChatGPT Business, Enterprise and Edu, and on Pro with read and fetch access only, which is enough for Google Analytics because Datajar only reads it. Plus and Free are not covered on OpenAI's help page (5 December 2026). Claude works on every plan, Free included.

Can I connect more than one GA4 property?

Yes. Tick every property you want on the Choose accounts step. An agency that sees several client properties from one Google account can tick each client's property. When several are connected, name the property in your question, for example "on the UK site property".

More posts

All posts
Contact us on WhatsApp