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

# Connect Mixpanel with Service Account – StackOne Hub

> Link a Mixpanel account in the StackOne Hub using Service Account. End-user guide to authorize the integration and start using Mixpanel actions.

<Warning>You need Organization Owner or Admin access in Mixpanel to create service accounts.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Create a Service Account</h2>

  <p>Create a service account in your Mixpanel organization to authenticate API requests.</p>

  <Steps>
    <Step title="Navigate to Service Accounts">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your <a href="https://mixpanel.com/" target="_blank" rel="noopener noreferrer">Mixpanel account</a>.</p>

        <ul>
          <li>Click the <strong>Settings</strong> icon (gear) at the bottom of the left sidebar.</li>
          <li>Select <strong>Organization Settings</strong>.</li>
          <li>In the left sidebar, click <strong>Service Accounts</strong>.</li>
        </ul>
      </div>
    </Step>

    <Step title="Create a new Service Account">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Click <strong>Add Service Account</strong> to create new credentials.</p>

        <ul>
          <li>Enter a descriptive name for the service account.</li>
          <li>Select the <strong>Organization Role</strong> based on your requirements (Admin recommended for full API access).</li>
          <li>Click <strong>Create</strong>.</li>
        </ul>
      </div>
    </Step>

    <Step title="Copy your credentials">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>After creation, copy the <strong>Username</strong> and <strong>Secret</strong> and store them securely for use later.</p>

        <ul>
          <li>The secret is only shown once during creation — save it before closing the dialog.</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Find your Project ID</h2>

  <p>Your Project ID uniquely identifies your Mixpanel project for API requests.</p>

  <Steps>
    <Step title="Navigate to Project Settings">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your <a href="https://mixpanel.com/" target="_blank" rel="noopener noreferrer">Mixpanel account</a>.</p>

        <ul>
          <li>Click the <strong>Settings</strong> icon (gear) at the bottom of the left sidebar.</li>
          <li>Select <strong>Project Settings</strong>.</li>
        </ul>
      </div>
    </Step>

    <Step title="Copy the Project ID">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>In the <strong>Project Details</strong> section, locate and copy the <strong>Project ID</strong>.</p>

        <ul>
          <li>Example: `4011905`</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Select your data residency region</h2>

  <p>Select the data center region your Mixpanel project uses. Data residency is set when a project is created and cannot be changed.</p>

  <ul>
    <li><strong>US Data Residency</strong>: Default for most accounts (`mixpanel.com`)</li>
    <li><strong>EU Data Residency</strong>: For projects with EU data residency enabled (`eu.mixpanel.com`)</li>
    <li>You can verify your project's region in <strong>Organization Settings</strong> > <strong>Projects</strong> under the <strong>Data Residency</strong> field.</li>
  </ul>
</section>

<div data-whitelabel-hide>
  <h2>Linking the Account from the Hub</h2>

  <Steps>
    <Step title="Navigate to the Hub">
      Use one of the three <a href="/guides/accounts-section#linking-accounts">Linking Account Methods</a> to access the Hub.
    </Step>

    <Step title="Fill out the fields">
      Fill out the following fields using details from your provider:

      <ul>
        <li><strong>Service Account Username</strong></li>
        <li><strong>Service Account Secret</strong></li>
        <li><strong>Project ID</strong></li>
        <li><strong>Data Residency</strong></li>
      </ul>
    </Step>

    <Step title="Connect">
      <ul>
        <li>Click <strong>Connect</strong></li>
        <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
        <li>Once authorization is successful, you will see a confirmation popup</li>
      </ul>
    </Step>
  </Steps>

  <p>If the account linking is successful, you will see the newly linked account in your <a href="/guides/accounts-section">Accounts</a> page.</p>
</div>
