Skip to main content
In this guide, you’ll learn how to:
  • Connect your Google Analytics account to Rocket.
  • Find your tracking code (Measurement ID) from Google Analytics.
  • Add it safely in Rocket to start seeing how people use your app.
Why use Google Analytics?Track how users interact with your app using Google Analytics. See which pages they visit, which features they use most, and where they drop off in your conversion funnels. Rocket sets up tracking automatically, so you can start collecting data immediately.
What is Google Analytics?
Google Analytics is a web analytics service that tracks and reports website traffic and user behavior.
Your information stays safe with Rocket.
Everything is encrypted and protected, so you can connect without worry.

Before you begin

You’ll need:
  • A Rocket account - rocket.new.
  • A Google Analytics account (free to create if you don’t have one).

Connect Google Analytics to Rocket

1

Get your Google Analytics tracking code

Go to your Google Analytics dashboard to find your tracking code.
Look for it in your property settings - it’s usually easy to spot!
Your tracking code (also called a Measurement ID) is like a unique address for your Google Analytics account.
  • Newer accounts (GA4) use codes that start with G- (like G-XXXXXXXXXX).
  • Older accounts use codes that start with UA-.
    Both work perfectly with Rocket!
2

Connect Google Analytics to Rocket

You can connect Google Analytics in two simple ways:Method 1: Use Rocket Chat (fastest)
  • Open any project and start chatting with Rocket.
  • Type something like:
    Connect my Google Analytics account to:
  • Track button clicks on the sign-up page.
  • See when people visit the pricing page.
  • Know when someone completes a purchase.
  • A friendly popup will appear where you can paste your tracking code and save it right away.
Google Analytics integration popup in chatGoogle Analytics integration popup in chat
This is perfect if you’re already chatting with Rocket while building. No extra clicks needed - just tell Rocket what you want!
Method 2: From your project settings
  • Open any project in Rocket.
  • Click on Integrations (you’ll find it in your project menu).
Integrations tabIntegrations tab
  • Scroll down to find Google Analytics and click on it.
Google Analytics cardGoogle Analytics card
When you connect Google Analytics this way, Rocket won’t automatically set up what you want to track.After you save your tracking code, just tell Rocket in chat what you’d like to track, and it will set it up for you!
3

Save your Google Analytics tracking code

  • In Rocket’s Google Analytics screen, paste your tracking code into the box.
  • Click Save and you’re all set!
Success check: You’ll see a green dot next to Google Analytics in your integrations list.
Important Security Notice
Never paste your tracking code directly into Rocket chat.
Always use the secure integration flow or the tracking code input provided in settings to connect your account safely.
4

Update or remove your Google Analytics tracking code

  • Go back to the Google Analytics section in your project settings.
  • You can update your tracking code anytime, or click Remove if you want to disconnect.
Remove GA ID lightRemove GA ID dark
Google Analytics only works when your project is live and deployed.
If you’re just previewing your project, the tracking won’t work yet. Make sure to test it once your project is live!

You did it!

Google Analytics is now connected to your Rocket project. You’ll start seeing real-time data about how people use your app, which will help you make it even better!