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

# Google Analytics

Integrating Google Analytics with FlexyPe is quick and easy. Follow a few simple steps to track user behavior and conversion events across your website. With this integration, you gain valuable insights into how customers interact with your checkout, enabling you to optimize your user experience and make informed, data-driven marketing decisions.

## Getting the Measurement ID and API Secret

<Steps>
  <Step title="Accessing the Google Analytics dashboard.">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/analytics/ga4-1.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=8b76f01290ff98b4f49f89150f559abf" alt="Hero Dark" width="3024" height="1602" data-path="images/integrations/analytics/ga4-1.png" />

    * Log in to [Google Analytics](https://analytics.google.com/analytics/web).
    * Click on Admin on the bottom left panel.
    * In Property settings, go to Data Streams under the Data Collection and Modification section.
  </Step>

  <Step title="Select your data stream">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/analytics/ga4-2.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=b1b618c99fd93aef62c8fb7b25d581c0" alt="Hero Dark" width="3024" height="1602" data-path="images/integrations/analytics/ga4-2.png" />

    * Select your existing Web data stream.
    * If you don’t have one, click **Add Stream** and choose **Web** to create a new data stream for your site.
  </Step>

  <Step title="Get the Measurement ID">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/analytics/ga4-3.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=64b374e1a5886ee8d5fe86c780c5eee2" alt="Hero Dark" width="3024" height="1602" data-path="images/integrations/analytics/ga4-3.png" />

    * Select your **Web** data stream from the list.
    * Copy the **Measurement ID** from Stream details and keep it handy for configuration.
  </Step>

  <Step title="Get its API Secret">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/analytics/ga4-4.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=4265f1a439dfdde032fe6d29972e6072" alt="Hero Dark" width="3024" height="1600" data-path="images/integrations/analytics/ga4-4.png" />

    * On the same data stream scroll down to Measurement Protocol API secrets and click on it.
    * Copy the **Secret Value** and keep it handy for configuration.
  </Step>
</Steps>

## Integrate Google Analytics with FlexyPe

<Steps>
  <Step title="Access Google Analytics in FlexyPe Dashboard.">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/analytics/ga4-5.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=251f5f12ca326a5b3b0a08c76ed1027a" alt="Hero Dark" width="3024" height="1600" data-path="images/integrations/analytics/ga4-5.png" />

    * Log in to your [FlexyPe Dashboard](https://dashboard.flexype.io).
    * Click on the Settings menu and select Integrations.
    * Navigate to Google Analytics.
  </Step>

  <Step title="Configure a new conversion action">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/analytics/ga4-6.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=789fdb0838da08b968bd7c63cd08183e" alt="Hero Dark" width="3024" height="1598" data-path="images/integrations/analytics/ga4-6.png" />

    * Click on the Add new conversion action.
    * Paste the copied **Measurement ID** into the designated field.
    * Paste the copied **Secret Value** into the API Secret field.
    * Click Save to finalize the conversion action.
  </Step>

  <Step title="Finish Setup and Start Tracking">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/WQbYVterOEvhxHLt/images/integrations/analytics/ga4-7.png?fit=max&auto=format&n=WQbYVterOEvhxHLt&q=85&s=005c72a75948d95d0e1240d8b415271e" alt="Hero Dark" width="3024" height="1600" data-path="images/integrations/analytics/ga4-7.png" />

    * Once you've added the conversion action, your setup is complete.
    * FlexyPe is now connected to your Shopify store and ready to track conversions from Google Analytics.
  </Step>
</Steps>

By following these steps, you’ll successfully integrate Google Analytics with FlexyPe, enabling comprehensive tracking of user behavior and conversions for deeper insights and smarter optimization.
