Skip to main content

Log Facebook App Events

Introduction

With the App Events API, Facebook allows your app or web page to track events, such as a user installing your app or completing a purchase. Business can make use of this to log and analyze how their users interact with their Messenger chatbot.

In WOZTELL, we support this feature in a form of an "Action" resource template, which can be added to a node. It allows you to decide what events to track and the signals will be sent to Meta during execution of the corresponding node.

NOTE

This feature is only available in Facebook Integration version v1.1.0 or above.

Expected Outcome

During testing, the event can be tracked in the Test Events section under the Events Manager.

NOTE

Currently, these signals will not appear in the Events Manager for production. Meta only supports tracking the "Purchase" event type in the Ad Manager. The attributed Purchase signals will be displayed under the "Meta Purchase" column in CTX campaign.

Sample Chatbot Structure

The example is pretty simple, all you need is a general node to send the events.

Create a node

  1. Create a general node for sending the response and logging the events.
  1. Create a response that fits the scenario.
  1. Remember to also create a global node that redirects to the "Event API" node, it will act as an entry point to this chatbot.

Add pre-action

  1. Create a new new-action

Apply "Facebook Log Event"

  1. Select "Facebook Log Event" from the resource template. You can control the tracking settings in the section below.
OptionsDescription
Advertiser TrackingEnable tracking at advertiser level
Application TrackingEnable tracking at application level
Logging Target"App and Page", "App only" & "Page only"
  1. Click "+ Custom Event" to create new custom event.

Create Custom Event

  1. Select an event type from the list.
  1. Fill in the required info, which varies in each event type.

Test Events

  1. In order to the test the events, please log into your Facebook Business Manager -> Events Manager.
  1. Select the corresponding Facebook app. Then, head to Test Events.
  1. In WOZTELL, add the chatbot to your Facebook channel, and test it by triggering the "Event API" node. Test Events should be able track your event in real time.
NOTE

In order to perform this test, please make sure you are triggering the chatbot while being logged in as the owner of the corresponding Facebook page.