Pop-ups are an essential tool for collecting customer details like Name, Email, and Phone Number in exchange for incentives such as discounts or VIP list access. By integrating Klaviyo pop-ups with Spur, you can automatically add these contacts to Spur and start engaging with them on WhatsApp through personalized messages or automations.
In this article, we’ll walk you through the step-by-step process of setting up the integration between Klaviyo and Spur.
Step 1: Create a New Flow in Klaviyo
Log in to your Klaviyo account and navigate to the Flows section.
Click Create Flow and name it (e.g., "Popup Subscribers").
Add a tag to segment contacts who enter the flow (e.g., "Popup").
Step 2: Set Up the Trigger
Add the Added to List trigger to the flow.
Select the list where your pop-up collects subscriber information (e.g., "SMS List").
Save the trigger.
Step 3: Create a Webhook in Spur
Log in to your Spur account and go to Automation Flow.
Create a new flow for the WhatsApp Channel.
Select Start from Scratch and use a Webhook Trigger.
Copy the Webhook URL generated by Spur.
Step 4: Add the Webhook in Klaviyo
Return to Klaviyo and add a Webhook block after the trigger block in your flow.
Rename the webhook block for easy identification (e.g., "Spur Webhook").
Paste the Webhook URL copied from Spur.
Step 5: Configure the JSON Body
In the JSON body, include the Name and Phone Number fields to send data to Spur.
Use the following code snippet (make sure you add a comma after the email field):
,
"name": "{{ person.first_name|default:'' }}",
"phone": "{{ person.phone_number|default:'' }}"Save the block settings.
Step 6: Review and Activate the Flow
Double-check your flow settings to ensure everything is configured correctly.
Turn on the Klaviyo automation.
Step 7: Add a Tag or Send a Message in Spur
In Spur, you can choose to:
Optionally, add a delay before sending the message.
Turn on the Spur flow and hit save.
Irrespective of what you choose, the contact will be created and saved in Spur.
Step 8: Test the Integration
Test the integration to ensure data flows correctly from Klaviyo to Spur.
Notes:
If you want the flow to exit after a customer replies, add an exit condition to the webhook trigger in Spur.
Use a WhatsApp Template to start conversations outside the 24-hour window.
Need Help?
If you encounter any issues or have questions, reach out to us on our WhatsApp Support.