- Web Browser
- Mobile App
Your information stays safe with Rocket.
Everything is encrypted and protected, so you can connect without worry.
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
Find 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!
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-(likeG-XXXXXXXXXX). - Older accounts use codes that start with
UA-.
Both work perfectly with Rocket!
2
Add your tracking code to Rocket
You can connect Google Analytics in two simple ways:Method 1: Use Rocket Chat (fastest)Method 2: From your project settings
- 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 chat
This is perfect if you’re already chatting with Rocket while building. No extra clicks needed - just tell Rocket what you want!
- Open any project in Rocket.
-
Click on Integrations (you’ll find it in your project menu).


Integrations tab
-
Scroll down to find Google Analytics and click on it.


Google Analytics integration 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 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.
4
Change or remove your 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.


Update or remove Measurement ID
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!
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!






