To use the **RudderStack** platform with B2CORE and collect data on various events in the B2CORE UI, configure a connection to RudderStack.

<Callout type="info">
  Before configuring a connection in the Back Office, you must have signed up for RudderStack and have an active account with the configured *sources*, which are places from which event data will be collected, and *destinations*, which are the platforms where you want to send your event data for analytics. You can consult the official [RudderStack documentation](https://www.rudderstack.com/docs/) or contact their support in case you have any questions.
</Callout>

To configure a connection in the B2CORE Back Office:

<Steps>
  <Step>
    Navigate to **System** > **External connections**.
  </Step>

  <Step>
    Click **+Create** in the upper-right page corner.
  </Step>

  <Step>
    On the **Create connection** page, fill in the following fields:

    * In **Name** field, enter a name that you want to use for the connection.
    * In the **Caption** field, enter a caption that will be applied to the platform in the Back Office.
    * In the **Provider** dropdown, select **RudderStack**.
  </Step>

  <Step>
    Click **Save** to create the connection.
  </Step>

  <Step>
    Find the newly created connection in the list and click **Edit**.
  </Step>

  <Step>
    On the **Edit connection** page, fill in the following fields:

    * In the **Data Plane URL** field, specify the URL for routing and processing events.
    * In the **Write Key** field, specify the unique identifier of your source. RudderStack uses this key to send events from a source to the specified destination.

    You can find these parameters on your RudderStack Homepage.

    <img title="RudderStack Homepage" src="/attachments/b2core/rudderstack-connections.png" alt="RudderStack Homepage" />

    * In the **Enabled** dropdown, select **Yes**.
  </Step>

  <Step>
    Click **Save** to apply the changes.
  </Step>
</Steps>
