Send offline transactions to Facebook

Published May 16, 2022
Modules
Difficulty
Selected Clients
ccc logo

You can enrich events collected in Facebook Pixel with any event gathered in Synerise. Based on Facebook Conversion API, Synerise enables sending all event parameters or only its chosen parameters. In this use case, we will send offline transactions to Facebook using the dedicated integration node in Automation.

Prerequisites


Create a workflow


In order to send offline transactions using Automation, create a workflow that is triggered by a purchase in the point of sales. Through the Facebook Integration node, Synerise sends this event to Facebook.

Add the Profile Event trigger

  1. In the Synerise app, go to Automation > Workflows > New workflow.
  2. On the dashboard, click the plus button.
  3. From the dropdown list, select Profile Event.
  4. Double-click the Profile Event node.
  5. On the pop-up, from the Choose event list, select the transaction event. If you’re not sure of the event’s label in your system, search for transaction.charge.
  6. Click the + where button.
  7. From the Choose parameter dropdown list, select $source.
  8. From the Choose operator dropdown list, select Equal.
  9. In the text field, enter POS.
  10. Confirm by clicking Apply.
Configuration of the Profile Event trigger
Configuration of the Profile Event trigger

Configure Facebook Integration node

  1. On the Profile Event node, click the plus icon.
  2. From the dropdown list, select Facebook.
  3. From the dropdown list, select Send Offline Transactions.
  4. Click the node.
  5. Click Select connection.
  6. From the dropdown list, select the connection.
    If you haven’t established a connection yet, see Create a connection.
Configuration of the Facebook Integration node
Configuration of the Facebook Integration node

Create a connection

Use an access token which allows you to send a request.

  1. At the bottom of the Select connection dropdown list, click Add connection.
  2. In the Access token field, enter the app access token.
    Note: You can read more about access tokens in Facebook documentation.
  3. Click Next.
  4. In the Connection name field, enter the name for the access token you generated.
  5. Click Apply.
    Result: A connection is created and selected.

Define the integration settings

  1. In the Graph API version field, enter the currently used API version in Facebook.
    You can find information about the currently used API version in the Facebook documentation.
  2. In the Meta Pixel ID field, enter the identifier of the Pixel you use in Facebook.
    You can find information about how to find ID of the Pixel in the Facebook documentation.
  3. From the Identifier type dropdown list, select the identifier of customer - an email address of phone number.
    Offline transactions will be matched with customers based on this identifier.
  4. In the Identifier source field, enter the Automation insert (Jinjava tag) that corresponds to the identifier you selected as the Identifier type.
    Note: Read the article about the Automation inserts.
  5. In the Currency code field, enter the ISO currency code of the transactions, for example, USD, EUR, GPB, AUD, PLN, and so on.
  6. Confirm by clicking Apply.

Add the End node

  1. On the Outgoing webhook node, click the plus button.

  2. From the dropdown list, select End.

  3. Save and activate the automation by clicking Save&Run.

    The final structure of the workflow
    The final structure of the workflow
  4. Go to your Facebook Ad account, select Facebook Manager > Events Manager to see the events. After the offline transaction, the automation event is visible on the customer’s card with 200 status. That means that the transaction has successfully been sent to Facebook.

A webhook response with 200 status on a profile of a test customer
A webhook response with the OK status (200) on a customer's profile

Check the use case set up on the Synerise Demo workspace


You can also check the workflow configuration directly in Synerise Demo workspace.

If you don’t have access to the Synerise Demo workspace, please leave your contact details in this form, and our representative will contact you shortly.

Read more


😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker