Sending order data

By sending order data to Triggerbee you will be able to analyze how your campaigns are actually performing in terms of generating sales.

Sending order data to Triggerbee can be done in two ways:

  • Using one of our Integration Apps, for example Centra.
  • Scripting order data using the Triggerbee script API

Let’s start with Scripting.


On your “Order complete” / “Thank you”-page call the Triggerbee javascript API using the event method, like this:

triggerbee.event({
    type: 'purchase',
    id: 123, // Order ID or similar
    data: {
       revenue: 1500 
    }
})

Revenue should be entered in same currency as in your Triggerbees account setting.

The ID (123 in example) can be Order ID or any unique ID associated with purchase.

Setting identity

You should also pass the identity of the customer to the event in the data object. And optionally, if a coupon code / voucher was used, pass it along so that Triggerbee can calculate attribution on campaigns.

A more complete example would like this:

triggerbee.event({
   type: 'purchase',
   id: 123, // Order ID or similar
   data: {
      couponCode: 'welcome10',
      revenue: 1500,
             identity: {
            email: 'john@triggerbee.com',
            firstname: 'John',
            lastname: 'Doe'
      }
    }
});

Still need help? Contact Us Contact Us