Calculating metrics

In this tutorial, you will learn how to calculate your own, custom metrics such as CVR, CTR, or CPA.

Notion image

Video Tutorial

Instructions:

  1. Add Select Facebook Ad Account Ids node. Choose the relevant Facebook accounts.
  1. Add Fetch Facebook Insights node. Connect ad_account_ids sockets. Choose the desired date_range. Choose adset as level. Add actions adset_id, adset_name, and actions fields.
  1. Add Input Any node. Insert the following formula template:
[
    {
        "name": "ctr_link",
        "operator": "/",
        "pointer_a": "/actions_link_click",
        "pointer_b": "/impressions"
    },
    {
        "name": "cpc",
        "operator": "/",
        "pointer_a": "/spend",
        "pointer_b": "/actions_link_click"
    },
    {
        "name": "cvr_{{your_metric}}",
        "operator": "/",
        "pointer_a": "/{{your_metric}}",
        "pointer_b": "/actions_link_click"
    },
    {
        "name": "cpa_{{your_metric}}",
        "operator": "/",
        "pointer_a": "/spend",
        "pointer_b": "/{{your_metric}}"
    }
]

Please note that one object in a list represents one formula. Modify it according to your metrics. You can use multiplication, addition, division, etc as operators.

  1. Add Calculate Metrics node. Connect items to insights. Connect calculations to any.
 
Did this answer your question?
😞
😐
🤩

Last updated on August 6, 2021