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

# Google Analytics

> Learn how to integrate Google Analytics 4 with Masivo CDP for comprehensive event tracking and customer insights

## What is Google Analytics Integration?

The Google Analytics integration allows you to track customer events, purchases, and conversions from Masivo directly to Google Analytics 4 (GA4). This integration enables you to measure customer behavior, analyze loyalty program performance, and gain comprehensive insights into your customer journey.

## Key Features

<CardGroup cols={2}>
  <Card title="Event Tracking" icon="target">
    Track customer events, purchases, and conversions in real-time to Google
    Analytics 4
  </Card>

  <Card title="Customer Insights" icon="bar-chart">
    Analyze customer behavior and loyalty program engagement with detailed
    analytics
  </Card>

  <Card title="Conversion Measurement" icon="trending-up">
    Measure conversions and track customer journey across touchpoints
  </Card>

  <Card title="Custom Events" icon="zap">
    Track custom loyalty program events and customer behaviors
  </Card>
</CardGroup>

## Integration Type

### Google Analytics as Destination

When configured as a destination, Masivo sends customer events to Google Analytics 4:

* **Customer Events**: Registration, identification, and engagement events
* **Purchase Events**: Transaction data with product details and values
* **Custom Events**: Loyalty program specific events and behaviors
* **Page Views**: Customer interaction and navigation tracking

## Data Flow

<Steps>
  <Step title="Event Collection">
    Customer events and purchases are collected in Masivo through various
    touchpoints
  </Step>

  <Step title="Event Mapping">
    Events are mapped to Google Analytics 4 standard events (purchase, sign\_up,
    login)
  </Step>

  <Step title="Data Processing">
    Customer data is processed and formatted for Google Analytics Measurement
    Protocol
  </Step>

  <Step title="Analytics Tracking">
    Events are sent to Google Analytics 4 via Measurement Protocol API for
    analysis
  </Step>
</Steps>

## Supported Event Types

<AccordionGroup>
  <Accordion title="Customer Events">
    * **CUSTOMER/USER/IDENTIFY** → sign\_up, login - Customer registration and
      profile creation events - User identification and authentication events
  </Accordion>

  <Accordion title="Purchase Events">
    * **PURCHASE/TRANSACTION** → purchase - Transaction data with product
      details - Purchase amounts, currencies, and quantities
  </Accordion>

  <Accordion title="Engagement Events">
    * **EVENT/TRACK** → Custom events - Customer behavior and engagement events
    * Custom loyalty program activities
  </Accordion>

  <Accordion title="Page Events">
    * **PAGE/PAGEVIEW** → page\_view - Page view tracking and navigation events -
      Customer journey tracking
  </Accordion>
</AccordionGroup>

## Data Mapping

<Card title="Event Mapping" icon="arrow-right">
  <AccordionGroup>
    <Accordion title="User Properties">
      * User ID - External customer ID - Customer properties and attributes -
        Custom dimensions
    </Accordion>

    <Accordion title="Event Parameters">
      * Event name and category - Transaction ID and value - Currency and
        quantity - Product information
    </Accordion>

    <Accordion title="E-commerce Data">
      * Product IDs and names - Product categories and brands - Order IDs and
        values - Purchase timestamps
    </Accordion>
  </AccordionGroup>
</Card>

## Privacy & Compliance

<CardGroup cols={2}>
  <Card title="Data Privacy" icon="shield">
    Respects Google Analytics data privacy settings and user consent
  </Card>

  <Card title="GDPR Compliance" icon="check-circle">
    Supports Google Analytics data processing options for GDPR compliance
  </Card>

  <Card title="IP Anonymization" icon="eye-off">
    Supports IP address anonymization for enhanced privacy
  </Card>

  <Card title="Opt-out Support" icon="user-x">
    Respects customer opt-out preferences for data sharing
  </Card>
</CardGroup>

## Benefits

<CardGroup cols={2}>
  <Card title="Comprehensive Analytics" icon="bar-chart">
    Get detailed insights into customer behavior and loyalty program performance
  </Card>

  <Card title="Customer Journey" icon="map">
    Track the complete customer journey from acquisition to loyalty program
    engagement
  </Card>

  <Card title="Conversion Analysis" icon="target">
    Analyze which touchpoints and campaigns drive the most conversions
  </Card>

  <Card title="Custom Reporting" icon="file-text">
    Create custom reports and dashboards based on loyalty program data
  </Card>
</CardGroup>

## Next Step

<CardGroup cols={2}>
  <Card title="Setup Guide" icon="wrench" href="/guides/CDP/integrations/google-analytics/setup">
    Learn how to configure your Google Analytics integration
  </Card>
</CardGroup>
