How to connect Batch with Unbounce?

Connect Batch with Unbounce to sync form data and trigger personalized push, email, or SMS campaigns automatically.

Modern marketing architectures rely on smooth data flows between acquisition and engagement platforms. Integrating Batch with Unbounce lets you seamlessly bring interaction and conversion data from your landing pages into your customer engagement ecosystem.

By connecting the two platforms, you can leverage events from Unbounce — such as form submissions, page visits, or campaign interactions — to fuel your marketing automation within Batch. These events can be used to trigger personalized push notifications, SMS, email, or in-app messages, ensuring timely and relevant communication with your audiences.

This connection ensures that your marketing ecosystem remains consistent and data-driven. Unbounce continues to optimize your acquisition efforts, while Batch helps you transform those insights into meaningful, timely communications that strengthen your customer relationships.

Integration steps

1

Create your form in Unbounce

Start by creating a new form in Unbounce, or use an existing one, that you’ll be able to reference later in your Batch campaigns — for example, within the emails or push notifications you send.

To retrieve data from this form, you’ll need to add a JavaScript snippet that captures the value of the “CUID” parameter, which must be passed as part of the page’s URL (see step 2 below).

To do this:

  1. Click on the “JavaScript” tab at the bottom of your Unbounce editor.

    Add a JS code in your form
    Add a JS code in your form
  2. In the “Manage Scripts” section, add a new script name and set the Placement option to “After Body Tag.”

  3. Then, insert the following script to capture the CUID value:

<script>
document.addEventListener("DOMContentLoaded", function() {
  // Get the CUID parameter from the URL
  const params = new URLSearchParams(window.location.search);
  const cuid = params.get("CUID");

  // If CUID exists, create a hidden field and add it to the form
  if (cuid) {
    // Find the first form on the page
    const form = document.querySelector("form");

    if (form) {
      // Create the hidden input field
      const hiddenInput = document.createElement("input");
      hiddenInput.type = "hidden";
      hiddenInput.name = "CUID";
      hiddenInput.id = "CUID";
      hiddenInput.value = cuid;

      // Append the hidden field to the form
      form.appendChild(hiddenInput);

      console.log("CUID field added to the form:", cuid);
    } else {
      console.warn("No form found on the page.");
    }
  } else {
    console.warn("No CUID parameter found in the URL.");
  }
});
</script>
2

Use your form in Batch

In Batch, simply use the URL of your Unbounce form wherever you need it — for example, in an email, push notification, or in-app message.

At the end of your form’s link, add the following parameter:

?CUID={{ b.custom_id }}

This dynamic parameter ensures that each user’s unique identifier is passed through the URL when they open the form. It allows Batch to retrieve the information submitted through the form and associate it with the corresponding user profile.

3

Use the Native Zapier Trigger to Retrieve Data from Your Form

  • Step 1 — Set up the Unbounce Trigger

In Zapier, start by adding the native Unbounce trigger to capture form submissions.

Then, configure it as follows:

  • In the Setup tab: select “New Form Submission” as the trigger event.

  • In the Configure tab: choose the client name and landing page from which you want to retrieve data.

  • In the Test tab: test your setup to ensure the connection works properly.

  • Step 2 — Send Data to Batch via Webhooks

Next, add an action step using “Webhooks by Zapier” to send the retrieved data to Batch via the Profile API.

In the Setup section:

  • Choose “Custom Request” as the action event.

In the Configure section, use the following parameters:

  • Method: POST

  • URL: https://api.batch.com/2.7/profiles/update

  • Data: use a JSON body to map your Unbounce fields to Batch attributes. Here’s an example:

[
  {
	"identifiers": {
  	"custom_id": "Map_Your_Field"
    },
    "attributes": {
      "$email_address": "Map_Your_Field",
      "firstname": "Map_Your_Field",
  	"lastname": "Map_Your_Field",
  	"industry": "Map_Your_Field"
	}
  }
]

  • Headers:

Add the follwing headers:

  • Content-Type: application/json

  • Authorization: Bearer YOUR_REST_API_KEY

  • X-Batch-Project: YOUR_BATCH_PROJECT_ID

Don’t forget to test! The API Response should guide you through debugging if needed.

This setup ensures that data collected from your Unbounce form is automatically transmitted to Batch, enriching your existing profiles with fresh, actionable information.

4

Deploy & use your form in Batch

Once your test has run successfully, simply turn your Zap on — and enjoy seeing your Unbounce form data automatically reflected in your Batch profiles.

You can confirm that the information is correctly synchronized by checking Batch’s Profile View. Search for a user using their Customer ID or email address to verify that the latest data has been properly received. (See: How to find a user's profile on the dashboard?)

Your integration is now complete! You can start using your Unbounce forms to power personalized and engaging messages across your Batch campaigns — including push notifications, emails, SMS, and more — all enriched by the data you’ve just connected.

Last updated