# Typeform Integration

> Step-by-step guide to integrate Ours Privacy with Typeform for tracking form submissions and custom events while prioritizing privacy and HIPAA compliance.

Source: https://docs.oursprivacy.com/docs/typeform

Track Typeform form submissions and custom events in Ours Privacy with analytics built for **HIPAA-regulated workflows**.

## Typeform Redirect (easy integration)

The simplest way to integrate Ours Privacy with Typeform is to set up a redirect within Typeform. Here's how:

1. Make sure the Ours Privacy Web SDK is installed on your website.
2. Link from your website to Typeform.
3. Set up a custom thank-you page in Typeform to redirect back to your website.

On your thank-you page, fire this Ours Privacy event:

```javascript
ours('track', 'FormSubmitted', { conversion: true });
```

This method requires no complex integration and provides basic tracking. Configure the redirect in your Typeform settings:

![](https://docs.oursprivacy.com/img/typeform/typeform-img-1.jpg)

***

## Ours Privacy Typeform Source (custom integration)

For more advanced tracking and to access form submission details, you can set up a custom integration with Typeform. Follow these steps:

1. **Create a New Source**:
   * In the Ours Privacy dashboard, navigate to **Sources** and create a new source.
   * Select **Typeform** from the options and copy the Webhook URL provided.

2. **Add Webhook in Typeform**:
   * Paste the Webhook URL into Typeform under the webhook settings for your form.

![](https://docs.oursprivacy.com/img/typeform/typeform-img-2.jpg)

3. **Submit a Test Form**:
   * Fill out your form to ensure data is sent to Ours Privacy.
   * Check the Ours Privacy dashboard for pre-populated variables from the form payload.

4. **Map Form Fields**:
   * Use the field mapping interface in Ours Privacy to map Typeform data to its attributes.
   * Include at least the **Ours Visitor ID** field and optionally an email address for user association.

![](https://docs.oursprivacy.com/img/typeform/typeform-img-3.jpg)

***

### Advanced Source Integration

To link Ours Privacy visitor data with Typeform submissions:

1. **Add a Hidden Field in Typeform**:
   * Set up a hidden field in your Typeform to capture the visitor ID.

2. **Pass Visitor ID via URL**:
   * When linking to the Typeform form, append the visitor ID from `ours.getVisitorId()` as a URL parameter. Example:

```html
<a id="form-link" href="https://typeform.com/form/123">Start Form</a>

<script>
  document.getElementById('form-link').href =
    'https://typeform.com/form/123?ours_user_id=' + ours.getVisitorId();
</script>
```

3. **Map Hidden Field**:
   * Map the hidden field in the Ours Privacy dashboard to the visitor ID for accurate user tracking.

![](https://docs.oursprivacy.com/img/typeform/typeform-img-4.jpg)

***

### Key Benefits of the Ours Privacy Typeform Integration

* Built for HIPAA-regulated workflows: Ideal for healthcare and other privacy-sensitive industries.
* Custom Event Flexibility: Track submissions, field interactions, and more.
* Enhanced Data Accuracy: Server-side integration ensures reliable analytics.
