Meta Pixel

How to connect Cursor to Google Analytics 4

Connect Google Analytics 4 to Cursor. Select your GA4 property and compare sessions and purchases by acquisition channel.

Install LoomaScale in Cursor

What can Cursor do with Google Analytics 4?

What you need before you start

Use a Google identity with access to your GA4 property. Reporting needs the numeric property ID, not a web stream's G- measurement ID.

How to read the report

Use a session acquisition report to establish the traffic mix, then investigate named events separately when necessary. Reporting definitions and attribution can differ from advertising platforms, so do not treat a discrepancy as a broken connection by default.

See it in action

Sample data
You
Did the extra paid search traffic bring in more purchases?
Cursor

Paid search sessions rose from 800 to 1,000 while purchases stayed at 20. Check the landing pages for the extra traffic before crediting the campaign with more sales.

Set up the connection

  1. Open the install link, confirm the LoomaScale server in Cursor, then sign in to LoomaScale when prompted.
  2. Open Connections in LoomaScale and authorize Google Analytics 4 with a login that can access the data you want to use. Open LoomaScale connections
  3. Run a prompt below and check the first result before continuing.

Use LoomaScale to call ga4_get_account_summaries. List my GA4 property names and numeric IDs, then ask which property to use. Read its reporting time zone and currency. Do not edit settings.

For the selected GA4 property, report sessions, engagedSessions and keyEvents by sessionDefaultChannelGroup over the last 7 complete days and the previous 7. State property ID, dates and time zone. Identify material changes and any unavailable or restricted data. Do not change configuration or claim a causal explanation from the report alone.

Remote MCP endpoint

For manual setup, add this URL as a remote HTTP server in your MCP client and complete the OAuth sign-in.

https://api.loomascale.com/mcp/ga4

Questions people ask before they start

What should I check first?

Select a returned resource such as properties/123456789. Keep that property in subsequent reports and use its time zone for date boundaries.

What if Cursor Agent cannot see my data?

Open Cursor’s MCP settings, enable the LoomaScale server and finish signing in. Check the source and account in LoomaScale Connections, then retry the first prompt in Agent mode.

Who controls access to the data?

Your provider login determines which accounts or resources LoomaScale can reach. Review the permissions during sign-in. You can disconnect the source in LoomaScale.

More Cursor setup guides