Skip to main content
Describe what you want to measure in chat and Rocket wires up the tracking tags, custom events, and e-commerce data layer automatically.

What you can do

Traffic and page view tracking

See which pages users visit most, where they come from, and how long they stay.

Conversion goals

Track key actions like signups, form submissions, and purchases as GA4 conversion events.

E-commerce tracking

Send product views, add-to-cart actions, and purchase events to GA4 for revenue reporting.

Audience insights

Understand your user demographics, devices, and geographic distribution.

Custom event tracking

Track any interaction as a custom GA4 event with parameters you define.

Before you connect

You need your Measurement ID from Google Analytics. It starts with G-, for example G-XXXXXXXXXX.
Find your Measurement ID from the Google Analytics help centre.
Go to Admin > Data Streams, click your stream, and copy the Measurement ID.
Google Analytics is a task-level connector. Each Rocket task connects to its own Measurement ID independently.

Connect Google Analytics

You can connect from two places. Both do the same thing.Option 1: From chatType a prompt that mentions Google Analytics, for example Connect Google Analytics and track page views on every route. Rocket detects the intent and shows a Connect button inline. Click it to open the credentials popup.
Rocket chat panel showing a Connect prompt for Google Analytics.Rocket chat panel showing a Connect prompt for Google Analytics.

Google Analytics connection prompt in chat

Option 2: From the Connectors tabClick the ... button in the preview toolbar, then select Connectors.
Toolbar dropdown with Connectors option highlighted.Toolbar dropdown with Connectors option highlighted.

Open Connectors from the toolbar

Click the Google Analytics card, then click Connect.
Connectors panel showing the Google Analytics card with a Connect button.Connectors panel showing the Google Analytics card with a Connect button.

Google Analytics card in the Connectors panel

After clicking ConnectA popup opens. Enter your Measurement ID, then click Connect.
Connect Google Analytics popup with Measurement ID field.Connect Google Analytics popup with Measurement ID field.

Connect Google Analytics popup

A green dot appears next to Google Analytics when the connection is active.Update or disconnectOpen Connectors > Google Analytics and click the card. Click Edit to update your Measurement ID or Disconnect to remove the integration from this task.
Google Analytics card showing Edit and Disconnect buttons.Google Analytics card showing Edit and Disconnect buttons.

Edit and Disconnect options on a connected Google Analytics card

Example prompts

Tips

  • Tracking only works on deployed tasks. Google Analytics does not fire events in the Rocket preview. Deploy your task and test on the live URL.
  • GA4 data has a processing delay. Real-time reports update within seconds, but standard reports may take 24 to 48 hours to fully populate.
  • Only GA4 Measurement IDs are supported. IDs start with G-. Universal Analytics (UA-) was sunset in 2024 and no longer processes data.
  • Ad blockers may prevent tracking. Some users run browser extensions that block Google Analytics scripts. Keep this in mind when evaluating traffic numbers.
  • One Measurement ID per task. Each Rocket task connects to one Google Analytics property. Use different tasks for different properties.

What’s next?

Mixpanel

Need deeper event-level analytics? Add Mixpanel for funnel analysis and user segmentation.

Stripe

Track checkout conversion rates and revenue attribution with Stripe and GA4 together.

AdSense

Monetize your traffic with Google AdSense display ads.

Netlify

Deploy your task so Google Analytics can start collecting real data.