Transactions are special types of events that are inferred from existing events. Blueshift stores a transaction event per transaction ID, and any attributes from the new event are appended to the transaction event. Blueshift also stores the most recent state (transaction_state) of your transaction. For example, purchased, canceled, and so on.

Consider the following points about transactions and transaction models:

  • Before defining a transaction identifier and linking transaction states (events), these events must be added in Blueshift.
  • A transaction identifier must be present as an attribute in all transaction events so that they can be linked to the appropriate transaction model.
  • The transaction model must be defined before any events can be linked to a transaction record. Existing events are not automatically added to a transaction.
  • There might be a delay between an event occurring and linking the event to a transaction record. Once an event is linked to a transaction record, you can see the event in the transaction history and under the Transactions tab in the Customer profile.

The following diagram shows the steps involved in setting up transaction models.

txn_workflow_dec22.png

View transaction models

  • Navigate to Customer Data > Transactions in the left navigation panel to view all the transaction models.
  • Use the actions (three-dot menu) available at the right corner of the transaction model row to view or edit the transaction.

Transactions-Index.png

Add a transaction model

To add a transaction model, complete the following steps:

  • Go to Customer Data > Transactions in the left navigation.
  • Click +Transaction on the Transactions index page.

Create-New-Transaction.png

  • Specify a transaction identifier. The identifier links all related events in your transactions and must be unique. You can specify more than one identifier for the transaction model. For example, in the case of a hotel booking, the transaction identifier can be booking_id. In contrast, for a sales cycle, the identifiers can be lead_id and opportunity_id.

  Note regarding identifiers:

  • Include the transaction identifier as an attribute in the event data sent to Blueshift.
  • Use clear and consistent identifiers (e.g., booking_id or order_id) representing the transaction type.
  • Please do not use internal Blueshift attributes, such as _bsft_transaction_uuid, as these are reserved for system processes and may cause errors in transaction tracking.
  • If you specify more than one identifier for the transaction model, all identifiers for that particular transaction model must be present as attributes in the event data sent to Blueshift.
  • Add related states (events) for the transaction. For example, the states can be booked, canceled, checked_in, checked_out, and so on for a hotel booking.

  Note about events:

These events must be added in Blueshift before defining a transaction identifier and linking transaction states (events).

Create-New-Transaction-2.png

  • Add any Additional Details, i.e.,a note or description for the transaction model.
  • Click Save.

Edit transaction models

  • You cannot edit a transaction identifier if an event has been published for the identifier.
  • States that are linked to an identifier and have been published cannot be removed.
  • You can remove states that have not been published.
  • You can add more states for the identifier.

View transaction history

Click on the row for a transaction model on the index page or use the actions menu to view all the events associated within a transaction model.

  • These are the events for which all the identifiers for that particular transaction model are present as attributes.
  • For all transactions, the current state of the transaction is displayed. For example, when a customer books a hotel room, a transaction event booked occurs where the identifier is hotel_booking = 101. You can view transaction 101 in the transaction history, and the state is displayed as booked.
  • When an event changes the state of a transaction, the transaction is updated with the state. For example, when the same customer checks into the hotel, a transaction event check-in occurs where the identifier is hotel_booking = 101. The transaction hotel_booking = 101 is updated with the event check-in. You can view transaction 101 in the transaction history, and the State is displayed as check-in.
  • Click any transaction to view details.
  • Previous states for a transaction are displayed in the details.
  • You can also view details in JSON format.

transactions_v2_eventdetails.png

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.