In this guide, you’ll learn how to:
  • Connect your Google Analytics account to Rocket.
  • Get your Measurement ID from Google Analytics.
  • Add it securely in Rocket to start tracking usage.
Your credentials stay safe with Rocket.
They are encrypted at rest and never exposed, so you can connect with confidence.

Before you begin

You’ll need:
  • A Rocket account - rocket.new.
  • A Google Analytics account.

Connect Google Analytics to Rocket

1

Get your Google Analytics Measurement ID

Open your Google Analytics dashboard to find your Measurement ID.
Your Measurement ID is located in your Google Analytics dashboard.
  • GA4 properties use IDs that start with G- (for example, G-XXXXXXXXXX).
  • Universal Analytics properties use IDs that start with UA-.
2

Add your Measurement ID in Rocket

You can connect Google Analytics in two ways:Method 1: Use Rocket Chat (fastest)
  • Open the chat panel and type something like:
    Connect my Google Analytics account to:
    • Track button clicks on the sign-up page.
    • Set up a pageview event for the /pricing route.
    • Log conversions for completed purchases.
  • A popup will appear where you can paste and save your Measurement ID.
    Google Analytics integration popup in chatGoogle Analytics integration popup in chat

    Google Analytics integration popup in chat

This is ideal if you are already chatting with Rocket while building. No clicks, just action.
Method 2: From a Rocket project
  • Open any project.
  • Go to Integrations.
    Integrations tabIntegrations tab

    Integrations tab

  • Scroll to Google Analytics and click it.
    Google Analytics cardGoogle Analytics card

    Google Analytics integration card

When you connect Google Analytics from Project Settings, Rocket will not automatically create tracking flows.After saving your Measurement ID, you must describe the events you want tracked in chat for Rocket to implement them.
3

Save your Measurement ID in Rocket

  • In Rocket’s Google Analytics integration screen, paste your Measurement ID into the input field.
  • Click Save to complete setup.
Success check: You will see a green dot next to Google Analytics in your integrations list.
Important Security Notice:
Never paste sensitive credentials or tracking IDs into Rocket chat.
Always use the secure integration flow or the input provided in settings to connect your Analytics account.
4

Update or remove your Measurement ID

  • Return to the Google Analytics integration in Project Settings.
  • You can update the Measurement ID or click Remove to disconnect.
    Remove GA ID lightRemove GA ID dark

    Update or remove Measurement ID

Google Analytics tracking requires a deployed project to function properly.
Preview mode will not trigger live events, so be sure to test in a live environment.

You did it!

Google Analytics is now connected to your Rocket project. You will start seeing real-time usage data to help optimize your product.
Need help? We are here for you.
Email us at support@rocket.new or join our Discord community to get help, share ideas, and connect with other creators.