Facebook Analytics
The Facebook Analytics plugin allows Snaps to send event data back to Facebook analytics in order to track events on Facebook's platform.
Sending Snaps events to Facebook is useful for a myriad of different use cases, two of the most common are:
- Creating funnels in Facebook Analytics (bot activity to on-site purchases)
- Funneling bot users back into Facebook for custom audiences that can be used in ads
Set-Up
The set-up for this plugin is simple.
- Add in the Facebook app ID
- Publish your production bot
Please contact your customer success manager for your Facebook app ID.
Default Events
By default, Snaps sends three events back to Facebook. Each of these events has 'parameters' which allow you to refine your events when creating funnels / segments in Facebook Analytics.
Specialized Custom Events
On request, we can post up more events as well. For example, if you'd an event for a user completing a quiz in bot, we can post that to Facebook as a separate 'quiz_complete' event.
1. stateChanged
This is a transition to block, anytime a user types free text or taps a button / quick reply, they go to a different state / block.
Parameter | Description |
---|---|
buttonIndex | The index of the button relative to other buttons on that block, starts with 0. |
buttonTitle | The title of the button that was clicked. |
fromResourceId | The ID of the block (found in the Snaps CMS) that the user was on when they clicked a button or typed free text. |
fromResourceName | The name of the block that the user was on when they clicked a button or typed free text. |
toResourceId | The ID of the block (found in the Snaps CMS) that the user went to when they clicked a button or typed free text. |
toResourceName | The name of the block that the user went to when they clicked a button or typed free text. |
userText | The free text that the user typed on that block. |
via | How the stateChange was triggered, by the user typing free text, clicking a button, coming from a referral, clicking get_started, uploading files. |
This is a link click.
Parameter | Description |
---|---|
fromResourceId | The ID of the block (found in the Snaps CMS) that the user was on when they clicked the link. |
fromResourceName | The name of the block that the user was on when they clicked the link. |
toResourceId | The ID of the block (found in the Snaps CMS) that the user went to when they clicked a button or typed free text. |
toResourceName | The name of the block that the user went to when they clicked a button or typed free text. |
url | The URL that the user clicked. |
3. referralSet
This is triggered when a user comes in through an acquisition source which includes ads / m.me links / STM. Since we do not receive referral webhook events from Facebook for organic or discover users, they would not be included in this segment.
Parameter | Description |
---|---|
channelType | The channel the user is on. |
rawRef | N/A |
recordTime | N/A |
ref | The ID of the acquisition source that the user came from. |
source | The name of the source (from Facebook), this corresponds to the Facebook plugins and includes ads / m.me links / discover / send to messenger plugin / checkbox plugin and more. |
toResourceId | The ID of the block (found in the Snaps CMS) that the user went to when they came in from this acquisition source. |
toResourceName | The name of the block that the user went to when they came in from this acquisition source. |
type | N/A |
User Properties Not Supported
Snaps is unable to send user properties that are set on users.
Updated about 1 year ago