How to connect Batch with Unbounce?
Connect Batch with Unbounce to sync form data and trigger personalized push, email, or SMS campaigns automatically.
Integration steps
1

Add a JS code in your form
<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
?CUID={{ b.custom_id }}3
[
{
"identifiers": {
"custom_id": "Map_Your_Field"
},
"attributes": {
"$email_address": "Map_Your_Field",
"firstname": "Map_Your_Field",
"lastname": "Map_Your_Field",
"industry": "Map_Your_Field"
}
}
]4
Last updated

