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

# Data sources

> Data sources bring ad spend, campaign, and Shopify order data into Upstack Data. See every supported source and the steps to connect Shopify and ad platforms.

Data sources are integrations that bring data **into** Upstack Data. While [destinations](https://docs.upstackdata.com/what-are-destinations.md) send event data **out** to your ad platforms, data sources provide the orders, ad spend, and campaign data that power your dashboards and attribution reporting.

For what each source unlocks in your reports, plus fixes for common connection issues, see [What are data sources in Upstack Data?](https://docs.upstackdata.com/what-are-data-sources.md)

## How data sources work

Each source connects to an external platform and pulls (or receives) data on your behalf:

* **Shopify** sends orders and products to Upstack directly, even if the pixel is blocked. Storefront events come from the Upstack pixel (the theme app extension plus the Upstack custom pixel).
* **Ad platform sources** (Facebook, Google Ads, TikTok) sync campaign structure, spend, and performance metrics every 15 minutes so you can blend cost data with conversion data inside Upstack.

> [!NOTE]
>
> Ad platform sources are optional. Without them you still see revenue and orders, but not spend, ROAS, or cost per acquisition.

## Available sources

> [card] [Shopify](https://docs.upstackdata.com/sources/catalog/shopify.md)
>
> Orders and products from your Shopify store, plus the storefront events the Upstack pixel captures.

> [card] [Shopify Automatic Tracking](https://docs.upstackdata.com/sources/catalog/shopify-automatic-tracking.md)
>
> The storefront events Upstack captures automatically once the theme app extension and the Upstack custom pixel are on.

> [card] [Facebook Ads](https://docs.upstackdata.com/sources/catalog/meta-ads/how-to-connect-meta-ads-to-upstack-data.md)
>
> Campaign structure, ad spend, and performance metrics from your Facebook and Instagram ad accounts.

> [card] [Google Ads](https://docs.upstackdata.com/sources/catalog/google-ads/how-to-connect-google-ads-to-upstack-data.md)
>
> Campaign structure, ad spend, and performance metrics from your Google Ads accounts.

> [card] [TikTok](https://docs.upstackdata.com/sources/catalog/tiktok-ads/how-to-connect-tiktok-ads-to-upstack-data.md)
>
> Campaign structure, ad spend, and performance metrics from your TikTok Ads accounts.

> [card] [Cost Settings](https://docs.upstackdata.com/analytics/cost-settings.md)
>
> Business costs you enter in Upstack (product costs, handling, payment fees, shipping, and operating expenses) for contribution margin and profitability metrics.

## The Data Sources page

Open **System → Data Sources** in the [Upstack Data dashboard](https://app.upstackdata.com/integrations). Each source has a card showing its status. Click a card to open its settings, where you connect, change ad accounts, reconnect, or disconnect.

![Upstack Data Sources page under System, with Facebook, Google, and TikTok cards showing Not Configured](https://mintcdn.com/upstackdata-afbed50d/iBK5HcAVuU80LdGi/images/data-sources/data-sources-page.png?fit=max\&auto=format\&n=iBK5HcAVuU80LdGi\&q=85\&s=c003e75bbe36146b76c9dc7356fc7606)

> [!NOTE]
>
> The **Shopify** card appears only on accounts created at app.upstackdata.com. If you installed Upstack from the Shopify App Store, Shopify is already connected through that install and has no card here.

### Card statuses

| Status | What it means | What to do |
| - | - | - |
| **Not Configured** | The source has never been connected. | Click the card, then **Connect**. |
| **Pending** | You signed in to the platform but haven't saved an ad account yet. Nothing syncs. | Click the card, select at least one ad account, and click **Save & Complete Setup**. |
| **Connected** | The connection is healthy. For Facebook and Google, the card shows how many ad accounts are connected. | Nothing. |
| **Error** | Upstack can no longer read data with the saved sign-in, usually because access was revoked or expired. Syncing stops. | Click the card, then **Reconnect**. |
| **Disconnected** | The source was connected before and is now turned off. | Click the card, then **Reconnect**. |

## How to connect an ad platform

To connect Shopify, see [Connect Shopify](https://docs.upstackdata.com/sources/catalog/shopify.md). To connect Facebook, Google Ads, or TikTok:

**1. Open Data Sources**

Log in to your [Upstack Data dashboard](https://app.upstackdata.com/) and open **System → Data Sources**.

**2. Open the platform's settings**

Click the **Facebook**, **Google**, or **TikTok** card. Its **Integration Settings** dialog opens.

**3. Connect and sign in**

Click **Connect Facebook**, **Connect Google**, or **Connect TikTok**. A popup opens where you sign in to the platform and approve access for Upstack. If your browser blocks the popup, allow popups for app.upstackdata.com and click the button again.

**4. Select ad accounts and save**

Back in the dialog, the **Ad Accounts** list shows every ad account your login can access. Select one or more and click **Save & Complete Setup**.

**5. Confirm the source is connected**

The card shows **Connected**. The initial import (up to 36 months of history) starts right away; for Facebook Ads and Google Ads it usually completes within 2–4 hours.

For screenshots of each step, see [Facebook Ads](https://docs.upstackdata.com/sources/catalog/meta-ads/how-to-connect-meta-ads-to-upstack-data.md), [Google Ads](https://docs.upstackdata.com/sources/catalog/google-ads/how-to-connect-google-ads-to-upstack-data.md), and [TikTok](https://docs.upstackdata.com/sources/catalog/tiktok-ads/how-to-connect-tiktok-ads-to-upstack-data.md).

## Related

> [card] [What are data sources?](https://docs.upstackdata.com/what-are-data-sources.md)
>
> What connected sources unlock, common issues, and FAQs.

> [card] [Destinations overview](https://docs.upstackdata.com/destinations/catalog/overview.md)
>
> Learn how Upstack pushes enriched event data **out** to your ad platforms.

> [card] [Attribution and reporting](https://docs.upstackdata.com/concepts/attribution-and-reporting.md)
>
> How Upstack combines source data with conversion events to attribute revenue.

> [card] [Connect Shopify](https://docs.upstackdata.com/sources/catalog/shopify.md)
>
> Connect your Shopify store as a data source.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.