This topic is an example of how to apply to concepts in Designing Your Data to a specific scenario. In this scenario, you have a website and mobile application for an e-commerce business. The website uses Facebook Pixels while the mobile app integrates the Facebook SDK. This example shows how you can use pre-defined events to instrument both your website and mobile app.
The goal is to let a user purchase an item using the website or mobile application. You are using Facebook Analytics to see the route that the user takes to purchase an item so that you can optimize the experience.
Enter the website or install and start the app - the user finds the website through a search engine result or install the mobile app from the recommendation in a blog.
Search for an item - the user looks for a specific item by entering terms in the search bar of the website or mobile app.
View an item from the result list - the user selects an item from the search results to get more details.
Add an item from the search results to a wish list - the user the currently viewed item to the wish list.
Move an item to a shopping cart from a wish list - the user moves an item to the shopping from the wish list.
Start the checkout process - the user begins the process to purchase the items in the shopping cart.
Complete the registration -; since this is the first time the user ordered from the website or app, the user has to complete the registration process.
The following table shows the events and parameters to use for each step in a successful route.
|Step||Event to Use||Event Type||Parameter|
Enter the website or install and start the mobile app.
App Install and App Launch
Search for an item.
View an item from the result list.
Add an item to the wish list from the results list.
Added to Wishlist
Move an item to the shopping cart from the wish list.
Added to Cart
Complete the registration.
The following table describes the parameters used in the events.
Description of the item
Unique number the describes the search terms and results
Each number is unique.
Category of the item
Currency of the price of the item
Number of items in the cart
The payment information is available
1 if the information is available. Otherwise 0.
The price of the item
Describes the method the user used in the registration process
possible values are email, Facebook, Google, or Twitter.
The total price of all items in the cart.