# Shopify Data Integration

With this integration, you can now:

* **Show badges on previously purchased products** (e.g., “Buy Again” or “Previously Purchased” like on Amazon)
* **Display browse abandonment messages** (e.g., “Your favorite item is selling fast!”)
* **Create campaigns for customers based on past purchases** (e.g., “Exclusive offer for repeat buyers”) This will help you quickly identify whether visitors have or have not purchased, reducing the reliance on our integration to Klaviyo and going straight to the source.

{% embed url="<https://youtu.be/voDMq-LHmAE>" %}
New Shopify Data Integration in Because
{% endembed %}

Let’s dive into how this works and how you can use it to increase engagement and conversions!

***

### **How the Shopify Data Integration Works**

Because can now access key **customer behavior data** directly from Shopify, allowing you to target campaigns based on:

1. **Previously Purchased Products** – Show messages or badges for products a customer has bought before.
2. **Last Viewed Product** – Display a reminder or urgency message based on the last product a visitor viewed.
3. **Placed Orders** – Create campaigns based on how many times a customer has placed an order - or if they’ve ever placed an order.

<figure><img src="/files/YTLEOw2NtT3klxBXerPu" alt=""><figcaption><p>Shopify Data Integration</p></figcaption></figure>

**💡 Example:** If a customer has purchased a skincare product before, you can show a badge on that product saying **“Buy Again”** or **“Reorder Now”** when they return to your site.

***

### **New Shopify Rules You Can Use in Because**

You can now set up **Shopify-powered rules** in your Because campaigns to show messages to the right customers at the right time. Here’s how they work:

#### **1. Previously Purchased Products**

* Shows customers a **badge or message** on items they’ve purchased before.
* **Example:** If someone bought a protein powder, you can add a badge saying **“Reorder Now”** or **“Last Purchased: July 2024”** to make reordering easier.
* **Common Use Cases:**

  ✅ **Badges on product images** (e.g., “Buy Again”)

  ✅ **Product page messages** (e.g., “You loved this last time!”)

#### **2. Last Viewed Product**

* Displays a message based on the last product a visitor looked at.
* **Example:** If they viewed a pair of jeans, but didn’t buy them, you can add a top bar message saying **“Your jeans are almost sold out!”** to encourage them to complete their purchase.
* **Common Use Cases:**

  ✅ **Browse abandonment reminders** (e.g., “Still thinking about this item?”)

  ✅ **Urgency messages** (e.g., “This item is selling fast!”)

**💡 Note:** Last viewed product data updates quickly, but there may be a **brief delay** depending on the size of your store’s data queue.

#### **3. Placed Orders**

* Targets campaigns based on **how many times a customer has placed an order** within a specific timeframe.
* **Example:** If someone has never purchased before, you can show a banner offering 10% off their first order and linking to your sign up page or [re-triggering your sign up unit](https://because.gitbook.io/because/personalize/klaviyo-personalization/how-to-link-klaviyo-popups-to-because-campaigns).
* **Common Use Cases:**

  ✅ **First-time buyer incentives** (e.g., “Welcome! Enjoy 10% off your first order.”)

  ✅ **VIP customer perks** (e.g., “You’ve placed 3 orders – unlock exclusive rewards!”)

***

### **How to Set Up a Shopify Data Campaign in Because**

1. **Create a New Campaign** – Start with a badge, banner, or message campaign.
2. **Choose a Shopify Data Rule** – Select **Previously Purchased, Last Viewed Product, or Placed Orders** as your targeting rule.
3. **Customize Your Message** – Add dynamic messaging like **“You bought this before!”** or **“This item is almost gone!”**
4. **Publish & Test** – Preview your campaign to see how it appears for customers.

***

📩 **Need help setting up your first campaign?** Contact us at [**support@trybecause.com**](mailto:support@trybecause.com) and we’ll be happy to assist! 🚀


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://because.gitbook.io/because/integrations/shopify-data-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
