🔗 Webhooks

Send sales into your popups and leads out to your tools, with or without Zapier and Make.

#What is a webhook?

A webhook is an automatic message one app sends to another the moment something happens. Think of it as a doorbell: when an order is paid, the store "rings" WebsitesToolz with the order details, and your popup can show it straight away.

Your store or appSomething happens: an order, a review, a booking
→ webhook →
WebsitesToolzYour popup shows it instantly

WebsitesToolz uses webhooks in two directions:

  • Data in: show real activity in Latest Conversion, Conversions Counter and Random Review popups.
  • Data out: send every email, phone number or answer collected by your popups to your email tool, CRM or spreadsheet.

Checked against: Blog post "How to Use Webhooks for Real-Time Sales Popups"

#Data in: send conversions to a popup

Latest Conversion, Conversions Counter and Random Review each have their own webhook address. Find it in the popup's Webhook Trigger setting as the Full Webhook Url. It looks like https://websitestoolz.com/pixel-webhook/<your-key>.

What to send

  • A POST request with JSON or form fields, for example {"name":"Claire","product":"Dew Drop Serum","city":"London","country":"United Kingdom"}.
  • Nested JSON is flattened with dots, so {"customer":{"first_name":"Claire"}} becomes customer.first_name.
  • city, country and country_code are used as the location.

Show it in your popup

Put field names in curly brackets in the title or description: {name} from {city}.

Replies you will see

WebsitesToolz answers every request with a short status, shown in Zapier and Make: ok, duplicate (the same data was already received), empty_payload, invalid_json or not_found (check the address and that the popup is switched on).

Checked against: WebsitesToolz staging code: PixelWebhook.php (tested locally with sample payloads)

#Data out: send leads to your tools

Collector popups can send every submission onwards the moment it arrives.

  1. Open the collector popup's settings and switch on Send caught data to external sources.
  2. Add a Webhook URL (for example from Zapier or Make), an Email address, or both.
  3. Save.

Fields sent to your webhook

The captured value (for example email), plus notification_id, notification_name, campaign_name, page_url, date, city, country and country_code, sent as form data. Each submission is sent once.

Use page_url and the location fields to tag subscribers in your email tool, for example a local-offers list or a product-interest segment.

Checked against: WebsitesToolz staging code: wtz_data_send.php; blog post "Setting Up Mailchimp Campaigns from WebsitesToolz Email Capture"

#Show Shopify orders in a Latest Conversion popup (no Zapier needed)

Shopify can send each paid order straight to your popup.

  1. In WebsitesToolz, create a Latest Conversion popup and copy its Full Webhook Url.
  2. Use placeholders that match Shopify's order fields, for example title {customer.first_name} from {billing_address.city} and description Bought {line_items.0.title}.
  3. In Shopify, go to Settings → Notifications → Webhooks and create a webhook.
  4. Choose the event Order payment, the format JSON, paste your WebsitesToolz URL and save.
  5. Use Send test in Shopify, or place a test order, and check the popup's data.

Prefer the counter? Point the same webhook at a Conversions Counter popup instead.

Checked against: Shopify Help Center: Creating webhooks; WebsitesToolz field flattening tested locally with a sample Shopify order

#Zapier: send any app's events to WebsitesToolz

  1. In WebsitesToolz, copy the Full Webhook Url of your Latest Conversion, Conversions Counter or Random Review popup.
  2. In Zapier, create a Zap. Choose the app and event that should appear in your popup as the trigger, for example a new order or a new booking.
  3. Add the action Webhooks by Zapier → POST.
  4. Paste your WebsitesToolz URL, set Payload Type to json and add data fields such as name, product, city and country, mapped from the trigger.
  5. Test the step. WebsitesToolz replies ok and the conversion appears in the popup's data.

Webhooks by Zapier is available on Zapier's paid plans.

Checked against: Zapier Help: How to get started with Webhooks by Zapier

#Zapier: send popup sign-ups to Mailchimp

  1. In Zapier, create a Zap with the trigger Webhooks by Zapier → Catch Hook and copy the webhook URL Zapier gives you.
  2. In WebsitesToolz, open your Email Collector (or any collector popup), switch on Send caught data to external sources and paste the Zapier URL into Webhook. Save.
  3. Submit a test email in the popup on your website, then click Test trigger in Zapier to load the sample.
  4. Add the action Mailchimp and choose the action that adds or updates a subscriber in your audience. Map the email field.
  5. Test and publish the Zap.

Map page_url or country to Mailchimp tags to start targeted campaigns.

Checked against: Zapier Help: Webhooks by Zapier; blog post "Setting Up Mailchimp Campaigns from WebsitesToolz Email Capture"

#Zapier: send popup sign-ups to Klaviyo

  1. Create a Zap with Webhooks by Zapier → Catch Hook and copy the URL.
  2. Paste it into the collector popup's Send caught data to external sources → Webhook field and save.
  3. Submit a test email on your site and load the sample in Zapier.
  4. Add a Klaviyo action that adds or subscribes a profile to a list, choose your list and map the email field.
  5. Test and publish.

Checked against: Zapier Help: Webhooks by Zapier; Zapier Klaviyo integration listing

#Make: receive and send WebsitesToolz data

Send popup leads to any app

  1. In Make, start a scenario with the Webhooks → Custom webhook module, add a webhook and copy its address.
  2. Paste the address into your collector popup's Send caught data to external sources → Webhook field.
  3. Submit a test on your site so Make can read the data structure.
  4. Add the app module you need, such as Mailchimp, Klaviyo, Google Sheets or your CRM, and map the fields.

Send events into a popup

  1. Start a scenario with your app's trigger.
  2. Add the HTTP module that makes a request, set the method to POST, paste your popup's Full Webhook Url and send a JSON body such as {"name":"{{name}}","product":"{{product}}"}.

Checked against: Make Help: Webhooks (instant triggers); blog post "Automated Scheduling on Hootsuite Through WebsitesToolz" (Integromat, now Make)

Contact support

Still need help? Send us a message

Tell us what you need and attach screenshots if they help explain it. Our team replies by email.

  • Include your website address
  • Add up to 3 screenshots or PDFs
  • We reply to the email address you enter