Server-side API
Server-side API
Server-side API
The server-side API lets you send off-site conversion events to Webflow over HTTPS. Use this API to attribute conversions that happen outside your website (product signups, CRM actions, in-person sales) back to the optimizations visitors viewed.
Before sending a server-side event, ensure you’ve called wf.setUserId() on the client side to identify the visitor.
Include your authorization token in the Authorization header:
The apiKey is the off-site conversion authorization token generated from the Insights > Tracking Settings page. Learn more about creating an auth token in Webflow.
A successful request returns:
Once your setup is complete, use a curl command to test your integration.
On macOS/Linux:
On Windows (Command Prompt):
Replace each backslash (\) with a caret (^).
If the request is successful, the command line returns the data you submitted.
The actionTimestamp field must be in UTC and formatted as UNIX time in milliseconds.
Conversions may be ignored or attributed incorrectly when:
For an off-site conversion to be attributed to an optimization, these conditions must be met:
The eventName in the request must exactly match the eventName of a custom goal that existed when the conversion occurred. Attribution won’t happen if:
eventName when the conversion happened (even if renamed later)Off-site conversions are imported in batches each night at midnight UTC.
This means: