Facebook, is one of the most popular social media platforms. It helps to reach several people and is the best platform to sell your event online. It also helps you track the behavior user. You can track the conversion by Facebook pixel. 


Facebook Pixel


Facebook Pixel helps you to track ticket buyer activity. It also helps you to understand the behaviour of the ticket purchase process. Generate the Pixel code from your Facebook account. Go to Marketing -> Conversion Tracking. Set the Pixel code (usually 15-16 characters). You can get more info to generate the Pixel Code click here. 




Facebook API Token


FACEBOOK API token is the most recommended method to trek the conversion data. To trek your event conversion, copy the API Token from your FACEBOOK Business Account set in the Facebook API Token field and save it. After you save it your event will start sending the data to your Facebook account.



Please Note: Facebook API Token is the most recommended method for conversion tracking. However, if you are not able to use the FB API Token method, you can use the FACEBOOK Domain Verification but it can't guarantee to give you 100% or correct results.


Here is the information of data that, FEARTICKET will send you through FB API Token on each individual action the user performs while purchasing a ticket.


When Use Land on your ticketing page.

// Lending Page
{
  "data": [
    {
      "event_name": "View content",
      "event_time": "{{Current Time}}",
      "action_source": "{{website}}",
      "event_source_url":"{{Event URL}}",
      "content_name": "Event View",
      "event_id":  "{{Random Number}}",
      "custom_data": {
        "content_name": "Event page visited"
      },
      "user_data": {
        "client_ip_address": "{{Users IP Address}}",
        "client_user_agent": "{{User Agent}}"
      }
    }
  ]
}


When Use add ticket into the cart.


// Item added into the cart
{
  "data": [
    {
      "event_name": "Add to cart",
      "event_time": "{{Current Time}}",
      "action_source": "{{website}}",
      "event_source_url":"{{Event URL}}",
      "event_id":  "{{Order_Id}}_1",
      "user_data": {
        "client_ip_address": "{{Users IP Address}}",
        "client_user_agent": "{{User Agent}}"
      },
      "custom_data": {
        "content_name": "Item added into the cart",
        "currency": "USD",
        "value": "{{amount}}"
      }
    }
  ]
}


While the User initiates the checkout process

//Checkout Initiated
{
  "data": [
    {
      "event_name": "Initiate checkout",
      "event_time": "{{Current Time}}",
      "action_source": "{{website}}",
      "event_source_url":"{{Event URL}}",
      "event_id":  "{{Order_Id}}_2",
      "num_items": "{{Total Ticket}}",
      "user_data": {
        "client_ip_address": "{{Users IP Address}}",
        "client_user_agent": "{{User Agent}}"
      },
      "custom_data": {
        "content_name": "Checkout Initiated",
        "order_id": "{{OrderId}}",
        "contents": {
          "id": "{{TicketName}}",
          "quantity": "{{TicketQty}}",
          "item_price": "{{TicketPrice}}"
        },
        "currency": "USD",
        "value": "{{amount}}"
      }
    }
  ]
};


While the User proceeds for the payment

// Order Payment
{
  "data": [
    {
      "event_name": "Add payment",
      "event_time": "{{Current Time}}",
      "action_source": "{{website}}",
      "event_source_url":"{{Event URL}}",
      "event_id":  "{{Order_Id}}_3",
      "num_items": "{{TotalTickets}}",
      "user_data": {
        "fn": "{{firstname}}",
        "ln": "{{lastname}}",
        "ct": "{{city}}",
        "st": "{{state}}",
        "zp": "{{zip}}",
        "em": "{{email}}",
        "ph": "{{cellphonefull}}",
        "country": "{{country}}",
        "client_ip_address": "{{Users IP Address}}",
        "client_user_agent": "{{User Agent}}"
      },
      "custom_data": {
        "content_name": "Order Payment",
        "order_id": "{{orderid}}",
        "contents": {
          "id": "{{TicketName}}",
          "quantity": "{{TicketQty}}",
          "item_price": "{{TicketPrice}}"
        },
        "currency": "USD",
        "value": "{{amount}}"
      }
    }
  ]
}


And, at last when the order is placed successfully.

// Order Placed
{
  "data": [
    {
      "event_name": "Purchase",
      "event_time": "{{Current Time}}",
      "action_source": "{{website}}",
      "event_source_url":"{{Event URL}}",
      "event_id":  "#oorderBean.getID()#_4",
      "num_items": "{{TotalTickets}}",
      "order_id": "{{Orderid}}",
      "user_data": {
        "fn": "{{firstname}}",
        "ln": "{{lastname}}",
        "ct": "{{city}}",
        "st": "{{state}}",
        "zp": "{{zip}}",
        "em": "{{email}}",
        "ph": "{{cellphonefull}}",
        "country": "{{country}}",
        "client_ip_address": "{{Users IP Address}}",
        "client_user_agent": "{{User Agent}}"
      },                  
      "custom_data": {
        "content_name": "Order Placed",
        "status": "Order Successful",
        "contents": {
          "id": "{{TicketName}}",
          "quantity": "{{TicketQty}}",
          "item_price": "{{TicketPrice}}"
        },
        "currency": "USD",
        "value": "{{amount}}"
      }
    }
  ]
}

As you can see in every conversion request, there is a parameter "Event_Name". That helps you identify the action taken by the buyer.


Or Facebook Domain Verification


Facebook has made it mandatory to verify the domain If you are not FACEBOOK API Token to get the conversion tracking data. You need to verify the domain from your own Facebook Business account. To learn more about the domain verification process, click here. 


There are multiple options to verify the domain. FEARTICKET allows verifying the domain through the metatag option. Copy the metatag from your FB business account. it look like <meta name="facebook-domain-verification" content="XXXXXXXXXXXXXXXXXXXXXXXXXXXXX" />. You only need to set the content value (but not the whole metatag) as highlighted in green text. Copy that content code paste it into the domain verification code and save it. Now you can verify the domain from your Facebook business account. It may take about 15 min. to 30 min. to verify the domain. 



Please Note: Facebook currently allows to verification of the domain only. However, it may be possible you face some hurdles as your event URL is a sub-domain in FEARTICKET and is considered a third-party website. FACEBOOK Domain Verification can't guarantee to give you 100% or correct results. Click here for more info.