Google Analytics: Track usage
Connect Google Analytics to Rocket to understand how users interact with your app.
In this guide, you’ll learn how to:
- Connect your Google Analytics account to Rocket.
- Enter and save your Measurement ID.
- Update or remove the integration if needed.
Your credentials stay safe with Rocket.
They’re encrypted at rest and never exposed - so you can connect with confidence.
Before you begin
- A Rocket account - https://rocket.new.
- A Google Analytics account.
Connect Google Analytics to Rocket
Use your Measurement ID to track page views, sessions, and real-time traffic.
Start integration from chat or project settings
You can connect Google Analytics in two ways:
Method 1: Use Rocket Chat (fastest)
- Open the chat panel in your project and type:
Connect my Google Analytics
- A prompt will appear asking for your Measurement ID.
You’ll see a confirmation in chat once the ID is saved successfully.
Method 2: Use the Project Settings panel
-
Go to My Projects and open your project.
-
Click the Project Settings on the top navbar.
-
Navigate to the Integrations tab.
Access Integrations tab from project settings
-
Scroll to Google Analytics and click it.
Google Analytics integration card
Get your Google Measurement ID
Enter and save your Measurement ID
- Paste your Google Analytics Measurement ID (e.g.,
G-XXXXXXXXXX
) in the input field. - Click Save.
Your Measurement ID is located in your Google Analytics dashboard.
It typically starts with G-
(for GA4) or UA-
(for Universal Analytics).
Success check: You’ll see a green dot next to Google Analytics once it’s connected.
Important Security Notice
Never paste sensitive credentials or tracking IDs into Rocket chat.
Always use Rocket’s secure integration flow to connect your Analytics account.
Update or remove your Measurement ID
-
Return to the Google Analytics integration screen in Rocket.
-
You can update the Measurement ID or click Remove to disconnect.
Update or remove Measurement ID
Google Analytics tracking requires a deployed project to function properly.
Preview mode will not trigger live events - be sure to test in a live environment.
You're all set!
Google Analytics is now connected to your Rocket project. You’ll start seeing real-time usage data to help optimize your product.
Once connected, you can ask Rocket to help with custom tracking:
- Track button clicks on the sign-up page.
- Set up a pageview event for the /pricing route.
- Log conversions for completed purchases.
Rocket will generate tags or code snippets to handle tracking automatically.
Need help? Reach out at support@rocket.new.