(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{456:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var o=n(0),r=n.n(o);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=r.a.createContext({}),b=function(e){var t=r.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},u=function(e){var t=b(e.components);return r.a.createElement(l.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},h=r.a.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),u=b(n),h=o,d=u["".concat(c,".").concat(h)]||u[h]||p[h]||a;return n?r.a.createElement(d,i(i({ref:t},l),{},{components:n})):r.a.createElement(d,i({ref:t},l))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,c=new Array(a);c[0]=h;var i={};for(var s in t)hasOwnProperty.call(t,s)&&(i[s]=t[s]);i.originalType=e,i.mdxType="string"==typeof e?e:o,c[1]=i;for(var l=2;l<a;l++)c[l]=n[l];return r.a.createElement.apply(null,c)}return r.a.createElement.apply(null,n)}h.displayName="MDXCreateElement"},92:function(e,t,n){"use strict";n.r(t),n.d(t,"frontMatter",(function(){return c})),n.d(t,"metadata",(function(){return i})),n.d(t,"rightToc",(function(){return s})),n.d(t,"default",(function(){return b}));var o=n(2),r=n(6),a=(n(0),n(456)),c={id:"facebook-event",title:"Facebook Event for Conversion Statistics and ROAS",sidebar_label:"FACEBOOK EVENT"},i={unversionedId:"facebook-event",id:"version-en/facebook-event",isDocsHomePage:!1,title:"Facebook Event for Conversion Statistics and ROAS",description:"Facebook Event in AhaChat works similarly with Facebook Pixel. It allows the bot owner to save conversions when customers interact with the bot. Some useful functions include recording of conversions, optimization for conversions, and creation of audiences.",source:"@site/versioned_docs/version-en/facebook-event.md",slug:"/facebook-event",permalink:"/help/docs/en/facebook-event",version:"en",sidebar_label:"FACEBOOK EVENT",sidebar:"docs",previous:{title:"Promo Codes",permalink:"/help/docs/en/promo-codes"},next:{title:"SEND EMAIL",permalink:"/help/docs/en/send-email"}},s=[{value:"1. Create Facebook Event in bot",id:"1-create-facebook-event-in-bot",children:[]},{value:"2. Follow events performance on Facebook",id:"2-follow-events-performance-on-facebook",children:[{value:"2.1 Track Ads",id:"21-track-ads",children:[]},{value:"2.2 Tracking on Analytics",id:"22-tracking-on-analytics",children:[]}]},{value:"3. Functions and Uses",id:"3-functions-and-uses",children:[]}],l={rightToc:s};function b(e){var t=e.components,n=Object(r.a)(e,["components"]);return Object(a.b)("wrapper",Object(o.a)({},l,n,{components:t,mdxType:"MDXLayout"}),Object(a.b)("p",null,"Facebook Event in AhaChat works similarly with Facebook Pixel. It allows the bot owner to save conversions when customers interact with the bot. Some useful functions include recording of conversions, optimization for conversions, and creation of audiences."),Object(a.b)("p",null,"The most commonly used event is the Purchase event since you can base it on Total Return on Ad Spend (ROAS) from chatbot purchases. This is based on the value of all conversions recorded by Facebook Event from the bot and recorded from your ad. Purchase Events are trackable both on Facebook Ads and Facebook Analytics."),Object(a.b)("p",null,"Take note that you can only track other events on Facebook Analytics.\nHere is a guide on how to create a Facebook Event in AhaChat."),Object(a.b)("h2",{id:"1-create-facebook-event-in-bot"},"1. Create Facebook Event in bot"),Object(a.b)("p",null,"(1) Go to the Automation menu > Create a script containing Facebook Event.\n",Object(a.b)("img",Object(o.a)({parentName:"p"},{src:"https://lh3.googleusercontent.com/YfB9FkW_IN5UTXSkMfr_ch3NAJ2sVv25k1t1O_zxaogilkhsyiH17XCVJyV6OpkraSWs-iuSdDGAnxwOX2YAHuD6LLOJ8-K6f-Orh4zXRZsHuOMHTkbqxpymx1n32j3vXL9yiil2",alt:null}))),Object(a.b)("p",null,"(2) Create a Facebook Event block.\n",Object(a.b)("img",Object(o.a)({parentName:"p"},{src:"https://lh5.googleusercontent.com/-UNEK_jOX5flXFObRgsYDlmYEdblgQHmTZvYn-EYazN-V8kinND2ltec5bTNQLTIj0laUzUmdzvFPlQ2paaU_BCe-NM1q8vVuw63txV3c3igEuFWyEpGaOxRqUx-BGNvrXgs-KsU",alt:null}))),Object(a.b)("p",null,"(3) Set up the event to track.\n",Object(a.b)("img",Object(o.a)({parentName:"p"},{src:"https://lh5.googleusercontent.com/Ker4lu_a4yNwDsVMs1aE9SLO9yzY_VjNmAOg8UWRFNlsDYAH_ES-4nAQw2Rmne0MNywdLaXLJWe1yBvyJT4TxlqQgw_hPUxVQzZGZi1TwKJ0hJIr0WNhhxcqVaKEaERvxd-Qh3sl",alt:null}))),Object(a.b)("h2",{id:"2-follow-events-performance-on-facebook"},"2. Follow events performance on Facebook"),Object(a.b)("h3",{id:"21-track-ads"},"2.1 Track Ads"),Object(a.b)("p",null,"  (1) Select Customize Columns.\n",Object(a.b)("img",Object(o.a)({parentName:"p"},{src:"https://lh6.googleusercontent.com/pmo5Uc5RWqWw0G1459fVrk-G3bz84H_ed0YZq5iSYOvPf40gm_kPo75PgQY0HHtd3DO4_3cL4AL9bhHoLfHVRZuqbOTPjh_8EXE2WEsf1MUtNsEd5jx9X9ZRNzDELUj6HmhZXox_",alt:null}))),Object(a.b)("p",null,"(2) On Standard Events, set ROAS display.\n",Object(a.b)("img",Object(o.a)({parentName:"p"},{src:"https://lh4.googleusercontent.com/JEk8V4L89ug-mySm6pt6QG76Ic_baw_sfYbmRY2DdkqfwQCn1AW-tn9q4E4XKWzIAjsQJoXmGEvwazTF7w-6s4TBGKm8wt-gGOSazAPNybObFQ1J4O93UYrpZ9xlE-EAVjukHrB5",alt:null}))),Object(a.b)("p",null,"(3) The events\u2019 results will appear in the section below.\n",Object(a.b)("img",Object(o.a)({parentName:"p"},{src:"https://lh3.googleusercontent.com/hAbmDMAeHr888QKADcS0MDgyK6ajYaDVX_dBNerntU8gvOMwaSGAVAxzo1_AnrfInnPFqjgdftKWTKm2v9ByQsBP-vtQMThfwL0rj0rAUJKm7TJcWPmMSvkrhHP0D2P4KIZfiUQw",alt:null}))),Object(a.b)("h3",{id:"22-tracking-on-analytics"},"2.2 Tracking on Analytics"),Object(a.b)("p",null,"Go to Facebook Analytics > Events"),Object(a.b)("p",null,Object(a.b)("img",Object(o.a)({parentName:"p"},{src:"https://lh5.googleusercontent.com/e_UQswar17I4siy5iMuuzoL2ULPrrvF4nt9-osgL-inH8QPiWYy97YxdtEdJWS6xroyecsjjWJ-Youg7ogtaxiyriIQzCjCmyAv678YZLkGMaxMLbzQi3hnTQ7EbaGLV_CbA6b01",alt:null}))),Object(a.b)("h2",{id:"3-functions-and-uses"},"3. Functions and Uses"),Object(a.b)("p",null,"One of the primary uses of this feature is to track conversion rates for a target action. For example, you have a lead generation process in your bot that connects to a \u2018Buy\u2019 button. This button should be linked to a webform where the user can enter basic details such as phone number and address. After filling it out, the client will be redirected to a Facebook Event block with the pre-installed Purchase event that includes the price of the product to save the event."),Object(a.b)("p",null,'Another function is to follow up with users who want support from your team through Live chat. First, create a button "Meet N.V Consultation" at the Conversation block. Then, when the user clicks this button, it will forward it to the Facebook Event block with the Contact Preset event to save the event.'))}b.isMDXComponent=!0}}]);