To send conversions by webhook, POST each new order, signup or review to the widget's own webhook URL as JSON or form fields. Every field you send is stored with the conversion and can be used as a {variable} in the widget text.
The URL
Each data-driven widget (recent sales, sales counter, reviews) has its own URL in this format:
https://app.autosocialproof.com/pixel-webhook/YOUR_WIDGET_KEYSteps
- Copy the widget webhook URL. Open the widget, go to its data settings and copy the webhook URL.
- Choose the fields to send. Decide what the popup should say, such as name, city and product.
- Send a test POST. Use curl, Postman or your automation tool with JSON or form fields.
- Check the Data tab. Confirm the test row and its field names.
- Use the fields as variables. Write the widget text with {name}, {city} and {product}.
- Connect your real source. Point your store, CRM or automation tool at the URL, then delete test rows.
Examples
JSON
curl -X POST "https://app.autosocialproof.com/pixel-webhook/YOUR_WIDGET_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Priya","city":"Austin","country_code":"US","product":"60-minute massage"}'Form fields
curl -X POST "https://app.autosocialproof.com/pixel-webhook/YOUR_WIDGET_KEY" \
-d "name=Priya" -d "city=Austin" -d "product=60-minute massage"A review
curl -X POST "https://app.autosocialproof.com/pixel-webhook/YOUR_WIDGET_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"Rosa M.","description":"Arrived in two days.","stars":5}'Only send events that really happened. Fabricated conversions break our acceptable use policy and consumer protection law.
For programmatic access to your account, see the API documentation.
Ready? Create a free account or log in to follow along.