Set the value and currency of your Facebook pixel events

30/11/2019

You can set a specific value and currency for your conversions. Assigning a value to conversions helps you better understand the total value of your advertising.

Before you begin

Change the value and currency of your standard events

The default value and currency in the standard event (purchase) code is USD 0.00, but you can edit this to reflect the true value of your conversions. For example, if you're selling tickets in Europe for €9.99, you can set this in your standard event code. Then, every time the pixel loads, it will pass along EUR 9.99 as the value of the conversion.

  1. Go to the web page where you placed the Facebook pixel.
  2. Find the snippet of code for your standard event (it should look like 1 in the diagram below).
  3. Edit the value from "0.00" to your conversion's true value. The value field must contain a decimal number greater than or equal to zero, and may not include letters, special characters, currency symbols or commas.
  4. Edit the currency by entering a standard 3-letter ISO currency code per the ISO 4217 standard.
  5. When you've finished, your standard event code should look similar to 2 in the diagram below.

Note: We recommend specifying a value and currency for the standard event "Purchase" in order to more effectively measure your return on ad spend.

Set up dynamic conversion values

If you have multiple values that you want to track (e.g. you're selling multiple items with different prices), you can make the value dynamic. We recommend asking your website developer to dynamically pass the value of the purchase in place of the 0.00 in the "value: 0.00" portion of the purchase event.

Purchase variables vary from site to site, so you'll have to work with your developer on what your site's variables are. Here are some common examples:

Shopify:
'{{ total_price | money_without_currency }}','currency':'USD'
Magento:
 
WooCommerce:
get_order_total(); ?> 
Squarespace:
{orderGrandTotal} 
BigCommerce:
%%ORDER_SUBTOTAL%%;

Learn more on our Developer site.

Choose the value of your custom conversions

  1. Go to your Custom conversions page in Ads Manager.
  2. Click Create custom conversion.
  3. Set your URL or event rules, select a category, then click Next.
  4. Enter a name for your custom conversion, then tick Set a conversion value. If you're using an event-based rule, check Set a default conversion value.
  5. Add your conversion value (e.g. £5.00 GBP), then click Create. Bear in mind that you currently cannot create dynamic values for custom conversions and the currency will default to the currency of your ad account.
To see the conversion value in your reports in Ads Manager, click Customise columns and select Total conversion value.
Once you've updated your conversion value and currency, you can start running ads on Facebook using conversion optimisation and tracking.

* Nguồn: Facebook