Skip to main content

Integrate Alia with Zapier

Send contact info from Alia signups to Zapier using webhooks

Written by Bill Wohlers

You can use Alia's Javascript SDK to send contact info from users who sign up to Zapier.

Step 1: Add JS snippet to your site

Add the following script to all pages that have Alia embedded:

<script>
document.addEventListener("alia:signup", (e) => {
fetch("https://hooks.zapier.com/hooks/catch/YOUR-ZAPIER-ID/", {
method: "POST",
mode: "no-cors",
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
body: new URLSearchParams({
email: e.detail.email || "",
phone: e.detail.phone || ""
})
});
});
</script>

Step 2: Create a Zap

  1. Go to Zapier Webhooks.

  2. Choose Trigger:

    • App: Webhooks by Zapier

    • Event: Catch Hook

  3. Zapier will give you a Webhook URL — copy it and paste into the script above.

  4. Test it by submitting an Alia popup on your site.

Step 3: Send signups to the right list

The script sends only the email and phone number. Choose the list in the action step for your email or SMS tool in Zapier, not in Alia. To send email and SMS signups to different lists, add Paths to your Zap and split on whether a phone number was sent. Many tools need phone numbers with + and the country code, so add a Formatter step before the SMS path if needed. Check each test signup in Zapier's Zap History to see which path ran.

Did this answer your question?