Skip to main content
All CollectionsMCP Integrations Guide
MCP Integration Manual - Google Analytics
MCP Integration Manual - Google Analytics

Step-by-step guide to integrate Google Analytics with AdUp using MCP.

Idusha Vijayakumar avatar
Written by Idusha Vijayakumar
Updated this week

The Model Context Protocol (MCP) system at AdUp makes it easy to connect your Google Analytics data directly to your dashboard β€” enabling real-time tracking, deeper insights, and smoother performance analysis. By integrating Google Analytics via MCP, you unlock powerful metrics that support AI-powered optimization across your entire funnel. This manual walks you through the steps to connect your Google Analytics Data API to AdUp using MCP.


Step 1: Access the MCP Integration Dashboard

Log in to your AdUp Dashboard.

Go to:

Data Integration (MCP) > Explore MCP Servers


Step 2: Generate Google Analytics Credentials

Follow these instructions to create the necessary credentials via Google Cloud Console:

πŸ”Ή 1. Set up a Google Cloud Project

  • Click on "Choose a project" > "New Project"

  • Name your project, then click Create

πŸ”Ή 2. Enable the Google Analytics Data API

  • Navigate to API Library

  • Search for "Google Analytics Data API"

  • Click Enable

πŸ”Ή 3. Create and Configure a Service Account

  • Go to IAM & Admin > Service Accounts

  • Click "Create Service Account"

  • Give it a name, click Create and Continue

  • Assign the role: Viewer

  • Click Done

πŸ”Ή 4. Generate the Private Key (JSON)

  • Go to your service account > Keys tab

  • Click Add Key > Create new key

  • Choose JSON format, then click Create

  • This downloads your key file (save it securely!)


Step 3: Grant Access to Your GA4 Property

  1. Go to Admin

  2. Under Property, click Property Access Management

  3. Click + β†’ Add User

  4. Enter the Service Account Email from Google Cloud (e.g., gachat@your-project.iam.gserviceaccount.com)

  5. Assign Viewer role

  6. Click Add

βœ… Also note your GA Property ID from Property Settings (e.g., 312345678)


Step 4: Connect to AdUp MCP

Go back to your AdUp Dashboard

Click on the Google Analytics box as shown below:

A popup will appear like this:

Enter the following fields:

  • Google Client Email β†’ Paste your service account email
    ​

  • Google Private Key β†’ Paste from the JSON file (keep it safe)
    ​

  • GA Property ID β†’ From Google Analytics Admin

Toggle the Status switch ON

Click Update MCP βœ…


Step 5: You're Connected!

Once the integration is successful, the GA card will show:

🟒 Connected: Click to manage connection

You can now:

  • πŸ—‘οΈ Delete MCP
    ​

  • πŸ”„ Update Credentials
    ​

  • 🚦 Toggle Tracking On/Off


🧠 Tips & Reminders

  • Make sure your JSON key and property ID are always up-to-date
    ​

  • You can regenerate keys anytime from Google Cloud if needed

Did this answer your question?