{"id":1237,"date":"2023-11-14T17:06:08","date_gmt":"2023-11-14T17:06:08","guid":{"rendered":"https:\/\/theoptimizer.io\/help\/?post_type=ht_kb&#038;p=1237"},"modified":"2023-11-20T19:25:46","modified_gmt":"2023-11-20T19:25:46","slug":"how-to-create-custom-metrics-for-facebook","status":"publish","type":"ht_kb","link":"https:\/\/theoptimizer.io\/help\/knowledge-base\/how-to-create-custom-metrics-for-facebook\/","title":{"rendered":"How to create custom metrics for Facebook"},"content":{"rendered":"\n<p>If you need to work with certain metrics which are not available in TheOptimizer, you can create your own custom metrics using a formula.<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> Under <strong>Campaigns<\/strong>, click on the metrics icon.&nbsp;<\/p>\n\n\n\n<p><strong>Step 2:<\/strong> Scroll until you find <strong>Custom Metrics<\/strong>, and click on the pen icon to edit it.<\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"844\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Custom-Metrics-Facebook-The-Optimizer-1024x844.png\" alt=\"How to create custom metrics for Facebook on TheOptimizer P1\" class=\"wp-image-1238\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Custom-Metrics-Facebook-The-Optimizer-1024x844.png 1024w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Custom-Metrics-Facebook-The-Optimizer-300x247.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Custom-Metrics-Facebook-The-Optimizer-768x633.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Custom-Metrics-Facebook-The-Optimizer-50x41.png 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Custom-Metrics-Facebook-The-Optimizer-1536x1266.png 1536w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Custom-Metrics-Facebook-The-Optimizer-60x49.png 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Custom-Metrics-Facebook-The-Optimizer-100x82.png 100w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Custom-Metrics-Facebook-The-Optimizer.png 1572w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Step 3:<\/strong> Select a name for the custom metric, define the format, and add your calculation using the formula bar. A custom metric calculation can include metrics from both your Facebook &amp; external revenue stream reporting. Click on <strong>Save<\/strong>. Now, you can use this custom metric while setting up your automation rules in the next step.&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"475\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Facebook-Create-Custom-Metrics-The-Optimizer-1024x475.png\" alt=\"How to create custom metrics for Facebook on TheOptimizer P2\" class=\"wp-image-1239\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Facebook-Create-Custom-Metrics-The-Optimizer-1024x475.png 1024w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Facebook-Create-Custom-Metrics-The-Optimizer-300x139.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Facebook-Create-Custom-Metrics-The-Optimizer-768x356.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Facebook-Create-Custom-Metrics-The-Optimizer-50x23.png 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Facebook-Create-Custom-Metrics-The-Optimizer-1536x712.png 1536w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Facebook-Create-Custom-Metrics-The-Optimizer-2048x950.png 2048w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Facebook-Create-Custom-Metrics-The-Optimizer-60x28.png 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Facebook-Create-Custom-Metrics-The-Optimizer-100x46.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Next step: Start automating <\/h2>\n\n\n\n<p>By now, you have connected your Facebook &amp; tracker accounts, and you understand the available metrics. Use all these metrics to build automation rules for Facebook. Not sure where to start? Check out our Facebook automation rule examples <a href=\"https:\/\/theoptimizer.io\/help\/article-categories\/how-to-set-up-automation-rules-for-facebook-with-examples\/\"><span style=\"text-decoration: underline;\">here<\/span><\/a>. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to create custom metrics for Facebook in a few simple steps. <\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[39],"ht-kb-tag":[],"class_list":["post-1237","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-4-available-facebook-metrics-explained"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/1237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/comments?post=1237"}],"version-history":[{"count":2,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/1237\/revisions"}],"predecessor-version":[{"id":1401,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/1237\/revisions\/1401"}],"wp:attachment":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/media?parent=1237"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb-category?post=1237"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb-tag?post=1237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}