> For the complete documentation index, see [llms.txt](https://docs.moleculedata.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.moleculedata.com/integrations.md).

# Integrations

Every data source you can connect to Molecule Data, and how.

The **Integrations** page (admin only) is where you connect and manage all your data sources. Each tile shows how many accounts are connected and a **Connected / Disconnected** badge; **Manage** opens the list of connected accounts for that source, where you can add more accounts or remove existing ones.

Once your first dashboard is built, a **Sync again** button shows at the top of the page. It lights up when there is something to pull again, for example a connected source whose last update failed.

Integrations are split into two groups:

## Attribution & Revenue

### Shopify

Your store is the source of truth for sales, orders, and revenue.

* **Shopify App Store install (recommended)** — click **Connect a store** and install the Molecule Data app from the App Store.
* **Custom app token** — create a private/custom app in your Shopify admin and paste the shop name and shared secret. Full walkthrough: [Creating Shopify private app](https://docs.moleculedata.com/connecting-shopify-store/creating-shopify-private-app).

### Mixpanel

Connect Mixpanel with a service account (no OAuth needed).

**First, create a service account in Mixpanel:**

1. In Mixpanel, open **Organization Settings → Service Accounts** and click **Create Service Account**.
2. Name it (e.g. `MoleculeData`), select the **project** you want to connect, and pick a **project role** — Consumer or higher works. Set **Expires** to "Never" so the connection doesn't break later.

![Creating the service account](https://1364162697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUc1DhBGYxkrTzRj7xZKQ%2Fuploads%2Fm79c0Zhk90OJRK2tV21s%2Fmixpanel-role.png?alt=media)

![Service account with the Consumer role selected](https://1364162697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUc1DhBGYxkrTzRj7xZKQ%2Fuploads%2FubGIoPF1OTFlG28cr5pz%2Fmixpanel-create.png?alt=media)

3. Click **Create**, then **copy both the username and the secret** — Mixpanel shows the secret only once.

![Copy the username and secret — the secret is shown only once](https://1364162697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUc1DhBGYxkrTzRj7xZKQ%2Fuploads%2F32V2Uq1bC9fai1iJvOje%2Fmixpanel-secret.png?alt=media)

**Then, connect it in Molecule Data:**

1. On the Integrations page, open the **Mixpanel** tile, paste the **Service account username** (looks like `YourName.abc123.mp-service-account`) and **Service account secret**, then click **Continue**.
2. Pick the **Project** to connect.
3. Choose your **Purchase event**, the **property holding the purchase amount**, and the **currency** — either a property that carries the currency code, or a fixed 3-letter ISO code (e.g. `EUR`). Then click **Connect**.

{% hint style="info" %}
You can check a project's details (including its EU/US data residency) in Mixpanel under **Organization Settings → Projects**:

<img src="https://1364162697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUc1DhBGYxkrTzRj7xZKQ%2Fuploads%2F2feSGez3QkHW8PukBLlj%2Fmixpanel-project.png?alt=media" alt="Mixpanel project details" data-size="original">
{% endhint %}

See Mixpanel's own docs on [service accounts](https://developer.mixpanel.com/reference/service-accounts) if you need more detail.

### Google Analytics

Click **Sign in with Google Analytics** and pick the property to connect. GA4 sessions power the Sessions metric on Live Today.

**More than one Shopify store?** Tie each GA4 property to the store it tracks. When two or more stores are connected, a **Store** dropdown shows above the list of properties: pick the store, or leave **All stores** if the property covers all of them. To change it later, open **Manage** on the Google Analytics tile and pick a store in the **Store** column (admins only).

Molecule then reads that property's sessions and purchases as that store's, and matches its purchases only to that store's orders. A change applies from the next nightly update.

### Molecule Pixel

Molecule's own tracker for your website. It records visits, ad click ids and purchases itself, so Molecule can see which ad click led to an order even when the order's UTMs are missing. Click **Open** on the **Molecule Pixel** tile to install the Molecule pixel on a Shopify store, or a short code on any other site. It is part of the Pro and Enterprise plans. Full guide: [Molecule Pixel](https://docs.moleculedata.com/tracking-ad-channels/website-tracking.md).

## Marketing Channels

| Channel                 | How it connects                                                                                                                             |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| **Facebook (Meta)**     | Facebook sign-in, then select which ad account(s) to connect                                                                                |
| **Google** (Google Ads) | Google OAuth sign-in                                                                                                                        |
| **TikTok**              | TikTok OAuth sign-in                                                                                                                        |
| **Snapchat**            | Snapchat OAuth sign-in                                                                                                                      |
| **Pinterest**           | Pinterest OAuth sign-in                                                                                                                     |
| **ChatGPT Ads**         | API key from OpenAI Ads Manager — see [Tracking ChatGPT Ads](https://docs.moleculedata.com/tracking-ad-channels/tracking-chatgpt-ads.md)    |
| **Criteo**              | Criteo approval page in a pop-up (read-only) — see [Tracking Criteo](https://docs.moleculedata.com/tracking-ad-channels/tracking-criteo.md) |

Two things to know when a connection is refused:

* **Google Ads manager accounts** can't be connected: a manager account has no ads or spend of its own. Connect one of the client accounts under it instead.
* **TikTok** connects only when your login shares an ad account with Molecule. Sign in with a user who can access the brand's TikTok Ads account, and tick that account on TikTok's screen.

{% hint style="warning" %}
Connecting a channel imports its spend and performance data — but accurate **attribution** also requires the Molecule Data UTM template in that channel's ads. After connecting, follow the [UTM tracking guides](https://docs.moleculedata.com/tracking-ad-channels/utm-tracking-basics).
{% endhint %}
