> ## Documentation Index
> Fetch the complete documentation index at: https://dhiwisepvtltd-5e04e6a4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Analytics Guide

> Compare Google Analytics 4 and Mixpanel inside Rocket.new to pick the right tool for page views, conversion tracking, or product funnel analysis.

Not sure which analytics tool to connect? Here's how Google Analytics and Mixpanel differ and when to use each.

## Quick answer

* For website traffic, audience insights, and marketing attribution, use **Google Analytics**.
* For product analytics, user behavior, and conversion funnels, use **Mixpanel**.
* For both: they complement each other well. GA4 covers where users come from; Mixpanel covers what they do after they arrive.

## Comparison table

| | Google Analytics (GA4) | Mixpanel |
| - | - | - |
| **Best for** | Marketing teams, traffic analysis | Product teams, behavioral analytics |
| **Tracks** | Page views, sessions, traffic sources, demographics | Events, funnels, retention, user journeys |
| **Real-time data** | Yes | Yes |
| **Funnel analysis** | Basic | Excellent |
| **Retention tracking** | Limited | Excellent |
| **User segmentation** | Audience-level | Individual user-level |
| **A/B testing** | No native testing | Experiment tracking support |
| **E-commerce tracking** | Built-in revenue reporting | Custom purchase events |
| **Connection method** | Measurement ID (`G-XXXXXXXX`) | Service account username + secret |
| **Pricing** | Free (GA4) | Free tier + paid plans |

## When to use each

### Google Analytics

Best for understanding **where your users come from** and **how they move through your site**. GA4 excels at traffic source attribution, audience demographics, device and geography breakdown, and marketing campaign tracking.

Use Google Analytics if you need to answer questions like:

* Where is my traffic coming from?
* Which pages have the highest drop-off rate?
* How are my marketing campaigns performing?
* What devices and locations are my users on?

```plaintext wrap theme={null}
Add Google Analytics tracking to my app. I want to see page views, traffic sources, and user demographics in my GA4 dashboard.
```

### Mixpanel

Best for understanding **what users do inside your product** and **why they convert or churn**. Mixpanel tracks individual user actions and lets you build funnels, cohort comparisons, and retention charts.

Use Mixpanel if you need to answer questions like:

* Where do users drop off in my signup flow?
* Which features do power users engage with most?
* How many users come back after day 7?
* Which user segments have the highest conversion rate?

```plaintext wrap theme={null}
Add Mixpanel event tracking to my app. Track sign-ups, feature usage, and purchase completions so I can build conversion funnels.
```

### Using both together

Many teams run GA4 and Mixpanel in parallel. They solve different problems and do not overlap much.

```plaintext wrap theme={null}
Add Google Analytics for traffic tracking and Mixpanel for event-based product analytics. Track page views in GA4 and user actions like sign-ups and feature usage in Mixpanel.
```

## Browse analytics integrations

> **[Google Analytics](https://dhiwisepvtltd-5e04e6a4.mintlify.site/build/connectors/google-analytics.md)**
>
> Website traffic, audience insights, and conversion tracking with GA4.

> **[Mixpanel](https://dhiwisepvtltd-5e04e6a4.mintlify.site/build/connectors/mixpanel.md)**
>
> Product analytics, funnels, retention, and user behavior tracking.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.