ThriveCart Zapier Purchase Template

How to send ThriveCart purchases into Zapier and then into Funnelytics.

Create a Trigger in Zapier

Select the Webhooks by Zapier app as a trigger. Choose the Catch Raw Hook option as the trigger event.


Get the webhook URL from Zapier and add that to ThriveCart under Settings > API and Webhooks > Webhooks & notifications.

Select "receive results as JSON".


Be sure to test your funnel so Zapier can have some data to work with.

Zapier Action: Code

The first action in the zap needs to be this code action. This will format the webhook payload that was received into the format that Funnelytics is expecting.


Open the Customize Run Javascript Dropdown and apply the following settings

Input Data

Add a key of "body" and the value will be the raw body payload from the incoming webhook in step 1 of the zap.


Insert this code block (no customization needed - Just copy+paste):

const parsed = JSON.parse(inputData.body);

return {


created_at: parsed.order.date_iso8601,

items: JSON.stringify( => {

return {

product_id: charge.item_identifier,


total: parseFloat(charge.amount_str),




This will output the data in a nice format that you can reference in the next action.

Zapier Action: Webhook

The last step in the zap will be another webhook action. This one is going to send the data to Funnelytics.

Be sure to choose "Custom Request" as the action event.


Follow the format of the code outlined in this article.


Method: Post
Data Pass-Through: False
Data: {

"email": "",

"datetime": "",



Unflatted: Yes
Basic Auth: leave blank

Headers: Content-Type and Authorization

In the data field, you can reference the output from the previous steps