> ## Documentation Index
> Fetch the complete documentation index at: https://help.cartble.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Track your store performance with Google Analytics 4

> Connect your Google Analytics 4 property to Cartble to view sessions, revenue, and conversion data directly inside your admin reporting dashboard.

Cartble includes a built-in analytics dashboard powered by Google Analytics 4 (GA4). You get two complementary tools: a live reports view inside your admin panel showing traffic and revenue trends, and a GA4 property connection that pulls accurate data from your own Google Analytics account. Together they give you a complete picture of how shoppers find and interact with your store.

<Tip>
  Connect your GA4 property before you launch your store so you start capturing data from your very first visitor. Data is not backfilled — sessions that occurred before the connection are not available in the admin dashboard.
</Tip>

## Connecting your GA4 property via OAuth

The OAuth connection is the recommended way to link GA4. It lets Cartble securely pull report data from a GA4 property you own without requiring you to share credentials.

<Steps>
  <Step title="Open Analytics settings">
    In your Cartble admin, go to **Settings → Analytics**.
  </Step>

  <Step title="Authorize with Google">
    Click **Connect with Google**. You are redirected to Google's OAuth consent screen. Sign in with the Google account that has access to your GA4 property.
  </Step>

  <Step title="Select your GA4 property">
    After authorization, Cartble loads a list of GA4 properties available on your Google account. Select the property that corresponds to your Cartble store.
  </Step>

  <Step title="Select your data stream">
    Choose the web data stream for your storefront. If you have a single stream set up for your store domain, select it from the dropdown.
  </Step>

  <Step title="View your analytics">
    Your analytics data now appears in **Admin → Reports**. Sessions, revenue, and conversion metrics populate as GA4 collects data.
  </Step>
</Steps>

## Metrics available in the admin dashboard

Once your GA4 property is connected, the built-in dashboard shows the following metrics for your selected date range (last 7 days or last 30 days):

<CardGroup cols={2}>
  <Card title="Sessions" icon="users">
    Total number of sessions on your storefront during the selected period.
  </Card>

  <Card title="Active Users" icon="eye">
    The number of unique users who visited your store.
  </Card>

  <Card title="Avg. Session Duration" icon="clock">
    How long visitors spend on your site on average, shown as minutes and seconds.
  </Card>

  <Card title="Traffic Trend" icon="chart-line">
    A time-series area chart showing daily session volume so you can spot peaks and dips.
  </Card>
</CardGroup>

You can switch between the **Last 7 days** and **Last 30 days** views using the date range selector at the top of the Reports page.

## GA4 Measurement ID (tag-based integration)

If you prefer a simpler, tag-only integration instead of the full OAuth connection, you can paste your GA4 Measurement ID directly into Cartble. This embeds the GA4 tracking tag on your storefront without granting Cartble access to pull report data.

<Steps>
  <Step title="Find your Measurement ID">
    In your Google Analytics account, go to **Admin → Data Streams**, select your web stream, and copy the Measurement ID. It starts with `G-`.
  </Step>

  <Step title="Paste it in Cartble">
    In **Settings → Analytics**, paste the Measurement ID into the **GA4 Measurement ID** field and save your settings.
  </Step>
</Steps>

<Info>
  The Measurement ID field enables basic tag firing only. To see session and revenue data inside the Cartble admin dashboard, you need to complete the full OAuth connection described above.
</Info>
