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.
1

Open Google Analytics

Go to analytics.google.com and select your property.
2

Copy your Measurement ID

Go to Admin > Data Streams, click your stream, and copy the Measurement ID.

Google Analytics help: find your Measurement ID
Never paste your Measurement ID directly into chat. Always use the secure connection popup.
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 open the same popup.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 and the popup opens.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.
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.
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.
A green dot appears next to Google Analytics when the connection is active.Update or disconnectOpen Connectors and click the Google Analytics 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.

Example prompts

What you wantPrompt to use
Page viewsTrack page views on every route and send them to Google Analytics automatically.
Button clicksTrack clicks on the Sign Up and Contact Sales buttons as GA4 custom events.
Form submissionsSend a conversion event to GA4 when users submit the contact form.
E-commerce purchaseTrack completed purchases with order total, product names, and quantities in GA4.
Scroll depthTrack when users scroll past 25%, 50%, 75%, and 100% of the page.
Outbound linksTrack clicks on external links as GA4 events with the destination URL.
Search trackingSend a search event to GA4 when users use the site search bar, including the query.
Video engagementTrack play, pause, and completion events for embedded videos in GA4.
UTM attributionParse UTM parameters from the URL and forward them to GA4 as campaign data.
User propertiesSet GA4 user properties for plan type and signup date when users log in.

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.