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

# How Do I Integrate Bloomreach with Gameball?

> Leverage customer engagement data from Gameball to power your email marketing campaigns in Bloomreach.

Gameball and Bloomreach integration allows you to leverage customer engagement data from Gameball to power your email marketing campaigns in Bloomreach. Follow this guide to seamlessly connect the two platforms and maximize the impact of your loyalty and marketing efforts.

## Why Integrate Bloomreach with Gameball?

By integrating Bloomreach with Gameball, you unlock the ability to target and segment customers based on their loyalty to your app. This powerful integration allows you to:

* **Segment contact lists** based on Gameball customer attributes (e.g., points balance, tier) and events created.
* **Send personalized emails** by including loyalty-related data, such as customer tier and reward points, in your email templates.
* **Track and trigger campaigns** based on specific customer events, such as coupons created, orders placed, and reward achievements.

***

## Data Import Scenarios

The integration between Gameball and Bloomreach ensures that your customer data is always up-to-date. Gameball's customer attributes will be imported into Bloomreach whenever a customer is created or performs any action.

<AccordionGroup>
  <Accordion title="Customer Attributes Sync" icon="users">
    **Trigger:** Upon customer creation or after any new action (e.g., achievement, transaction, points expiry).

    Gameball's customer attributes will be imported and updated in Bloomreach automatically. The following data is synced:

    | Category      | Attributes                                                                                                                                                                         |
    | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | **Profile**   | ID, Email, Join Date, Mobile Number, Birthday, Gender                                                                                                                              |
    | **Points**    | Points Balance, Pending Points, Earned Points, Redeemed Points, Expired Points                                                                                                     |
    | **Tiers**     | Current Level Name, Current Level Order, Next Level, Next Level Threshold, Level Progress, Progress to Achieve Next Level                                                          |
    | **Orders**    | Last Order Awarded Points, Average Basket, Number of Transactions, Transactions Amount (Last Rolling Year), Total Net Amount, Unit per Transaction, Date of First/Last Transaction |
    | **Referrals** | Referral Code, Referral Link                                                                                                                                                       |
    | **Coupons**   | Latest Created Coupon, Latest Used Coupon                                                                                                                                          |
    | **Segments**  | Tags, Segments, RFM Segments                                                                                                                                                       |
    | **Other**     | Count of Rewarded Campaigns, Starting Store, Connecting Store, Store of First Transaction                                                                                          |
  </Accordion>

  <Accordion title="Order Placed Event" icon="cart-shopping">
    **Trigger:** Order placed by customer and received by Gameball.

    Once an order is placed, the following order data is sent to Bloomreach:

    | Attribute               | Description                       |
    | ----------------------- | --------------------------------- |
    | Order ID                | Unique order identifier           |
    | Order Date              | Date the order was placed         |
    | Total Paid              | Amount paid by the customer       |
    | Total Price             | Full order price                  |
    | Total Shipping          | Shipping cost                     |
    | Total Tax               | Tax amount                        |
    | Total Discount          | Discount applied                  |
    | Discount Codes          | Codes used                        |
    | Redeemed Amount         | Points redeemed as currency       |
    | Rewarded Points         | Points earned from order          |
    | Equivalent Points Value | Monetary value of rewarded points |
  </Accordion>

  <Accordion title="Coupon Created Event" icon="ticket">
    **Trigger:** Coupon created for the customer.

    The following coupon details will be available on Bloomreach linked to the customer's data:

    * Coupon Code
    * Type
    * Value
    * Coupon Name
  </Accordion>

  <Accordion title="Coupon Used Event" icon="receipt">
    **Trigger:** Customer used a coupon while placing an order.

    The following details will be available on Bloomreach:

    * Coupon Code, Type, Value, Coupon Name
    * Order ID, Order Quantity
    * Channel (POS, Online, etc.)
  </Accordion>

  <Accordion title="Reward Campaign Achieved Event" icon="trophy">
    **Trigger:** Customer achieved a reward campaign.

    The following details will be available on Bloomreach:

    * Internal Name, Name
    * Reward (Points, Points & Score, Coupon Values)
    * Coupon Type (if the reward was a coupon)
    * Equivalent Value of Rewarded Points
    * Achievement Date
  </Accordion>

  <Accordion title="Points Redeemed Event" icon="coins">
    **Trigger:** Customer redeemed their saved points.

    Each `points_redeemed` event includes:

    * Redeemed Points
    * Redemption Amount
    * Redemption Transaction ID (if available)
  </Accordion>

  <Accordion title="Purchase Line Item Event" icon="box">
    **Trigger:** Order received by Gameball.

    A "Purchase" event is sent to Bloomreach for each line item with the following attributes:

    * Order ID, Product Title, Unit Price, Vendor Name
    * Product ID, Weight, Quantity, SKU
    * Collections Array, Tags Array, Taxonomy Array
    * Any extra attributes added to the object
  </Accordion>

  <Accordion title="Customer Deletion Sync" icon="user-minus">
    **Trigger:** Customer removed from Gameball.

    Once a customer is deleted from Gameball, the customer gets deleted from Bloomreach after **24 hours**.

    <Note>
      You have the option to disable the deletion feature from Bloomreach.
    </Note>
  </Accordion>
</AccordionGroup>

***

## How to Configure Bloomreach on Gameball

<Steps>
  <Step title="Ensure Your Widget is Published">
    <Info>
      Not publishing the widget could impact the integration process, so ensure it's live before proceeding.
    </Info>
  </Step>

  <Step title="Access the Integrations Page">
    Navigate to **Integrations** in your **Gameball Admin Dashboard** menu. Scroll down to **Bloomreach** and click **Connect**.

    <Frame>
      <img src="https://mintcdn.com/gameball/tEm0zYZGDqbMoeMn/images/product-docs/apps-integrations/apps-integrations-8.png?fit=max&auto=format&n=tEm0zYZGDqbMoeMn&q=85&s=5e88b79ac7c01caf4f8cc62211f5a49c" width="1338" height="518" data-path="images/product-docs/apps-integrations/apps-integrations-8.png" />
    </Frame>
  </Step>

  <Step title="Copy and Paste API Base URL">
    1. In your **Bloomreach** account, go to **Settings > Project Settings > Access Management > API**.
    2. Copy the **API Base URL**.

    <Frame>
      <img src="https://mintcdn.com/gameball/tEm0zYZGDqbMoeMn/images/product-docs/apps-integrations/apps-integrations-9.png?fit=max&auto=format&n=tEm0zYZGDqbMoeMn&q=85&s=5b9e693010ca4db26c2f7f614b764900" width="1365" height="600" data-path="images/product-docs/apps-integrations/apps-integrations-9.png" />
    </Frame>

    3. Go back to your Gameball dashboard and paste the URL.

    <Frame>
      <img src="https://mintcdn.com/gameball/3xrflxpiDXAq96vF/images/product-docs/apps-integrations/apps-integrations-10.png?fit=max&auto=format&n=3xrflxpiDXAq96vF&q=85&s=39c66f39c520d7a250d557703b14d3ee" width="1361" height="594" data-path="images/product-docs/apps-integrations/apps-integrations-10.png" />
    </Frame>
  </Step>

  <Step title="Copy and Paste Project Token">
    1. In your **Bloomreach** account, go to **Settings > Project Settings > Access Management > API**.
    2. Copy the **Project Token**.

    <Frame>
      <img src="https://mintcdn.com/gameball/3xrflxpiDXAq96vF/images/product-docs/apps-integrations/apps-integrations-11.png?fit=max&auto=format&n=3xrflxpiDXAq96vF&q=85&s=0413d1e5a3b9b007dbd07d1689fb438f" width="1365" height="594" data-path="images/product-docs/apps-integrations/apps-integrations-11.png" />
    </Frame>

    3. Go back to your Gameball dashboard and paste the Token.

    <Frame>
      <img src="https://mintcdn.com/gameball/061svGa8TDKAo95o/images/product-docs/apps-integrations/apps-integrations-12.png?fit=max&auto=format&n=061svGa8TDKAo95o&q=85&s=6cda7366eae3a30c5b56721744815c69" width="1360" height="597" data-path="images/product-docs/apps-integrations/apps-integrations-12.png" />
    </Frame>
  </Step>

  <Step title="Create a Private API Group in Bloomreach">
    1. In your **Bloomreach** account, go to **Settings > Project Settings > Access Management > API**.
    2. Scroll down and click **New Group**.

    <Frame>
      <img src="https://mintcdn.com/gameball/061svGa8TDKAo95o/images/product-docs/apps-integrations/apps-integrations-13.png?fit=max&auto=format&n=061svGa8TDKAo95o&q=85&s=dc8d5bf6e55d1f088010b5bf8303e1aa" width="1364" height="579" data-path="images/product-docs/apps-integrations/apps-integrations-13.png" />
    </Frame>

    3. Choose **Private Access**, add a group name, and click **Create Group**.

    <Frame>
      <img src="https://mintcdn.com/gameball/061svGa8TDKAo95o/images/product-docs/apps-integrations/apps-integrations-14.png?fit=max&auto=format&n=061svGa8TDKAo95o&q=85&s=03b23068e53a2bdffe06d3299fc29de5" width="1365" height="599" data-path="images/product-docs/apps-integrations/apps-integrations-14.png" />
    </Frame>

    4. Give permissions to the new API Group:
       * **Customer Attributes:** Get and Set

    <Frame>
      <img src="https://mintcdn.com/gameball/061svGa8TDKAo95o/images/product-docs/apps-integrations/apps-integrations-15.png?fit=max&auto=format&n=061svGa8TDKAo95o&q=85&s=a5ad590ce0d60f021d5e526df37ea07b" width="870" height="383" data-path="images/product-docs/apps-integrations/apps-integrations-15.png" />
    </Frame>

    * **Events:** Set

    <Frame>
      <img src="https://mintcdn.com/gameball/061svGa8TDKAo95o/images/product-docs/apps-integrations/apps-integrations-16.png?fit=max&auto=format&n=061svGa8TDKAo95o&q=85&s=6676764150c0936867ece1076efc5f28" width="929" height="307" data-path="images/product-docs/apps-integrations/apps-integrations-16.png" />
    </Frame>

    <Warning>
      Not giving Get and Set permissions to the API Group may prevent the integration from functioning properly.
    </Warning>
  </Step>

  <Step title="Add a New Key in Bloomreach">
    1. Choose the new group created from the last step.
    2. Click **Add Key**.
    3. Enter a key name.

    <Frame>
      <img src="https://mintcdn.com/gameball/061svGa8TDKAo95o/images/product-docs/apps-integrations/apps-integrations-17.png?fit=max&auto=format&n=061svGa8TDKAo95o&q=85&s=67067f825350d7122326c426dd6e99bc" width="1365" height="600" data-path="images/product-docs/apps-integrations/apps-integrations-17.png" />
    </Frame>
  </Step>

  <Step title="Copy and Paste API Key ID and Secret">
    1. Copy the **API Key ID** and **API Secret**.

    <Frame>
      <img src="https://mintcdn.com/gameball/061svGa8TDKAo95o/images/product-docs/apps-integrations/apps-integrations-18.png?fit=max&auto=format&n=061svGa8TDKAo95o&q=85&s=a3b845db1c1ae9cb531a0f2634e95706" width="1365" height="596" data-path="images/product-docs/apps-integrations/apps-integrations-18.png" />
    </Frame>

    2. Paste both keys in Gameball accordingly.

    <Frame>
      <img src="https://mintcdn.com/gameball/061svGa8TDKAo95o/images/product-docs/apps-integrations/apps-integrations-19.png?fit=max&auto=format&n=061svGa8TDKAo95o&q=85&s=a5bc7b6961cce3a5e612bc47a632bbae" width="1365" height="597" data-path="images/product-docs/apps-integrations/apps-integrations-19.png" />
    </Frame>
  </Step>

  <Step title="Map Gameball Events to Bloomreach">
    Gameball tracks various customer events (e.g., points earned, redeemed, tiers achieved). Map these events to Bloomreach to use them in your campaigns.

    1. In the Gameball Dashboard, go to **Integrations**.
    2. Select **Bloomreach** from the list of available integrations.
    3. Map the following events:
       * Coupon Created
       * Coupon Redeemed
       * Reward Campaign Achieved
       * Order Placed
    4. Confirm the event mappings and save.
  </Step>

  <Step title="Sync Customer Data">
    Syncing customer data ensures Bloomreach receives real-time updates about customer actions.

    1. In the Gameball Dashboard, navigate to **Integrations > Bloomreach**.
    2. Enable the **Customer Sync** toggle.
    3. Choose the customer attributes to sync (Customer ID, Date of Birth, Join Date, Tier Name, Wallet Points, Pending Points, Tier Progress, Tier ID, Completed Reward Campaigns, Referral Code, Referral Link, Tags and Segments).
    4. Save your settings.
  </Step>

  <Step title="Verify Synced Customers">
    In Bloomreach, go to **Data and Assets > Customers** to find a table with all automatically synced Gameball customers.

    <Frame>
      <img src="https://mintcdn.com/gameball/061svGa8TDKAo95o/images/product-docs/apps-integrations/apps-integrations-20.png?fit=max&auto=format&n=061svGa8TDKAo95o&q=85&s=6b66d2d588cdf054e8bbfc3cae76e77a" width="1365" height="599" data-path="images/product-docs/apps-integrations/apps-integrations-20.png" />
    </Frame>

    You will also see real-time Gameball events such as Coupon Created, Coupon Used, Reward Campaign Achieved, Order Placed, Order Cancelled, and Refund Created. Each event is synced in real-time, allowing you to send highly targeted campaigns and flows in Bloomreach.
  </Step>
</Steps>

***

<CardGroup cols={2}>
  <Card title="Gameball on Zapier" icon="bolt" href="/product-documentation/apps-integrations/zapier-integration">
    Connect Gameball with thousands of apps via Zapier.
  </Card>

  <Card title="Apps & Integrations Overview" icon="grid-2" href="/product-documentation/apps-integrations/introduction-to-apps-integrations">
    Explore all available Gameball integrations.
  </Card>
</CardGroup>
