# Sources Overview

> Discover how sources populate data into Ours Privacy, including first-party methods like the Web SDK and the Ingest API, and third-party data ingestion.

Source: https://docs.oursprivacy.com/docs/sources-overview

In Ours Privacy, **sources** are how data enters the platform. They allow you to collect, track, and organize data from multiple properties or systems, giving you full control over your visitor interactions and analytics. This guide provides an overview of the available source types and how to manage them effectively.

![The Sources page showing Northside Women's Health web, Server API, and webhook sources, their enabled status, when each last received events, and the Add source button](https://docs.oursprivacy.com/img/understanding-the-event-flow/understanding-the-event-flow-img-3.jpg)

---

## Types of Sources

Ours Privacy supports two primary types of sources:

### 1. First-Party Sources

**First-party sources** are implemented directly on your website or app to track visitor interactions in real time. These include:

#### **Ours Privacy Web SDK**

The script is a lightweight JavaScript snippet installed on your website. It enables you to:

- Automatically capture default properties (e.g., UTM parameters, referrers, user agents).
- Track custom events using the `ours('track', 'Event Name')` function.
- Monitor visitor behavior across pages and sessions.

For setup instructions, see the [Installation Guide](https://docs.oursprivacy.com/docs/installation).

#### **Ingest API**

The Ingest API sends data directly from your backend systems to Ours Privacy. This method is ideal for:

- Tracking events that occur outside the user’s browser (e.g., purchases, app interactions).
- Ensuring data reliability in cases where client-side tracking isn’t feasible.

For more details, refer to [Ingest API Integration](https://docs.oursprivacy.com/docs/server-to-server-integration).

---

### 2. Third-Party Sources

**Third-party sources** let you ingest data from systems you already run, so the outcomes recorded there join the same patient journey as your website activity. The most common ones in healthcare:

- **[EHR and PMS systems](https://docs.oursprivacy.com/docs/ehr-integrations):** appointments, attendance, and revenue. Check [the support matrix](https://docs.oursprivacy.com/docs/ehr-support-matrix) for your system, or [compare connection paths](https://docs.oursprivacy.com/docs/ehr-connection-paths) if you are deciding on a mechanism.
- **[Patient scheduling platforms](https://docs.oursprivacy.com/docs/patient-scheduling-platforms):** bookings that happen on a platform you do not own, so the campaign that produced them still gets credit.
- **[Your data warehouse or data lake](https://docs.oursprivacy.com/docs/ehr-data-from-your-warehouse):** send outcomes you have already modeled in Snowflake, Databricks, or BigQuery instead of building a second integration.
- **Lead generation and form tools:** inquiries captured off your own site.

Whichever you use, each one maps to the same [Standard Healthcare Events](https://docs.oursprivacy.com/docs/standard-healthcare-events), so reporting works the same way regardless of where the record started.

_To set up a third-party source for your account, contact [support@oursprivacy.com](mailto:support@oursprivacy.com)._

---

## Managing Sources

### Organizing Multiple Web Properties

If you manage multiple websites or apps, you can configure Ours Privacy to treat each property as a separate source. This allows you to:

- Track data independently for each property.
- Assign specific destinations for events from individual sources.
- Segment data by property for better insights and analytics.

### Example Use Case:

A healthcare organization with separate websites for patient onboarding and telehealth services can configure each as a distinct source. This ensures that data remains organized while enabling destination-specific configurations.

---

## Best Practices for Using Sources

1. **Install and Verify the Web SDK**:
   - Use the Web SDK to track web interactions. Verify its installation using the [Recent Events Dashboard](https://docs.oursprivacy.com/docs/tracking-and-debugging-events).

2. **Leverage the Ingest API**:
   - Use the Ingest API for backend events or to ensure redundancy in case of browser limitations.

3. **Segment by Property**:
   - Assign unique identifiers to your sources to maintain clarity and separation between web properties.

4. **Align Sources with Destinations**:
   - Ensure each source is configured to send data only to the appropriate destinations.

---

## Next Steps

- Install the [Web SDK](https://docs.oursprivacy.com/docs/installation) or set up [Ingest API Integration](https://docs.oursprivacy.com/docs/server-to-server-integration).
- Connect lower-funnel outcomes from your [EHR or PMS](https://docs.oursprivacy.com/docs/ehr-integrations), a [patient scheduling platform](https://docs.oursprivacy.com/docs/patient-scheduling-platforms), or [your data warehouse](https://docs.oursprivacy.com/docs/ehr-data-from-your-warehouse).
- Learn how to manage events in [Understanding Events](https://docs.oursprivacy.com/docs/understanding-events).
- Debug and verify your setup using the [Recent Events Dashboard](https://docs.oursprivacy.com/docs/tracking-and-debugging-events).
